improve readability of colours

This commit is contained in:
Jesse Duffield 2019-07-02 20:40:38 +10:00
parent e88be90f46
commit bb74edab73
3 changed files with 4 additions and 4 deletions

View file

@ -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":

View file

@ -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{

View file

@ -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