mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 15:11:02 +00:00
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:
parent
78edbf3d2e
commit
a0819d6b91
5 changed files with 6 additions and 6 deletions
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
"",
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue