theme

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedThemes = []string{
	fyneDarkThemeName,
	fyneLightThemeName,
	fyneOldDarkThemeName,
	fyneOldLightThemeName,
}

Functions

func Generate

func Generate(t *Setting) (string, string, error)

func GetEmbeddedThemeFrom

func GetEmbeddedThemeFrom(name string) fyne.Theme

Types

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

func NewSetting

func NewSetting() *Setting

func (*Setting) BackgroundColor

func (s *Setting) BackgroundColor() color.Color

func (*Setting) ButtonColor

func (s *Setting) ButtonColor() color.Color

func (*Setting) DisabledButtonColor

func (s *Setting) DisabledButtonColor() color.Color

func (*Setting) DisabledIconColor

func (s *Setting) DisabledIconColor() color.Color

func (*Setting) DisabledTextColor

func (s *Setting) DisabledTextColor() color.Color

func (*Setting) ExportFontFile

func (s *Setting) ExportFontFile() bool

func (*Setting) FocusColor

func (s *Setting) FocusColor() color.Color

func (*Setting) HoverColor

func (s *Setting) HoverColor() color.Color

func (*Setting) HyperlinkColor

func (s *Setting) HyperlinkColor() color.Color

func (*Setting) IconColor

func (s *Setting) IconColor() color.Color

func (*Setting) IconInlineSize

func (s *Setting) IconInlineSize() int

func (*Setting) PackageName

func (s *Setting) PackageName() string

func (*Setting) Padding

func (s *Setting) Padding() int

func (*Setting) PlaceHolderColor

func (s *Setting) PlaceHolderColor() color.Color

func (*Setting) PrimaryColor

func (s *Setting) PrimaryColor() color.Color

func (*Setting) ScrollBarColor

func (s *Setting) ScrollBarColor() color.Color

func (*Setting) ScrollBarSize

func (s *Setting) ScrollBarSize() int

func (*Setting) ScrollBarSmallSize

func (s *Setting) ScrollBarSmallSize() int

func (*Setting) SetBackgroundColor

func (s *Setting) SetBackgroundColor(c color.Color)

func (*Setting) SetButtonColor

func (s *Setting) SetButtonColor(c color.Color)

func (*Setting) SetDisabledButtonColor

func (s *Setting) SetDisabledButtonColor(c color.Color)

func (*Setting) SetDisabledIconColor

func (s *Setting) SetDisabledIconColor(c color.Color)

func (*Setting) SetDisabledTextColor

func (s *Setting) SetDisabledTextColor(c color.Color)

func (*Setting) SetExportFontFile

func (s *Setting) SetExportFontFile(b bool)

func (*Setting) SetFocusColor

func (s *Setting) SetFocusColor(c color.Color)

func (*Setting) SetHoverColor

func (s *Setting) SetHoverColor(c color.Color)

func (*Setting) SetHyperlinkColor

func (s *Setting) SetHyperlinkColor(c color.Color)

func (*Setting) SetIconColor

func (s *Setting) SetIconColor(c color.Color)

func (*Setting) SetIconInlineSize

func (s *Setting) SetIconInlineSize(size int)

func (*Setting) SetPackageName

func (s *Setting) SetPackageName(name string)

func (*Setting) SetPadding

func (s *Setting) SetPadding(pad int)

func (*Setting) SetPlaceHolderColor

func (s *Setting) SetPlaceHolderColor(c color.Color)

func (*Setting) SetPrimaryColor

func (s *Setting) SetPrimaryColor(c color.Color)

func (*Setting) SetScrollBarColor

func (s *Setting) SetScrollBarColor(c color.Color)

func (*Setting) SetScrollBarSize

func (s *Setting) SetScrollBarSize(size int)

func (*Setting) SetScrollBarSmallSize

func (s *Setting) SetScrollBarSmallSize(size int)

func (*Setting) SetShadowColor

func (s *Setting) SetShadowColor(c color.Color)

func (*Setting) SetTextBoldFont

func (s *Setting) SetTextBoldFont(font fyne.Resource)

func (*Setting) SetTextBoldItalicFont

func (s *Setting) SetTextBoldItalicFont(font fyne.Resource)

func (*Setting) SetTextColor

func (s *Setting) SetTextColor(c color.Color)

func (*Setting) SetTextFont

func (s *Setting) SetTextFont(font fyne.Resource)

func (*Setting) SetTextItalicFont

func (s *Setting) SetTextItalicFont(font fyne.Resource)

func (*Setting) SetTextMonospaceFont

func (s *Setting) SetTextMonospaceFont(font fyne.Resource)

func (*Setting) SetTextSize

func (s *Setting) SetTextSize(size int)

func (*Setting) SetThemeStructName

func (s *Setting) SetThemeStructName(name string)

func (*Setting) ShadowColor

func (s *Setting) ShadowColor() color.Color

func (*Setting) TextBoldFont

func (s *Setting) TextBoldFont() fyne.Resource

func (*Setting) TextBoldItalicFont

func (s *Setting) TextBoldItalicFont() fyne.Resource

func (*Setting) TextColor

func (s *Setting) TextColor() color.Color

func (*Setting) TextFont

func (s *Setting) TextFont() fyne.Resource

func (*Setting) TextItalicFont

func (s *Setting) TextItalicFont() fyne.Resource

func (*Setting) TextMonospaceFont

func (s *Setting) TextMonospaceFont() fyne.Resource

func (*Setting) TextSize

func (s *Setting) TextSize() int

func (*Setting) ThemeStructName

func (s *Setting) ThemeStructName() string

func (*Setting) UpdateTheme

func (s *Setting) UpdateTheme(t fyne.Theme)

Jump to

Keyboard shortcuts

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