From a0819d6b9172decfe878c63d23c553a7db5c8154 Mon Sep 17 00:00:00 2001 From: Charalambos Emmanouilidis Date: Mon, 15 Dec 2025 13:42:15 +0200 Subject: [PATCH] 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 --- pkg/commands/image.go | 4 ++-- pkg/config/app_config.go | 2 +- pkg/gui/presentation/containers.go | 2 +- pkg/gui/presentation/services.go | 2 +- pkg/gui/subprocess.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/commands/image.go b/pkg/commands/image.go index 789733d0..4aa585f2 100644 --- a/pkg/commands/image.go +++ b/pkg/commands/image.go @@ -46,7 +46,7 @@ func getHistoryResponseItemDisplayStrings(layer image.HistoryResponseItem) []str } idColor := color.FgWhite if id == "" { - 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{ diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 9c0ad474..70db293b 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -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, diff --git a/pkg/gui/presentation/containers.go b/pkg/gui/presentation/containers.go index 173a1e8a..075cd294 100644 --- a/pkg/gui/presentation/containers.go +++ b/pkg/gui/presentation/containers.go @@ -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: diff --git a/pkg/gui/presentation/services.go b/pkg/gui/presentation/services.go index 7e781ec1..b1bec225 100644 --- a/pkg/gui/presentation/services.go +++ b/pkg/gui/presentation/services.go @@ -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, "", diff --git a/pkg/gui/subprocess.go b/pkg/gui/subprocess.go index b41ac475..502e5eb3 100644 --- a/pkg/gui/subprocess.go +++ b/pkg/gui/subprocess.go @@ -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)) }