theme

package
v0.0.0-...-7f222ab Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BowlsTheme

type BowlsTheme struct {
	fyne.Theme
	// contains filtered or unexported fields
}

func New

func New() *BowlsTheme

New returns the theme for the app

func (BowlsTheme) Color

func (t BowlsTheme) Color(name fyne.ThemeColorName, _ fyne.ThemeVariant) color.Color

Color implements fyne.Theme interface

func (BowlsTheme) Font

func (t BowlsTheme) Font(style fyne.TextStyle) fyne.Resource

Font implements fyne.Theme interface

func (BowlsTheme) Icon

func (t BowlsTheme) Icon(name fyne.ThemeIconName) fyne.Resource

Icon implements fyne.Theme interface

func (BowlsTheme) ScoreBtn

func (t BowlsTheme) ScoreBtn(label string, fn func(), icon fyne.Resource) *widget.Button

ScoreBtn returns a button to manipulate a score

func (BowlsTheme) ScoreLabel

func (t BowlsTheme) ScoreLabel(bind binding.Int) *widget.Label

ScoreLabel returns a label containing a score

func (*BowlsTheme) SetVariant

func (t *BowlsTheme) SetVariant(v int) *BowlsTheme

func (BowlsTheme) Size

func (t BowlsTheme) Size(name fyne.ThemeSizeName) float32

Size implements fyne.Theme interface

Jump to

Keyboard shortcuts

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