resource

package
v0.0.0-...-3519b65 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResource

func GetResource(resourcePath string) *fyne.StaticResource

func GetRunnerPath

func GetRunnerPath() string

GetRunnerPath 获取程序运行路径, 这个主要是为了获取程序配置, config.yaml 以及 static 文件路径 这里应该拆分为两个方法

func ResourceFontNoto

func ResourceFontNoto() *fyne.StaticResource

func ResourceIcon

func ResourceIcon() *fyne.StaticResource

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