Documentation
¶
Overview ¶
conf
look
Index ¶
- Constants
- func ConfDir() string
- func GetExecDir() string
- func SaveConfigFile(cnf *Config) error
- type Config
- type Look
- func (l *Look) Color(cname fyne.ThemeColorName, tvar fyne.ThemeVariant) color.Color
- func (l *Look) Font(fyne.TextStyle) fyne.Resource
- func (l *Look) GetUnderline() int
- func (l *Look) Icon(iconName fyne.ThemeIconName) fyne.Resource
- func (lk Look) MarshalJSON() ([]byte, error)
- func (l *Look) SetFont(r fyne.Resource, fpath string)
- func (l *Look) SetTextSize(s float32)
- func (l *Look) SetUnderline(u int)
- func (l *Look) Size(sName fyne.ThemeSizeName) float32
- func (l *Look) TextSize() float32
- func (lk *Look) UnmarshalJSON(b []byte) error
Constants ¶
View Source
const (
ConfFileName = "litebook.conf"
)
Variables ¶
This section is empty.
Functions ¶
func GetExecDir ¶
func GetExecDir() string
func SaveConfigFile ¶
Types ¶
type Look ¶
type Look struct {
// contains filtered or unexported fields
}
func DefaultLook ¶
func NewLookFromTheme ¶
func NewLookFromTheme(t fyne.Theme) *Look
func (*Look) GetUnderline ¶
func (Look) MarshalJSON ¶
func (*Look) SetTextSize ¶
func (*Look) SetUnderline ¶
func (*Look) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.