summaryrefslogtreecommitdiff
path: root/src/theming.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-11 23:06:52 +0100
committermathieui <mathieui@mathieui.net>2013-03-11 23:06:52 +0100
commitcec1151ecb577a270b9e1f0ae5eaa238d3269ae8 (patch)
treedad224100ca67d09301d6d2fc3d64b958b7acc54 /src/theming.py
parentd2d04162146e6df454d67a4e48ee6655af1d6c0a (diff)
downloadpoezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.tar.gz
poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.tar.bz2
poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.tar.xz
poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.zip
Fix #1839 (User mood/activity)
- Added as always new theming variables: CHAR_ROSTER_MOOD, CHAR_ROSTER_ACTIVITY (a SNOWMAN!) COLOR_ROSTER_MOOD, COLOR_ROSTER_ACTIVITY - Added two new notification types in Theme.INFO_COLORS (mood/activity) - Added new configuration options: display_mood/activity/tune_notifications (those can be set for a specific JID) enable_user_tune/nick/activity/mood - Added /activity and /mood commands, with completions - Moved the old /activity to /last_activity - Details are show in the ContactInfoWin if there is room, or with "i" on a contact in the roster.
Diffstat (limited to 'src/theming.py')
-rw-r--r--src/theming.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theming.py b/src/theming.py
index b95596c2..26b66377 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -202,7 +202,11 @@ class Theme(object):
CHAR_ROSTER_ERROR = '✖'
CHAR_ROSTER_TUNE = '♪'
CHAR_ROSTER_ASKED = '?'
+ CHAR_ROSTER_ACTIVITY = '☃'
+ CHAR_ROSTER_MOOD = '☺'
+ COLOR_ROSTER_MOOD = (2, -1)
+ COLOR_ROSTER_ACTIVITY = (3, -1)
COLOR_ROSTER_TUNE = (6, -1)
COLOR_ROSTER_ERROR = (1, -1)
COLOR_JOIN_CHAR = (4, -1)
@@ -221,6 +225,8 @@ class Theme(object):
'help': (10, -1),
'headline': (11, -1, 'b'),
'tune': (6, -1),
+ 'mood': (2, -1),
+ 'activity': (3, -1),
'default': (7, -1),
}