Fix color contrast for better readability on dark backgrounds

Changed FgBlue to FgCyan in multiple locations to improve text visibility
on terminals with dark blue ANSI colors. This affects image history display,
service status indicators, container states, keyboard shortcuts, and command output.

Fixes #685
This commit is contained in:
Charalambos Emmanouilidis 2025-12-15 13:42:15 +02:00
parent 78edbf3d2e
commit a0819d6b91
5 changed files with 6 additions and 6 deletions

View file

@ -46,7 +46,7 @@ func getHistoryResponseItemDisplayStrings(layer image.HistoryResponseItem) []str
}
idColor := color.FgWhite
if id == "<missing>" {
idColor = color.FgBlue
idColor = color.FgCyan
}
dockerFileCommandPrefix := "/bin/sh -c #(nop) "
@ -62,7 +62,7 @@ func getHistoryResponseItemDisplayStrings(layer image.HistoryResponseItem) []str
size := utils.FormatBinaryBytes(int(layer.Size))
sizeColor := color.FgWhite
if size == "0B" {
sizeColor = color.FgBlue
sizeColor = color.FgCyan
}
return []string{

View file

@ -366,7 +366,7 @@ func GetDefaultConfig() UserConfig {
ActiveBorderColor: []string{"green", "bold"},
InactiveBorderColor: []string{"default"},
SelectedLineBgColor: []string{"blue"},
OptionsTextColor: []string{"blue"},
OptionsTextColor: []string{"cyan"},
},
ShowAllContainers: false,
ReturnImmediately: false,

View file

@ -193,7 +193,7 @@ func getContainerColor(c *commands.Container) color.Attribute {
case "dead":
return color.FgRed
case "restarting":
return color.FgBlue
return color.FgCyan
case "removing":
return color.FgMagenta
default:

View file

@ -22,7 +22,7 @@ func GetServiceDisplayStrings(guiConfig *config.GuiConfig, service *commands.Ser
}
return []string{
utils.ColoredString(containerState, color.FgBlue),
utils.ColoredString(containerState, color.FgCyan),
"",
service.Name,
"",

View file

@ -54,7 +54,7 @@ func (gui *Gui) runCommand(cmd *exec.Cmd, msg string) {
}
}()
fmt.Fprintf(os.Stdout, "\n%s\n\n", utils.ColoredString("+ "+strings.Join(cmd.Args, " "), color.FgBlue))
fmt.Fprintf(os.Stdout, "\n%s\n\n", utils.ColoredString("+ "+strings.Join(cmd.Args, " "), color.FgCyan))
if msg != "" {
fmt.Fprintf(os.Stdout, "\n%s\n\n", utils.ColoredString(msg, color.FgGreen))
}