Commit 3f71405e authored by mathieui's avatar mathieui

Add a CHAR_NEW_TEXT_SEPARATOR theming option

parent e67c1643
......@@ -194,6 +194,7 @@ class Theme(object):
CHAR_JOIN = '--->'
CHAR_QUIT = '<---'
CHAR_KICK = '-!-'
CHAR_NEW_TEXT_SEPARATOR = '- '
CHAR_COLUMN_ASC = ' ▲'
CHAR_COLUMN_DESC =' ▼'
CHAR_ROSTER_ERROR = '✖'
......
......@@ -945,7 +945,11 @@ class TextWin(Win):
self._refresh()
def write_line_separator(self, y):
self.addnstr(y, 0, '- '*(self.width//2-1)+'-', self.width, to_curses_attr(get_theme().COLOR_NEW_TEXT_SEPARATOR))
char = get_theme().CHAR_NEW_TEXT_SEPARATOR
self.addnstr(y, 0,
char*(self.width//len(char)),
self.width,
to_curses_attr(get_theme().COLOR_NEW_TEXT_SEPARATOR))
def write_text(self, y, x, txt):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment