mirror of https://github.com/docker/compose.git
Change menu information text to dim
Signed-off-by: Joana Hrotko <joana.hrotko@docker.com>
This commit is contained in:
parent
6fe69b2575
commit
339b331a86
|
@ -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
|
||||
|
|
|
@ -187,7 +187,6 @@ func (lk *LogKeyboard) printNavigationMenu() {
|
|||
}
|
||||
|
||||
func (lk *LogKeyboard) navigationMenu() string {
|
||||
var options string
|
||||
var openDDInfo string
|
||||
if lk.IsDockerDesktopActive {
|
||||
openDDInfo = shortcutKeyColor("v") + navColor(" View in Docker Desktop")
|
||||
|
@ -201,7 +200,7 @@ func (lk *LogKeyboard) navigationMenu() string {
|
|||
isEnabled = " Disable"
|
||||
}
|
||||
watchInfo = watchInfo + shortcutKeyColor("w") + navColor(isEnabled+" Watch")
|
||||
return options + openDDInfo + watchInfo
|
||||
return openDDInfo + watchInfo
|
||||
}
|
||||
|
||||
func (lk *LogKeyboard) clearNavigationMenu() {
|
||||
|
@ -325,3 +324,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(FAINT, key)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue