package theme

import "fyne.io/fyne/v2/internal/theme"

Index

Constants

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

Primary color names.

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.

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.

Source Files

theme.go

Version
v2.5.4 (latest)
Published
Feb 1, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 month ago

Tools for package owners.