Documentation
¶
Index ¶
- Variables
- type Color
- type Flavor
- type Theme
- func (c Theme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color
- func (ctp Theme) Font(style fyne.TextStyle) fyne.Resource
- func (ctp Theme) Icon(name fyne.ThemeIconName) fyne.Resource
- func (ctp *Theme) ResetFlavor()
- func (ctp *Theme) SetAccent(c Color)
- func (ctp *Theme) SetFlavor(f Flavor)
- func (ctp Theme) Size(name fyne.ThemeSizeName) float32
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Latte = ctp.Latte Frappe = ctp.Frappe Macchiato = ctp.Macchiato Mocha = ctp.Mocha )
Just an alias to the original catppuccin/go vars
Functions ¶
This section is empty.
Types ¶
type Color ¶
type Color string
const ( Rosewater Color = "rosewater" Flamingo Color = "flamingo" Pink Color = "pink" Mauve Color = "mauve" Red Color = "red" Maroon Color = "maroon" Peach Color = "peach" Yellow Color = "yellow" Green Color = "green" Teal Color = "teal" Sky Color = "sky" Sapphire Color = "sapphire" Blue Color = "blue" Lavender Color = "lavender" )
Possible colors for accent color
type Theme ¶
type Theme struct {
// contains filtered or unexported fields
}
The main theme struct necessary for app.Settings().SetTheme(...)
func NewWithAccent ¶
Creates new Theme with the chosen accent color
func (Theme) Color ¶
func (c Theme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color
Implements fyne.Theme
Gets color from current theme with current accent and returns it for the app to handle
func (Theme) Icon ¶
func (ctp Theme) Icon(name fyne.ThemeIconName) fyne.Resource
Implements fyne.Theme
func (*Theme) ResetFlavor ¶
func (ctp *Theme) ResetFlavor()
Remove any forced flavor, returns to Latte for light mode systems and Mocha for dark mode
Click to show internal directories.
Click to hide internal directories.
