gui

package
v0.0.0-...-6e27b72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(fsys fs.FS) error

Types

type Fonts

type Fonts struct {
	TitleFace         text.Face
	FooterButtonFace  text.Face
	PageListEntryFace text.Face
	RegularFace       text.Face
	HeadingFace       text.Face
	MonospaceFace     text.Face
}

type UIResources

type UIResources struct {
	Fonts *Fonts

	BGImage                      *eui_image.NineSlice
	TitleBarBGImage              *eui_image.NineSlice
	LabelColor                   *widget.LabelColor
	PageListScrollContainerImage *widget.ScrollContainerImage
	PageListEntryColor           *widget.ListEntryColor
	ButtonImage                  *widget.ButtonImage
	ButtonTextColor              *widget.ButtonTextColor
	DangerButtonImage            *widget.ButtonImage
	DangerButtonTextColor        *widget.ButtonTextColor
	TextAreaScrollContainerImage *widget.ScrollContainerImage
	ScrollSliderTrackImage       *widget.SliderTrackImage
	ScrollButtonImage            *widget.ButtonImage
	TooltipBGImage               *eui_image.NineSlice
	ListSliderTrackImage         *widget.SliderTrackImage
	ListScrollContainerImage     *widget.ScrollContainerImage
	ListEntryColor               *widget.ListEntryColor
	SliderTrackImage             *widget.SliderTrackImage
	SeparatorImage               *eui_image.NineSlice
	CheckboxGraphic              *widget.CheckboxGraphicImage
	CheckboxButtonImage          *widget.ButtonImage
	TextInputImage               *widget.TextInputImage
	TextInputColor               *widget.TextInputColor
}
var UIRes *UIResources

UIRes is the main UIResources instance.

func NewUIResources

func NewUIResources(fsys fs.FS) (*UIResources, error)

NewUIResources creates a new UIResources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL