theme

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 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, fyne.ThemeVariant)

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) CaptionTextSize added in v0.2.0

func (s *Setting) CaptionTextSize() float32

func (*Setting) Color added in v0.2.0

func (s *Setting) Color(c fyne.ThemeColorName, v fyne.ThemeVariant) color.Color

func (*Setting) DisabledButtonColor

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

func (*Setting) DisabledColor added in v0.2.0

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

func (*Setting) ErrorColor added in v0.2.0

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

func (*Setting) ExportFontFile

func (s *Setting) ExportFontFile() bool

func (*Setting) ExportForV2 added in v0.2.0

func (s *Setting) ExportForV2() bool

func (*Setting) FocusColor

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

func (*Setting) Font added in v0.2.0

func (s *Setting) Font(style fyne.TextStyle) fyne.Resource

func (*Setting) ForegroundColor added in v0.2.0

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

func (*Setting) HoverColor

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

func (*Setting) Icon added in v0.2.0

func (s *Setting) Icon(n fyne.ThemeIconName) fyne.Resource

func (*Setting) InlineIconSize added in v0.2.0

func (s *Setting) InlineIconSize() float32

func (*Setting) InputBackgroundColor added in v0.2.0

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

func (*Setting) InputBorderSize added in v0.2.0

func (s *Setting) InputBorderSize() float32

func (*Setting) PackageName

func (s *Setting) PackageName() string

func (*Setting) PaddingSize added in v0.2.0

func (s *Setting) PaddingSize() float32

func (*Setting) PlaceHolderColor

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

func (*Setting) PressedColor added in v0.2.0

func (s *Setting) PressedColor() 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() float32

func (*Setting) ScrollBarSmallSize

func (s *Setting) ScrollBarSmallSize() float32

func (*Setting) SeparatorThicknessSize added in v0.2.0

func (s *Setting) SeparatorThicknessSize() float32

func (*Setting) SetBackgroundColor

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

func (*Setting) SetButtonColor

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

func (*Setting) SetCaptionTextSize added in v0.2.0

func (s *Setting) SetCaptionTextSize(size float32)

func (*Setting) SetDisabledButtonColor

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

func (*Setting) SetDisabledColor added in v0.2.0

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

func (*Setting) SetErrorColor added in v0.2.0

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

func (*Setting) SetExportFontFile

func (s *Setting) SetExportFontFile(b bool)

func (*Setting) SetExportForV2 added in v0.2.0

func (s *Setting) SetExportForV2(b bool)

func (*Setting) SetFocusColor

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

func (*Setting) SetForegroundColor added in v0.2.0

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

func (*Setting) SetHoverColor

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

func (*Setting) SetInlineIconSize added in v0.2.0

func (s *Setting) SetInlineIconSize(size float32)

func (*Setting) SetInputBackgroundColor added in v0.2.0

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

func (*Setting) SetInputBorderSize added in v0.2.0

func (s *Setting) SetInputBorderSize(size float32)

func (*Setting) SetPackageName

func (s *Setting) SetPackageName(name string)

func (*Setting) SetPaddingSize added in v0.2.0

func (s *Setting) SetPaddingSize(size float32)

func (*Setting) SetPlaceHolderColor

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

func (*Setting) SetPressedColor added in v0.2.0

func (s *Setting) SetPressedColor(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 float32)

func (*Setting) SetScrollBarSmallSize

func (s *Setting) SetScrollBarSmallSize(size float32)

func (*Setting) SetSeparatorThicknessSize added in v0.2.0

func (s *Setting) SetSeparatorThicknessSize(size float32)

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) 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 float32)

func (*Setting) SetThemeStructName

func (s *Setting) SetThemeStructName(name string)

func (*Setting) ShadowColor

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

func (*Setting) Size added in v0.2.0

func (s *Setting) Size(n fyne.ThemeSizeName) float32

func (*Setting) TextBoldFont

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

func (*Setting) TextBoldItalicFont

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

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() float32

func (*Setting) ThemeStructName

func (s *Setting) ThemeStructName() string

func (*Setting) UpdateTheme

func (s *Setting) UpdateTheme(t fyne.Theme, v fyne.ThemeVariant)

Jump to

Keyboard shortcuts

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