From 953aeb9494d1bfdb81d2a62c1528a8cda5607276 Mon Sep 17 00:00:00 2001 From: Joana Hrotko Date: Wed, 27 Mar 2024 18:01:54 +0000 Subject: [PATCH] Change menu information text to dim Signed-off-by: Joana Hrotko --- cmd/formatter/colors.go | 2 +- cmd/formatter/logs.go | 2 -- cmd/formatter/shortcut.go | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/formatter/colors.go b/cmd/formatter/colors.go index cf6a4b56c37..de3be20e567 100644 --- a/cmd/formatter/colors.go +++ b/cmd/formatter/colors.go @@ -37,7 +37,7 @@ var names = []string{ const ( BOLD = "1" - FAINT = "2" + DIM = "2" ITALIC = "3" UNDERLINE = "4" ) diff --git a/cmd/formatter/logs.go b/cmd/formatter/logs.go index 7d2c5451296..5a8b75a53ed 100644 --- a/cmd/formatter/logs.go +++ b/cmd/formatter/logs.go @@ -102,8 +102,6 @@ func (l *logConsumer) Err(container, message string) { l.write(l.stderr, container, message) } -var navColor = makeColorFunc("90") - func (l *logConsumer) write(w io.Writer, container, message string) { if l.ctx.Err() != nil { return diff --git a/cmd/formatter/shortcut.go b/cmd/formatter/shortcut.go index 831a5e4b476..8f9fb67dbd5 100644 --- a/cmd/formatter/shortcut.go +++ b/cmd/formatter/shortcut.go @@ -325,3 +325,7 @@ func shortcutKeyColor(key string) string { white := "255;255;255" return ansiColor(foreground+";"+black+";"+background+";"+white, key, BOLD) } + +func navColor(key string) string { + return ansiColor(DIM, key) +}