diff options
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 24 |
1 files changed, 18 insertions, 6 deletions
@@ -48,9 +48,12 @@ func parseColor(s string, c *tcell.Color) error { } type ConfigColors struct { - Prompt tcell.Color - Unread tcell.Color - Nicks ui.ColorScheme + Prompt tcell.Color + Unread tcell.Color + Nicks ui.ColorScheme + ServerForeground tcell.Color + ChanForegroundInactive tcell.Color + ChanForegroundActive tcell.Color } type Config struct { @@ -109,9 +112,12 @@ func Defaults() (cfg Config, err error) { MemberColEnabled: true, TextMaxWidth: 0, Colors: ConfigColors{ - Prompt: tcell.ColorDefault, - Unread: tcell.ColorDefault, - Nicks: ui.ColorSchemeBase, + Prompt: tcell.ColorDefault, + Unread: tcell.ColorDefault, + Nicks: ui.ColorSchemeBase, + ServerForeground: tcell.ColorDarkGray, + ChanForegroundInactive: tcell.ColorGray, + ChanForegroundActive: tcell.ColorWhite, }, Debug: false, } @@ -345,6 +351,12 @@ func unmarshal(filename string, cfg *Config) (err error) { cfg.Colors.Prompt = color case "unread": cfg.Colors.Unread = color + case "server": + cfg.Colors.ServerForeground = color + case "channel": + cfg.Colors.ChanForegroundInactive = color + case "channel-active": + cfg.Colors.ChanForegroundActive = color default: return fmt.Errorf("unknown directive %q", child.Name) } |