From 02099123b0f2272954e91b737f50a797e4df0420 Mon Sep 17 00:00:00 2001 From: manfraid Date: Thu, 8 Dec 2011 16:22:43 +0100 Subject: Fixe 2104 --- src/theming.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index e09d4530..7e90a5a7 100644 --- a/src/theming.py +++ b/src/theming.py @@ -154,12 +154,15 @@ class Theme(object): COLOR_CONVERSATION_NAME = (2, 4) COLOR_GROUPCHAT_NAME = (7, 4) COLOR_COLUMN_HEADER = (36, 4) + COLOR_COLUMN_HEADER_SEL = (4, 36) # Strings for special messages (like join, quit, nick change, etc) # Special messages CHAR_JOIN = '--->' CHAR_QUIT = '<---' CHAR_KICK = '-!-' + CHAR_COLUMN_ASC = ' ▲' + CHAR_COLUMN_DESC =' ▼' COLOR_JOIN_CHAR = (4, -1) COLOR_QUIT_CHAR = (1, -1) -- cgit v1.2.3 From 09f16804a3cec50316129a2a3cc0e64628b32fce Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 24 Jan 2012 15:17:54 +0100 Subject: Fix the comments in the theming.py file --- src/theming.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index 7e90a5a7..4e1f37ea 100644 --- a/src/theming.py +++ b/src/theming.py @@ -11,16 +11,17 @@ used when drawing the interface. Colors are numbers from -1 to 7 (if only 8 colors are supported) or -1 to 255 if 256 colors are available. -We check the number of available colors at startup, and we load a theme accordingly. -A 8 color theme should NEVER use colors not in the -1 -> 7 range. We won't check that -at run time. If the case occurs, the THEME should be fixed. +If only 8 colors are available, all colors > 8 are converted using the +table_256_to_16 dict. + XHTML-IM colors are converted to -1 -> 255 colors if available, or directly to -1 -> 8 if we are in 8-color-mode. A pair_color is a background-foreground pair. All possible pairs are not created at startup, because that would create 256*256 pairs, and almost all of them would never be used. -So, a theme should define color tuples, like (200, -1), and when they are to + +A theme should define color tuples, like (200, -1), and when they are to be used by poezio's interface, they will be created once, and kept in a list for later usage. A color tuple is of the form (foreground, background, optional) -- cgit v1.2.3 From 99a16f2b868a093e390d99154ad67251ab9f3511 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 24 Jan 2012 15:46:51 +0100 Subject: Make the color for information messages themable --- src/theming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index 4e1f37ea..ff2ff74e 100644 --- a/src/theming.py +++ b/src/theming.py @@ -79,7 +79,7 @@ class Theme(object): """ # Message text color COLOR_NORMAL_TEXT = (-1, -1) - COLOR_INFORMATION_TEXT = (137, -1) # TODO + COLOR_INFORMATION_TEXT = (5, -1) # TODO COLOR_HIGHLIGHT_NICK = (3, 5, 'b') # User list color -- cgit v1.2.3 From 7ba606136293aa9b08cb1185e046cfdff7bf1589 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 25 Jan 2012 17:51:11 +0100 Subject: Add affiliation chars in the theme --- src/theming.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/theming.py') diff --git a/src/theming.py b/src/theming.py index ff2ff74e..815b059f 100644 --- a/src/theming.py +++ b/src/theming.py @@ -101,6 +101,13 @@ class Theme(object): CHAR_CHATSTATE_COMPOSING = 'X' CHAR_CHATSTATE_PAUSED = 'p' + # These characters are used for the affiliation in the user list + # in a MUC + CHAR_AFFILIATION_OWNER = '~' + CHAR_AFFILIATION_ADMIN = '&' + CHAR_AFFILIATION_MEMBER = '+' + CHAR_AFFILIATION_NONE = '-' + # Separators COLOR_VERTICAL_SEPARATOR = (4, -1) COLOR_NEW_TEXT_SEPARATOR = (2, -1) @@ -162,8 +169,8 @@ class Theme(object): CHAR_JOIN = '--->' CHAR_QUIT = '<---' CHAR_KICK = '-!-' - CHAR_COLUMN_ASC = ' ▲' - CHAR_COLUMN_DESC =' ▼' + CHAR_COLUMN_ASC = ' ▲' + CHAR_COLUMN_DESC =' ▼' COLOR_JOIN_CHAR = (4, -1) COLOR_QUIT_CHAR = (1, -1) -- cgit v1.2.3