From 7b99fcfb2f367c51faf3f2fd2b6a583be87a9e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sun, 10 May 2020 12:07:37 +0200 Subject: Add option to use XEP-0392 for tab names/numbers in the infobar This will autocolour the tabs based on their name (typically the JID) if a new message or highlight occured. If it was a normal new message, the colouring will be subtle (foreground instead of background), otherwise (on a highlight or 1:1 message), the colouring will affect the background and thus stand out much more. --- poezio/theming.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'poezio/theming.py') diff --git a/poezio/theming.py b/poezio/theming.py index f0309f65..cc4ea34a 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -233,6 +233,11 @@ class Theme: COLOR_TAB_ATTENTION = (7, 1) COLOR_TAB_DISCONNECTED = (7, 8) + # If autocolor_tab_names is set to true, the following modes are used to + # distinguish tabs with normal and important messages. + MODE_TAB_NORMAL = '' + MODE_TAB_IMPORTANT = 'r' # reverse video mode + COLOR_VERTICAL_TAB_NORMAL = (4, -1) COLOR_VERTICAL_TAB_NONEMPTY = (4, -1) COLOR_VERTICAL_TAB_JOINED = (82, -1) -- cgit v1.2.3