theme

package
v0.0.0-...-b37145a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdwaitaTheme

func AdwaitaTheme() fyne.Theme

AdwaitaTheme returns a new Adwaita theme.

Types

type Adwaita

type Adwaita struct{}

Adwaita is a theme that follows the Adwaita theme. It provides a light and dark theme + icons. See: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/named-colors.html

func (*Adwaita) Color

func (a *Adwaita) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

Color returns the named color for the current theme.

func (*Adwaita) Font

func (a *Adwaita) Font(style fyne.TextStyle) fyne.Resource

Font returns the named font for the current theme.

func (*Adwaita) Icon

func (a *Adwaita) Icon(name fyne.ThemeIconName) fyne.Resource

Icon returns the named resource for the current theme.

func (*Adwaita) Size

func (a *Adwaita) Size(name fyne.ThemeSizeName) float32

Size returns the size of the named resource for the current theme.

Jump to

Keyboard shortcuts

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