diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-22 16:33:57 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-22 16:33:57 +0000 |
commit | 893cd3808b3f3d54786c91ada73c566d152f5aa8 (patch) | |
tree | c77dda63e57cb46533793a4254dc61cdecf8d9cf /src/theme.py | |
parent | 3d278f781650aacd644a0b7ea8961dc43b223f3a (diff) | |
download | poezio-893cd3808b3f3d54786c91ada73c566d152f5aa8.tar.gz poezio-893cd3808b3f3d54786c91ada73c566d152f5aa8.tar.bz2 poezio-893cd3808b3f3d54786c91ada73c566d152f5aa8.tar.xz poezio-893cd3808b3f3d54786c91ada73c566d152f5aa8.zip |
Mor colored information message, also finish the theme 'engine'. fixed #1537
Diffstat (limited to 'src/theme.py')
-rw-r--r-- | src/theme.py | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/theme.py b/src/theme.py index 58a51717..da485f16 100644 --- a/src/theme.py +++ b/src/theme.py @@ -42,6 +42,10 @@ COLOR_USER_PARTICIPANT = 73 COLOR_USER_NONE = 80 COLOR_USER_MODERATOR = 77 +# The character printed in color (COLOR_STATUS_*) before the nickname +# in the user list +CHAR_STATUS = ' ' + # Separators COLOR_VERTICAL_SEPARATOR = 73 COLOR_NEW_TEXT_SEPARATOR = 75 @@ -77,8 +81,24 @@ COLOR_TOPIC_BAR = 15 COLOR_PRIVATE_ROOM_BAR = 33 COLOR_SCROLLABLE_NUMBER = 16 -# Chars -STATUS_CHAR = ' ' +# Strings for special messages (like join, quit, nick change, etc) + +# Special messages +CHAR_JOIN = '---->' +CHAR_QUIT = '<----' +CHAR_KICK = '-!-' + +COLOR_JOIN_CHAR = 73 +COLOR_QUIT_CHAR = 77 +COLOR_KICK_CHAR = 77 + +# words between () +COLOR_CURLYBRACKETED_WORD = 72 +# words between {} +COLOR_ACCOLADE_WORD = 74 +# words between [] +COLOR_BRACKETED_WORD = 73 + def init_colors(): """ @@ -123,7 +143,7 @@ def reload_theme(): except: # TODO warning: theme not found return for var in dir(theme): - if var.startswith('COLOR_') or var.startswith('STATUS_'): + if var.startswith('COLOR_') or var.startswith('CHAR_'): globals()[var] = getattr(theme, var) if __name__ == '__main__': |