summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-01-25 17:51:11 +0100
committermathieui <mathieui@mathieui.net>2012-01-25 17:51:11 +0100
commit7ba606136293aa9b08cb1185e046cfdff7bf1589 (patch)
treebd36711670f691cf00e2de0f4fa8d896906a9d78 /src/windows.py
parent561af013b1432fbb9b52d7f246be487347991687 (diff)
downloadpoezio-7ba606136293aa9b08cb1185e046cfdff7bf1589.tar.gz
poezio-7ba606136293aa9b08cb1185e046cfdff7bf1589.tar.bz2
poezio-7ba606136293aa9b08cb1185e046cfdff7bf1589.tar.xz
poezio-7ba606136293aa9b08cb1185e046cfdff7bf1589.zip
Add affiliation chars in the theme
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/windows.py b/src/windows.py
index 7d9194b2..89630a12 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -196,10 +196,10 @@ class UserList(Win):
'none': lambda: get_theme().COLOR_USER_NONE,
'': lambda: get_theme().COLOR_USER_NONE
}
- self.symbol_affiliation = {'owner': '~',
- 'admin': '&',
- 'member': '+',
- 'none': '-'}
+ self.symbol_affiliation = {'owner': lambda: get_theme().CHAR_AFFILIATION_OWNER,
+ 'admin': lambda: get_theme().CHAR_AFFILIATION_ADMIN,
+ 'member': lambda: get_theme().CHAR_AFFILIATION_MEMBER,
+ 'none': lambda: get_theme().CHAR_AFFILIATION_NONE, }
self.color_show = {'xa': lambda: get_theme().COLOR_STATUS_XA,
'none': lambda: get_theme().COLOR_STATUS_NONE,
'': lambda: get_theme().COLOR_STATUS_NONE,
@@ -245,7 +245,7 @@ class UserList(Win):
color = get_theme().COLOR_USER_NONE
else:
color = self.color_role[user.role]()
- symbol = self.symbol_affiliation.get(user.affiliation) or '-'
+ symbol = self.symbol_affiliation.get(user.affiliation, lambda: '-')()
self.addstr(y, 1, symbol, to_curses_attr(color))
def draw_status_chatstate(self, y, user):