theme

package
v2.5.3-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorBlue   = "blue"
	ColorBrown  = "brown"
	ColorGray   = "gray"
	ColorGreen  = "green"
	ColorOrange = "orange"
	ColorPurple = "purple"
	ColorRed    = "red"
	ColorYellow = "yellow"
)

Primary color names.

View Source
const (
	VariantDark fyne.ThemeVariant = iota
	VariantLight
	VariantNameUserPreference // locally used in builtinTheme for backward compatibility
)

Theme variants; the public available ones are defined in /theme/theme.go.

Variables

This section is empty.

Functions

func ForegroundOnPrimaryColorNamed

func ForegroundOnPrimaryColorNamed(name string) color.Color

ForegroundOnPrimaryColorNamed returns a theme specific color used for text and icons against the named primary color.

func PrimaryColorNamed

func PrimaryColorNamed(name string) color.Color

PrimaryColorNamed returns a theme specific color value for a named primary color.

Types

This section is empty.

Jump to

Keyboard shortcuts

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