mirror of
https://github.com/docker/compose.git
synced 2025-07-23 21:54:40 +02:00
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)
|
l.write(l.stderr, container, message)
|
||||||
}
|
}
|
||||||
|
|
||||||
var navColor = makeColorFunc("90")
|
|
||||||
|
|
||||||
func (l *logConsumer) write(w io.Writer, container, message string) {
|
func (l *logConsumer) write(w io.Writer, container, message string) {
|
||||||
if l.ctx.Err() != nil {
|
if l.ctx.Err() != nil {
|
||||||
return
|
return
|
||||||
|
@ -187,7 +187,6 @@ func (lk *LogKeyboard) printNavigationMenu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (lk *LogKeyboard) navigationMenu() string {
|
func (lk *LogKeyboard) navigationMenu() string {
|
||||||
var options string
|
|
||||||
var openDDInfo string
|
var openDDInfo string
|
||||||
if lk.IsDockerDesktopActive {
|
if lk.IsDockerDesktopActive {
|
||||||
openDDInfo = shortcutKeyColor("v") + navColor(" View in Docker Desktop")
|
openDDInfo = shortcutKeyColor("v") + navColor(" View in Docker Desktop")
|
||||||
@ -201,7 +200,7 @@ func (lk *LogKeyboard) navigationMenu() string {
|
|||||||
isEnabled = " Disable"
|
isEnabled = " Disable"
|
||||||
}
|
}
|
||||||
watchInfo = watchInfo + shortcutKeyColor("w") + navColor(isEnabled+" Watch")
|
watchInfo = watchInfo + shortcutKeyColor("w") + navColor(isEnabled+" Watch")
|
||||||
return options + openDDInfo + watchInfo
|
return openDDInfo + watchInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lk *LogKeyboard) clearNavigationMenu() {
|
func (lk *LogKeyboard) clearNavigationMenu() {
|
||||||
@ -325,3 +324,7 @@ func shortcutKeyColor(key string) string {
|
|||||||
white := "255;255;255"
|
white := "255;255;255"
|
||||||
return ansiColor(foreground+";"+black+";"+background+";"+white, key, BOLD)
|
return ansiColor(foreground+";"+black+";"+background+";"+white, key, BOLD)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func navColor(key string) string {
|
||||||
|
return ansiColor(FAINT, key)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user