Skip to content

Commit 339b331

Browse files
committed
Change menu information text to dim
Signed-off-by: Joana Hrotko <[email protected]>
1 parent 6fe69b2 commit 339b331

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cmd/formatter/logs.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ func (l *logConsumer) Err(container, message string) {
102102
l.write(l.stderr, container, message)
103103
}
104104

105-
var navColor = makeColorFunc("90")
106-
107105
func (l *logConsumer) write(w io.Writer, container, message string) {
108106
if l.ctx.Err() != nil {
109107
return

cmd/formatter/shortcut.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ func (lk *LogKeyboard) printNavigationMenu() {
187187
}
188188

189189
func (lk *LogKeyboard) navigationMenu() string {
190-
var options string
191190
var openDDInfo string
192191
if lk.IsDockerDesktopActive {
193192
openDDInfo = shortcutKeyColor("v") + navColor(" View in Docker Desktop")
@@ -201,7 +200,7 @@ func (lk *LogKeyboard) navigationMenu() string {
201200
isEnabled = " Disable"
202201
}
203202
watchInfo = watchInfo + shortcutKeyColor("w") + navColor(isEnabled+" Watch")
204-
return options + openDDInfo + watchInfo
203+
return openDDInfo + watchInfo
205204
}
206205

207206
func (lk *LogKeyboard) clearNavigationMenu() {
@@ -325,3 +324,7 @@ func shortcutKeyColor(key string) string {
325324
white := "255;255;255"
326325
return ansiColor(foreground+";"+black+";"+background+";"+white, key, BOLD)
327326
}
327+
328+
func navColor(key string) string {
329+
return ansiColor(FAINT, key)
330+
}

0 commit comments

Comments
 (0)