shared

package
v0.0.0-...-e7c8ed6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logrus.Logger

GetLogger returns the logger instance

func InitLogger

func InitLogger()

InitLogger initializes the logger

func SaveConfig

func SaveConfig(config *Config) error

SaveConfig saves the configuration to the config file

Types

type Config

type Config struct {
	Appearance struct {
		SelectedTheme string `toml:"selected_theme"`
		FontSize      int    `toml:"font_size"`
		Theme         struct {
			Light ThemeColors `toml:"light"`
			Dark  ThemeColors `toml:"dark"`
		} `toml:"theme"`
	} `toml:"appearance"`
}

Config represents the application configuration

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads the configuration from the config file

type MultiCryptTheme

type MultiCryptTheme struct{}

func (MultiCryptTheme) Color

func (m MultiCryptTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

func (MultiCryptTheme) Font

func (m MultiCryptTheme) Font(style fyne.TextStyle) fyne.Resource

func (MultiCryptTheme) Icon

func (m MultiCryptTheme) Icon(name fyne.ThemeIconName) fyne.Resource

func (MultiCryptTheme) Size

func (m MultiCryptTheme) Size(name fyne.ThemeSizeName) float32

type ThemeColors

type ThemeColors struct {
	Background string `toml:"background"`
	Foreground string `toml:"foreground"`
	Primary    string `toml:"primary"`
	Secondary  string `toml:"secondary"`
	Tertiary   string `toml:"tertiary"`
}

ThemeColors represents the colors for a theme

Jump to

Keyboard shortcuts

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