From 94b4b3519706a490741ee255f5539f364c7fd3d4 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 8 Jul 2023 08:49:50 +0200 Subject: [PATCH] Tweak colors --- toot/tui/constants.py | 2 ++ toot/tui/timeline.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/toot/tui/constants.py b/toot/tui/constants.py index e672947..8e2bddf 100644 --- a/toot/tui/constants.py +++ b/toot/tui/constants.py @@ -26,6 +26,7 @@ PALETTE = [ ('status_list_timestamp', 'light blue', ''), # Functional + ('account', 'dark green', ''), ('hashtag', 'light cyan,bold', ''), ('hashtag_followed', 'yellow,bold', ''), ('link', ',italics', ''), @@ -75,6 +76,7 @@ MONO_PALETTE = [ ('warning', 'white,bold', 'black'), # Functional + ('account', 'white', ''), ('hashtag_followed', 'white,bold', ''), ('hashtag', 'white,bold', ''), ('link', ',italics', ''), diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 8c46a00..13b867f 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -326,9 +326,9 @@ class StatusDetails(urwid.Pile): yield ("pack", urwid.AttrMap(urwid.Divider("-"), "dim")) if status.author.display_name: - yield ("pack", urwid.Text(("status_detail_author", status.author.display_name))) + yield ("pack", urwid.Text(("bold", status.author.display_name))) - account_color = "highlight" if status.author.account in self.followed_accounts else "dim" + account_color = "highlight" if status.author.account in self.followed_accounts else "account" yield ("pack", urwid.Text((account_color, status.author.account))) yield ("pack", urwid.Divider())