Use a different theme variable for the /me message
This commit is contained in:
parent
3411d8ca83
commit
fb450a7138
2 changed files with 4 additions and 1 deletions
|
@ -45,7 +45,7 @@ class TextBuffer(object):
|
|||
else:
|
||||
color = None
|
||||
# TODO: display the bg color too.
|
||||
txt = ("\x19%(info_col)s}* \x19%(col)s}" % {'col':color or 5, 'info_col':get_theme().COLOR_INFORMATION_TEXT[0]})+ nickname + ' \x19%(info_col)s}' % {'info_col':get_theme().COLOR_INFORMATION_TEXT[0]} + txt[4:]
|
||||
txt = '\x19%(info_col)s}* \x19%(col)s}%(nick)s \x19%(info_col)s}%(msg)s' % {'info_col':get_theme().COLOR_ME_MESSAGE[0], 'col': color or 5, 'nick': nickname, 'msg': txt[4:]}
|
||||
nickname = None
|
||||
msg = Message(txt='%s\x19o'%(txt.replace('\t', ' '),), nick_color=nick_color,
|
||||
time=time, str_time=time.strftime("%Y-%m-%d %H:%M:%S")\
|
||||
|
|
|
@ -108,6 +108,9 @@ class Theme(object):
|
|||
CHAR_AFFILIATION_MEMBER = '+'
|
||||
CHAR_AFFILIATION_NONE = '-'
|
||||
|
||||
# Color for the /me message
|
||||
COLOR_ME_MESSAGE = (6, -1)
|
||||
|
||||
# Separators
|
||||
COLOR_VERTICAL_SEPARATOR = (4, -1)
|
||||
COLOR_NEW_TEXT_SEPARATOR = (2, -1)
|
||||
|
|
Loading…
Reference in a new issue