Add CHAR_CHATSTATE_* to the available theme options
This commit is contained in:
parent
75f7d71080
commit
24ba3b6ed9
2 changed files with 9 additions and 3 deletions
|
@ -94,6 +94,12 @@ class Theme(object):
|
||||||
# in the user list
|
# in the user list
|
||||||
CHAR_STATUS = '|'
|
CHAR_STATUS = '|'
|
||||||
|
|
||||||
|
# The characters used for the chatstates in the user list
|
||||||
|
# in a MUC
|
||||||
|
CHAR_CHATSTATE_ACTIVE = 'A'
|
||||||
|
CHAR_CHATSTATE_COMPOSING = 'X'
|
||||||
|
CHAR_CHATSTATE_PAUSED = 'p'
|
||||||
|
|
||||||
# Separators
|
# Separators
|
||||||
COLOR_VERTICAL_SEPARATOR = (4, -1)
|
COLOR_VERTICAL_SEPARATOR = (4, -1)
|
||||||
COLOR_NEW_TEXT_SEPARATOR = (2, -1)
|
COLOR_NEW_TEXT_SEPARATOR = (2, -1)
|
||||||
|
|
|
@ -233,11 +233,11 @@ class UserList(Win):
|
||||||
else:
|
else:
|
||||||
show_col = self.color_show[user.show]()
|
show_col = self.color_show[user.show]()
|
||||||
if user.chatstate == 'composing':
|
if user.chatstate == 'composing':
|
||||||
char = 'X'
|
char = get_theme().CHAR_CHATSTATE_COMPOSING
|
||||||
elif user.chatstate == 'active':
|
elif user.chatstate == 'active':
|
||||||
char = 'A'
|
char = get_theme().CHAR_CHATSTATE_ACTIVE
|
||||||
elif user.chatstate == 'paused':
|
elif user.chatstate == 'paused':
|
||||||
char = 'p'
|
char = get_theme().CHAR_CHATSTATE_PAUSED
|
||||||
else:
|
else:
|
||||||
char = get_theme().CHAR_STATUS
|
char = get_theme().CHAR_STATUS
|
||||||
self.addstr(y, 0, char, to_curses_attr(show_col))
|
self.addstr(y, 0, char, to_curses_attr(show_col))
|
||||||
|
|
Loading…
Reference in a new issue