From 3f71405efd5910a1e150afa2c46f1f001b39dc18 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 6 Mar 2013 22:34:41 +0100 Subject: Add a CHAR_NEW_TEXT_SEPARATOR theming option --- src/windows.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/windows.py') 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): """ -- cgit v1.2.3