From cf01cb9014289d8d665ec7c57c8b1c8672333dfe Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 31 Aug 2019 15:06:17 +0200 Subject: [PATCH] Cleanup palette slightly --- toot/tui/constants.py | 5 +++-- toot/tui/timeline.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/toot/tui/constants.py b/toot/tui/constants.py index 10e08cd..edf88fe 100644 --- a/toot/tui/constants.py +++ b/toot/tui/constants.py @@ -3,6 +3,8 @@ PALETTE = [ # Components ('button', 'white', 'black'), ('button_focused', 'light gray', 'dark magenta'), + ('columns_divider', 'white', 'dark blue'), + ('content_warning', 'white', 'dark magenta'), ('editbox', 'white', 'black'), ('editbox_focused', 'white', 'dark magenta'), ('footer_message', 'dark green', ''), @@ -13,7 +15,7 @@ PALETTE = [ ('header_bold', 'white,bold', 'dark blue'), ('intro_bigtext', 'yellow', ''), ('intro_smalltext', 'light blue', ''), - ('content_warning', 'white', 'dark magenta'), + ('poll_bar', 'white', 'dark blue'), # Functional ('hashtag', 'light cyan,bold', ''), @@ -22,7 +24,6 @@ PALETTE = [ # Colors ('bold', ',bold', ''), - ('italics', ',italics', ''), ('blue', 'light blue', ''), ('blue_bold', 'light blue, bold', ''), ('blue_selected', 'white', 'dark blue'), diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index a06a6f4..e6181ec 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -271,7 +271,7 @@ class StatusDetails(urwid.Pile): perc = (round(100 * option["votes_count"] / poll["votes_count"]) if poll["votes_count"] else 0) yield urwid.Text(option["title"]) - yield urwid.ProgressBar("", "blue_selected", perc) + yield urwid.ProgressBar("", "poll_bar", perc) if poll["expired"]: status = "Closed"