conf

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

conf

look

Index

Constants

View Source
const (
	ConfFileName = "litebook.conf"
)

Variables

This section is empty.

Functions

func ConfDir

func ConfDir() string

func GetExecDir

func GetExecDir() string

func SaveConfigFile

func SaveConfigFile(cnf *Config) error

Types

type Config

type Config struct {
	LastWinSize    fyne.Size
	LastFile       string
	Theme          *Look
	BackgroundFile string
}

func LoadConfigFile

func LoadConfigFile() (*Config, error)

func NewDefConfig

func NewDefConfig() (cfg *Config, err error)

type Look

type Look struct {
	// contains filtered or unexported fields
}

func DefaultLook

func DefaultLook() (*Look, error)

func NewLookFromTheme

func NewLookFromTheme(t fyne.Theme) *Look

func (*Look) Color added in v0.2.1

func (l *Look) Color(cname fyne.ThemeColorName, tvar fyne.ThemeVariant) color.Color

following are methods implmenting fyne.Theme interface

func (*Look) Font added in v0.2.1

func (l *Look) Font(fyne.TextStyle) fyne.Resource

func (*Look) GetUnderline

func (l *Look) GetUnderline() int

func (*Look) Icon added in v0.2.1

func (l *Look) Icon(iconName fyne.ThemeIconName) fyne.Resource

func (Look) MarshalJSON

func (lk Look) MarshalJSON() ([]byte, error)

func (*Look) SetFont

func (l *Look) SetFont(r fyne.Resource, fpath string)

func (*Look) SetTextSize

func (l *Look) SetTextSize(s float32)

func (*Look) SetUnderline

func (l *Look) SetUnderline(u int)

func (*Look) Size added in v0.2.1

func (l *Look) Size(sName fyne.ThemeSizeName) float32

func (*Look) TextSize

func (l *Look) TextSize() float32

func (*Look) UnmarshalJSON

func (lk *Look) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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