Skip to content

Commit

Permalink
Make the status detail key commands more visible
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danschwarz authored and ihabunek committed Jan 1, 2023
1 parent 4ef866d commit 6633b75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions toot/tui/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
('yellow_bold', 'yellow,bold', ''),
('red', 'dark red', ''),
('warning', 'light red', ''),
('white_bold', 'white,bold', '')
]

VISIBILITY_OPTIONS = [
Expand Down
2 changes: 1 addition & 1 deletion toot/tui/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def content_generator(self, status, reblogged_by):
]
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):
Expand Down

0 comments on commit 6633b75

Please sign in to comment.