mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-24 16:11:04 +00:00
improve readability of colours
This commit is contained in:
parent
e88be90f46
commit
bb74edab73
3 changed files with 4 additions and 4 deletions
|
|
@ -294,7 +294,7 @@ func (c *Container) GetColor() color.Attribute {
|
||||||
switch c.Container.State {
|
switch c.Container.State {
|
||||||
case "exited":
|
case "exited":
|
||||||
if c.Details.State.ExitCode == 0 {
|
if c.Details.State.ExitCode == 0 {
|
||||||
return color.FgBlue
|
return color.FgYellow
|
||||||
}
|
}
|
||||||
return color.FgRed
|
return color.FgRed
|
||||||
case "created":
|
case "created":
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ func (l *Layer) GetDisplayStrings(isFocused bool) []string {
|
||||||
}
|
}
|
||||||
idColor := color.FgWhite
|
idColor := color.FgWhite
|
||||||
if id == "<missing>" {
|
if id == "<missing>" {
|
||||||
idColor = color.FgBlack
|
idColor = color.FgBlue
|
||||||
}
|
}
|
||||||
|
|
||||||
dockerFileCommandPrefix := "/bin/sh -c #(nop) "
|
dockerFileCommandPrefix := "/bin/sh -c #(nop) "
|
||||||
|
|
@ -73,7 +73,7 @@ func (l *Layer) GetDisplayStrings(isFocused bool) []string {
|
||||||
size := utils.FormatBinaryBytes(int(l.Size))
|
size := utils.FormatBinaryBytes(int(l.Size))
|
||||||
sizeColor := color.FgWhite
|
sizeColor := color.FgWhite
|
||||||
if size == "0B" {
|
if size == "0B" {
|
||||||
sizeColor = color.FgBlack
|
sizeColor = color.FgBlue
|
||||||
}
|
}
|
||||||
|
|
||||||
return []string{
|
return []string{
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ type Service struct {
|
||||||
func (s *Service) GetDisplayStrings(isFocused bool) []string {
|
func (s *Service) GetDisplayStrings(isFocused bool) []string {
|
||||||
|
|
||||||
if s.Container == nil {
|
if s.Container == nil {
|
||||||
return []string{utils.ColoredString("none", color.FgBlack), s.Name, ""}
|
return []string{utils.ColoredString("none", color.FgBlue), s.Name, ""}
|
||||||
}
|
}
|
||||||
|
|
||||||
cont := s.Container
|
cont := s.Container
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue