Cleanup palette slightly

pull/112/head
Ivan Habunek 2019-08-31 15:06:17 +02:00
rodzic 05972fc6fa
commit cf01cb9014
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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