theme

package
v0.0.0-...-3f35417 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body(th *Theme, txt string) material.LabelStyle

func H1

func H1(th *Theme, txt string) material.LabelStyle

func H2

func H2(th *Theme, txt string) material.LabelStyle

func H3

func H3(th *Theme, txt string) material.LabelStyle

func H4

func H4(th *Theme, txt string) material.LabelStyle

func H5

func H5(th *Theme, txt string) material.LabelStyle

func H6

func H6(th *Theme, txt string) material.LabelStyle

func NewColors

func NewColors() (c map[string]string)

func Small

func Small(th *Theme, txt string) material.LabelStyle

Types

type Theme

type Theme struct {
	T *material.Theme
	//Shaper   text.Shaper
	//TextSize unit.Value
	TextSize float32
	//Color    struct {
	//	Primary color.RGBA
	//	Text    color.RGBA
	//	Hint    color.RGBA
	//	InvText color.RGBA
	//}
	Colors map[string]string
	Fonts  map[string]text.Typeface
	Icons  map[string]*widget.Icon
	// contains filtered or unexported fields
}

func NewTheme

func NewTheme() *Theme

func (*Theme) ChangeLightDark

func (t *Theme) ChangeLightDark()

Jump to

Keyboard shortcuts

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