This commit is contained in:
Louis Dalibard 2025-01-19 00:15:11 +01:00
parent fb637be096
commit 5aa06e90fc

View File

@ -177,7 +177,7 @@ func Init() {
func updatePywalColors() { func updatePywalColors() {
walPath := configdir.LocalCache("wal") walPath := configdir.LocalCache("wal")
walFile := filepath.Join(walPath, "colors") walFile := filepath.Join(walPath, "colors")
if _, err := os.Stat(walFile); os.IsNotExist(err) { if _, err := os.Stat(walFile); os.IsNotExist(err) || Config.ForceColors {
AccentColor = color.RGBA{Config.AccentColorR, Config.AccentColorG, Config.AccentColorB, Config.LineOpacity} AccentColor = color.RGBA{Config.AccentColorR, Config.AccentColorG, Config.AccentColorB, Config.LineOpacity}
FirstColor = color.RGBA{Config.FirstColorR, Config.FirstColorG, Config.FirstColorB, Config.LineOpacity} FirstColor = color.RGBA{Config.FirstColorR, Config.FirstColorG, Config.FirstColorB, Config.LineOpacity}
ThirdColor = color.RGBA{Config.ThirdColorR, Config.ThirdColorG, Config.ThirdColorB, Config.LineOpacity} ThirdColor = color.RGBA{Config.ThirdColorR, Config.ThirdColorG, Config.ThirdColorB, Config.LineOpacity}