Documentation
¶
Overview ¶
Package config handles application configuration and theming.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
From string
To string
Date string
Time string
IsArrivalTime bool
NerdFont bool
Theme Theme
CurrentVersion string
}
Config holds CLI flag values to pre-fill the TUI form.
func LoadConfig ¶
LoadConfig reads the config file and returns a Config with defaults merged.
type Theme ¶
type Theme struct {
Text string `yaml:"text"`
TextMuted string `yaml:"textMuted"`
Error string `yaml:"error"`
Warning string `yaml:"warning"`
BorderFocused string `yaml:"borderFocused"`
BorderUnfocused string `yaml:"borderUnfocused"`
BadgeKeyFg string `yaml:"badgeKeyFg"`
BadgeKeyBg string `yaml:"badgeKeyBg"`
BadgeVehicleFg string `yaml:"badgeVehicleFg"`
BadgeVehicleBg string `yaml:"badgeVehicleBg"`
BadgeBadgeModelFg string `yaml:"badgeModelFg"`
BadgeModelBg string `yaml:"badgeModelBg"`
BadgeCompanyFg string `yaml:"badgeCompanyFg"`
BadgeCompanyBg string `yaml:"badgeCompanyBg"`
Logo string `yaml:"logo"`
}
Theme defines color values for the TUI appearance.