diff options
author | mathieui <mathieui@mathieui.net> | 2013-03-11 02:04:20 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-03-11 02:04:20 +0100 |
commit | 71c35eb279b2271b89896dcff551ba762f66b3a5 (patch) | |
tree | 280bc7e66b453310851dcb4e9793e9f4083561eb /src/theming.py | |
parent | eb2e5825bceec1171f0e154cb72f5870576a94f2 (diff) | |
download | poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.tar.gz poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.tar.bz2 poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.tar.xz poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.zip |
Implement XEP-0118 (Fix #1840)
- Add new theming options
- Show the tune in the roster (both in contact line and infowin)
- add an option to show tunes as info messages
Diffstat (limited to 'src/theming.py')
-rw-r--r-- | src/theming.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/theming.py b/src/theming.py index 3f9df2e2..b95596c2 100644 --- a/src/theming.py +++ b/src/theming.py @@ -200,8 +200,10 @@ class Theme(object): CHAR_COLUMN_ASC = ' ▲' CHAR_COLUMN_DESC =' ▼' CHAR_ROSTER_ERROR = '✖' + CHAR_ROSTER_TUNE = '♪' CHAR_ROSTER_ASKED = '?' + COLOR_ROSTER_TUNE = (6, -1) COLOR_ROSTER_ERROR = (1, -1) COLOR_JOIN_CHAR = (4, -1) COLOR_QUIT_CHAR = (1, -1) @@ -218,6 +220,7 @@ class Theme(object): 'roster': (2, -1), 'help': (10, -1), 'headline': (11, -1, 'b'), + 'tune': (6, -1), 'default': (7, -1), } |