Make the status detail key commands more visible

Some terminal color schemes completely eliminate the difference
between cyan and cyan-bold colors (all the base16 themes, for instance).
This change makes the key letters stand out clearly in bold white.
pull/282/head
Dan Schwarz 2022-12-31 19:59:18 -05:00 zatwierdzone przez Ivan Habunek
rodzic 4ef866dcbe
commit 6633b758bc
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -36,6 +36,7 @@ PALETTE = [
('yellow_bold', 'yellow,bold', ''),
('red', 'dark red', ''),
('warning', 'light red', ''),
('white_bold', 'white,bold', '')
]
VISIBILITY_OPTIONS = [

Wyświetl plik

@ -352,7 +352,7 @@ class StatusDetails(urwid.Pile):
]
options = " ".join(o for o in options if o)
options = highlight_keys(options, "cyan_bold", "cyan")
options = highlight_keys(options, "white_bold", "cyan")
yield ("pack", urwid.Text(options))
def build_linebox(self, contents):