1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-12-04 14:46:33 -05:00

Cleanup palette slightly

This commit is contained in:
Ivan Habunek 2019-08-31 15:06:17 +02:00
parent 05972fc6fa
commit cf01cb9014
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 4 additions and 3 deletions

View File

@ -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'),

View File

@ -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"