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:
parent
05972fc6fa
commit
cf01cb9014
@ -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'),
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user