Fyne API "fyne.Theme"

fyne.Theme


import "fyne.io/fyne/v2"

Usage

type Theme

type Theme interface {
	Color(ThemeColorName, ThemeVariant) color.Color
	Font(TextStyle) Resource
	Icon(ThemeIconName) Resource
	Size(ThemeSizeName) float32
}

Theme defines the method to look up colors, sizes and fonts that make up a Fyne theme.

Since: 2.0