theme

package module
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ColorNameGray      fyne.ThemeColorName = "gray"
	ColorNameDiscrete  fyne.ThemeColorName = "discrete"
	ColorNameProminent fyne.ThemeColorName = "prominent"
	ColorNameImposing  fyne.ThemeColorName = "imposing"
	ColorNameScreaming fyne.ThemeColorName = "screaming"
	ColorNamePrimary   fyne.ThemeColorName = "primary"
	ColorNameSecondary fyne.ThemeColorName = "secondary"
	ColorNameTertiary  fyne.ThemeColorName = "tertiary"
	ColorNameMessage   fyne.ThemeColorName = "message"
	ColorNameWarning   fyne.ThemeColorName = "warning"
	ColorNameError     fyne.ThemeColorName = "error"
)
View Source
const (
	SizeNameMajorText     fyne.ThemeSizeName = "major"
	SizeNameMinorText     fyne.ThemeSizeName = "minor"
	SizeNamePrimaryText   fyne.ThemeSizeName = "primary"
	SizeNameSecondaryText fyne.ThemeSizeName = "secondary"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Small

type Small struct{}

func (Small) Color

func (Small) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

Color implements fyne.Theme.

func (Small) Font

func (Small) Font(style fyne.TextStyle) fyne.Resource

Font implements fyne.Theme.

func (Small) Icon

func (Small) Icon(name fyne.ThemeIconName) fyne.Resource

Icon implements fyne.Theme.

func (Small) Size

func (Small) Size(name fyne.ThemeSizeName) float32

Size implements fyne.Theme.

type Standard

type Standard struct{}

func NewStandard

func NewStandard() *Standard

func (Standard) Color

func (Standard) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

Color implements fyne.Theme.

func (Standard) Font

func (Standard) Font(style fyne.TextStyle) fyne.Resource

Font implements fyne.Theme.

func (Standard) Icon

Icon implements fyne.Theme.

func (Standard) Size

func (Standard) Size(name fyne.ThemeSizeName) float32

Size implements fyne.Theme.

type Tight

type Tight struct{}

func NewTight

func NewTight() *Tight

func (Tight) Color

func (Tight) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

Color implements fyne.Theme.

func (Tight) Font

func (Tight) Font(style fyne.TextStyle) fyne.Resource

Font implements fyne.Theme.

func (Tight) Icon

func (Tight) Icon(name fyne.ThemeIconName) fyne.Resource

Icon implements fyne.Theme.

func (Tight) Size

func (Tight) Size(name fyne.ThemeSizeName) float32

Size implements fyne.Theme.

Jump to

Keyboard shortcuts

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