Allow to set background color for each app button, fix couple comments in sample config

This commit is contained in:
eleksir
2024-01-10 23:49:15 +03:00
parent b0b297bc56
commit 202f277eee
3 changed files with 11 additions and 2 deletions

View File

@@ -120,6 +120,7 @@ type MyConfig struct {
Instance string `json:"instance,omitempty"`
Class string `json:"class,omitempty"`
Color string `json:"color,omitempty"`
Background string `json:"background,omitempty"`
Border string `json:"border,omitempty"`
BorderActive string `json:"border_active,omitempty"`
Separator bool `json:"separator,omitempty"`
@@ -383,6 +384,10 @@ func readConf() (MyConfig, error) {
app.Color = Conf.Color
}
if app.Background == "" {
app.Background = Conf.Background
}
if app.Border == "" {
app.Border = Conf.Color
}