2023-07-08 12:30:49 +02:00
|
|
|
# Color definitions are tuples of:
|
|
|
|
# - name
|
|
|
|
# - foreground (normal mode)
|
|
|
|
# - background (normal mode)
|
|
|
|
# - foreground (monochrome mode)
|
|
|
|
# - foreground (high color mode)
|
|
|
|
# - background (high color mode)
|
|
|
|
#
|
|
|
|
# See:
|
|
|
|
# http://urwid.org/tutorial/index.html#display-attributes
|
|
|
|
# http://urwid.org/manual/displayattributes.html#using-display-attributes
|
|
|
|
|
2019-08-24 11:20:31 +02:00
|
|
|
PALETTE = [
|
2019-08-24 14:14:46 +02:00
|
|
|
# Components
|
2019-08-27 10:02:13 +02:00
|
|
|
('button', 'white', 'black'),
|
2023-07-08 12:30:49 +02:00
|
|
|
('button_focused', 'light gray', 'dark magenta', 'bold,underline'),
|
2023-07-07 13:57:19 +02:00
|
|
|
('card_author', 'yellow', ''),
|
|
|
|
('card_title', 'dark green', ''),
|
2019-08-31 15:06:17 +02:00
|
|
|
('columns_divider', 'white', 'dark blue'),
|
|
|
|
('content_warning', 'white', 'dark magenta'),
|
2019-08-27 10:02:13 +02:00
|
|
|
('editbox', 'white', 'black'),
|
2019-08-29 14:01:26 +02:00
|
|
|
('editbox_focused', 'white', 'dark magenta'),
|
2019-08-24 14:14:46 +02:00
|
|
|
('footer_message', 'dark green', ''),
|
2019-08-27 10:02:13 +02:00
|
|
|
('footer_message_error', 'light red', ''),
|
2019-08-24 11:20:31 +02:00
|
|
|
('footer_status', 'white', 'dark blue'),
|
2019-08-24 12:53:55 +02:00
|
|
|
('footer_status_bold', 'white, bold', 'dark blue'),
|
2019-08-24 14:14:46 +02:00
|
|
|
('header', 'white', 'dark blue'),
|
2023-07-08 12:30:49 +02:00
|
|
|
('header_bold', 'white,bold', 'dark blue', 'bold'),
|
2019-08-26 15:06:40 +02:00
|
|
|
('intro_bigtext', 'yellow', ''),
|
|
|
|
('intro_smalltext', 'light blue', ''),
|
2019-08-31 15:06:17 +02:00
|
|
|
('poll_bar', 'white', 'dark blue'),
|
2023-07-07 13:57:19 +02:00
|
|
|
('status_detail_account', 'dark green', ''),
|
|
|
|
('status_detail_bookmarked', 'light red', ''),
|
|
|
|
('status_detail_timestamp', 'light blue', ''),
|
|
|
|
('status_list_account', 'dark green', ''),
|
2023-07-08 12:30:49 +02:00
|
|
|
('status_list_selected', 'white,bold', 'dark green', 'bold,underline'),
|
2023-07-07 13:57:19 +02:00
|
|
|
('status_list_timestamp', 'light blue', ''),
|
2019-08-24 11:20:31 +02:00
|
|
|
|
2019-08-24 12:53:55 +02:00
|
|
|
# Functional
|
2023-07-08 08:49:50 +02:00
|
|
|
('account', 'dark green', ''),
|
2023-07-08 12:30:49 +02:00
|
|
|
('hashtag', 'light cyan,bold', '', 'bold'),
|
|
|
|
('hashtag_followed', 'yellow,bold', '', 'bold'),
|
|
|
|
('link', ',italics', '', ',italics'),
|
|
|
|
('link_focused', ',italics', 'dark magenta', "underline,italics"),
|
2023-07-07 13:02:18 +02:00
|
|
|
('shortcut', 'light blue', ''),
|
2023-07-08 12:30:49 +02:00
|
|
|
('shortcut_highlight', 'white,bold', '', 'bold'),
|
2023-07-07 13:02:18 +02:00
|
|
|
('warning', 'light red', ''),
|
2019-08-24 12:53:55 +02:00
|
|
|
|
2023-07-07 13:57:19 +02:00
|
|
|
# Visiblity
|
|
|
|
('visibility_public', 'dark gray', ''),
|
|
|
|
('visibility_unlisted', 'white', ''),
|
|
|
|
('visibility_private', 'dark cyan', ''),
|
|
|
|
('visibility_direct', 'yellow', ''),
|
|
|
|
|
|
|
|
# Styles
|
2019-08-28 17:29:33 +02:00
|
|
|
('bold', ',bold', ''),
|
2023-07-07 13:57:19 +02:00
|
|
|
('dim', 'dark gray', ''),
|
|
|
|
('highlight', 'yellow', ''),
|
|
|
|
('success', 'dark green', ''),
|
2023-09-23 03:32:19 +02:00
|
|
|
|
|
|
|
# HTML tag styling
|
|
|
|
('a', ',italics', '', 'italics'),
|
|
|
|
# em tag is mapped to i
|
|
|
|
('i', ',italics', '', 'italics'),
|
|
|
|
# strong tag is mapped to b
|
|
|
|
('b', ',bold', '', 'bold'),
|
|
|
|
# special case for bold + italic nested tags
|
|
|
|
('bi', ',bold,italics', '', ',bold,italics'),
|
|
|
|
('u', ',underline', '', ',underline'),
|
|
|
|
('del', ',strikethrough', '', ',strikethrough'),
|
|
|
|
('code', 'light gray, standout', '', ',standout'),
|
|
|
|
('pre', 'light gray, standout', '', ',standout'),
|
|
|
|
('blockquote', 'light gray', '', ''),
|
|
|
|
('h1', ',bold', '', ',bold'),
|
|
|
|
('h2', ',bold', '', ',bold'),
|
|
|
|
('h3', ',bold', '', ',bold'),
|
|
|
|
('h4', ',bold', '', ',bold'),
|
|
|
|
('h5', ',bold', '', ',bold'),
|
|
|
|
('h6', ',bold', '', ',bold'),
|
|
|
|
('class_mention_hashtag', 'light cyan', '', ''),
|
|
|
|
('class_hashtag', 'light cyan', '', ''),
|
|
|
|
|
2019-08-24 11:20:31 +02:00
|
|
|
]
|
2019-08-27 14:16:14 +02:00
|
|
|
|
|
|
|
VISIBILITY_OPTIONS = [
|
|
|
|
("public", "Public", "Post to public timelines"),
|
2020-01-26 02:01:48 +01:00
|
|
|
("unlisted", "Unlisted", "Do not post to public timelines"),
|
|
|
|
("private", "Private", "Post to followers only"),
|
2019-08-27 14:16:14 +02:00
|
|
|
("direct", "Direct", "Post to mentioned users only"),
|
|
|
|
]
|