resource

package
v0.0.0-...-b0f4dd4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceFont = GetResource(GetRunnerPath() + "/res-static/fonts/Alibaba-PuHuiTi-Regular.ttf")
View Source
var ResourceIcon = GetResource(GetRunnerPath() + "/res-static/icon/icon.png")

Functions

func GetResource

func GetResource(resourcePath string) *fyne.StaticResource

func GetRunnerPath

func GetRunnerPath() string

Types

type CustomerTheme

type CustomerTheme struct{}

func (*CustomerTheme) Color

func (t *CustomerTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

func (*CustomerTheme) Font

func (*CustomerTheme) Font(s fyne.TextStyle) fyne.Resource

func (*CustomerTheme) Icon

func (t *CustomerTheme) Icon(name fyne.ThemeIconName) fyne.Resource

func (*CustomerTheme) Size

func (t *CustomerTheme) Size(name fyne.ThemeSizeName) float32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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