summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-06 22:34:41 +0100
committermathieui <mathieui@mathieui.net>2013-03-06 22:34:41 +0100
commit3f71405efd5910a1e150afa2c46f1f001b39dc18 (patch)
treed1b3a31fed87f42b09b86cc2860e197241b83873 /src
parente67c1643b91f0f1f00bce516b332385cc1952d35 (diff)
downloadpoezio-3f71405efd5910a1e150afa2c46f1f001b39dc18.tar.gz
poezio-3f71405efd5910a1e150afa2c46f1f001b39dc18.tar.bz2
poezio-3f71405efd5910a1e150afa2c46f1f001b39dc18.tar.xz
poezio-3f71405efd5910a1e150afa2c46f1f001b39dc18.zip
Add a CHAR_NEW_TEXT_SEPARATOR theming option
Diffstat (limited to 'src')
-rw-r--r--src/theming.py1
-rw-r--r--src/windows.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/theming.py b/src/theming.py
index 27397fe2..210a5889 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -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 = '✖'
diff --git a/src/windows.py b/src/windows.py
index f759fa1b..cb96fa19 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -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):
"""