add mascot

This commit is contained in:
2026-07-29 08:33:37 +02:00
committed by pablu
parent 027057e85f
commit 28e418abd6
8 changed files with 994 additions and 64 deletions

View File

@@ -25,20 +25,23 @@ func (d *configDuration) UnmarshalText(text []byte) error {
}
type Config struct {
Theme string `toml:"theme"`
RefreshInterval configDuration `toml:"refresh_interval"`
Repository string `toml:"repository"`
ShowAll bool `toml:"show_all"`
Limit int `toml:"limit"`
Endpoint string `toml:"endpoint"`
Display DisplayConfig `toml:"display"`
Paths PathConfig `toml:"paths"`
Threads ThreadConfig `toml:"threads"`
Cache CacheConfig `toml:"cache"`
Editing EditingConfig `toml:"editing"`
CustomTheme CustomThemeConfig `toml:"custom_theme"`
KeyBindings KeyBindings `toml:"keybindings"`
AI AIConfig `toml:"ai"`
Theme string `toml:"theme"`
RefreshInterval configDuration `toml:"refresh_interval"`
Repository string `toml:"repository"`
ShowAll bool `toml:"show_all"`
Limit int `toml:"limit"`
Endpoint string `toml:"endpoint"`
Mascot bool `toml:"mascot"`
MascotExpressive bool `toml:"mascot_expressive"`
MascotAnimated bool `toml:"mascot_animated"`
Display DisplayConfig `toml:"display"`
Paths PathConfig `toml:"paths"`
Threads ThreadConfig `toml:"threads"`
Cache CacheConfig `toml:"cache"`
Editing EditingConfig `toml:"editing"`
CustomTheme CustomThemeConfig `toml:"custom_theme"`
KeyBindings KeyBindings `toml:"keybindings"`
AI AIConfig `toml:"ai"`
}
type CustomThemeConfig struct {
@@ -97,10 +100,13 @@ type EditingConfig struct {
func defaultConfig() Config {
return Config{
Theme: "dark",
RefreshInterval: configDuration{10 * time.Second},
Limit: 50,
Endpoint: "https://api.github.com/graphql",
Theme: "dark",
RefreshInterval: configDuration{10 * time.Second},
Limit: 50,
Endpoint: "https://api.github.com/graphql",
Mascot: false,
MascotExpressive: false,
MascotAnimated: false,
Display: DisplayConfig{
FoldResolved: true,
ThreadListWidthPercent: 33,