Skip to content

Commit

Permalink
fix: Fix FG color for terminals with white BG
Browse files Browse the repository at this point in the history
- Fix: Use default foreground color instead of WHITE.
  - White FG isn't visible on terminal emulators with white BG.
- Change: Update TUI pallete entries.
  • Loading branch information
AnonymouX47 committed Apr 13, 2023
1 parent 5d828d1 commit c1249ce
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/termvisage/tui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def init(

if args.debug:
main_widget.contents.insert(
-1, (urwid.AttrMap(urwid.Filler(info_bar), "input"), ("given", 1))
-1, (urwid.AttrMap(urwid.Filler(info_bar), "reverse"), ("given", 1))
)

main.DEBUG = args.debug
Expand Down Expand Up @@ -162,21 +162,20 @@ def process_input(self, keys):
is_launched = False

palette = [
("default", "", "", "", "#ffffff", ""),
("default bold", "", "", "", "#ffffff, bold", ""),
("default", "", "", "", "", ""),
("default bold", "", "", "", "bold", ""),
("reverse", "", "", "", "standout", ""),
("reverse bold", "", "", "", "standout,bold", ""),
("inactive", "", "", "", "#7f7f7f", ""),
("white on black", "", "", "", "#ffffff", "#000000"),
("black on white", "", "", "", "#000000", "#ffffff"),
("mine", "", "", "", "#ff00ff", "#ffff00"),
("focused entry", "", "", "", "standout", ""),
("unfocused box", "", "", "", "#7f7f7f", ""),
("focused box", "", "", "", "#ffffff", ""),
("focused box", "default"),
("green fg", "", "", "", "#00ff00", ""),
("red on green", "", "", "", "#ff0000,bold", "#00ff00"),
("key", "", "", "", "#ffffff", "#5588ff"),
("key", "", "", "", "", "#5588ff"),
("disabled key", "", "", "", "#7f7f7f", "#5588ff"),
("error", "", "", "", "bold", "#ff0000"),
("warning", "", "", "", "#ff0000,bold", ""),
("input", "", "", "", "standout", ""),
("notif context", "", "", "", "#0000ff,bold", ""),
]

0 comments on commit c1249ce

Please sign in to comment.