summaryrefslogtreecommitdiff
path: root/src/theming.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-12-15 02:35:52 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-12-15 02:42:30 +0100
commit786f0e7222af6a6377e1b2ea1acc8026ce3c0d4a (patch)
treee3374c15f93c8e71b11f7bf486e8687898532883 /src/theming.py
parentfb8295c05f5ff154a1826a7056f65a526d7d4dd2 (diff)
downloadpoezio-786f0e7222af6a6377e1b2ea1acc8026ce3c0d4a.tar.gz
poezio-786f0e7222af6a6377e1b2ea1acc8026ce3c0d4a.tar.bz2
poezio-786f0e7222af6a6377e1b2ea1acc8026ce3c0d4a.tar.xz
poezio-786f0e7222af6a6377e1b2ea1acc8026ce3c0d4a.zip
Introduce a special "reverse" value for the COLOR_HIGHLIGHT_NICK theme option.
If COLOR_HIGHLIGHT_NICK = "reverse", the highlight nick will be in reverse mode. fix #2165
Diffstat (limited to 'src/theming.py')
-rw-r--r--src/theming.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theming.py b/src/theming.py
index 2068c83a..910e62d9 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -80,7 +80,10 @@ class Theme(object):
# Message text color
COLOR_NORMAL_TEXT = (-1, -1)
COLOR_INFORMATION_TEXT = (5, -1) # TODO
- COLOR_HIGHLIGHT_NICK = (3, 5, 'b')
+ # "reverse" is a special value, available only for this option. It just
+ # takes the nick colors and reverses it. A theme can still specify a
+ # fixed color if need be.
+ COLOR_HIGHLIGHT_NICK = "reverse"
# User list color
COLOR_USER_VISITOR = (239, -1)