From 8b032a6ece601c74ea0d9cf4f0c7a3e1ae72bcb2 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 29 Mar 2011 14:27:30 +0200 Subject: Fix the highlight (now the nick is colored, not the message itself) --- data/themes/dark | 2 +- data/themes/poezio | 2 +- src/theme.py | 2 +- src/windows.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/themes/dark b/data/themes/dark index a7612c0b..db1b2021 100644 --- a/data/themes/dark +++ b/data/themes/dark @@ -4,7 +4,7 @@ # Message text color COLOR_NORMAL_TEXT = 0 COLOR_INFORMATION_TEXT = 5 -COLOR_HIGHLIGHT_NICK = 46 +COLOR_HIGHLIGHT_NICK = 10 # User list color COLOR_USER_VISITOR = 7 diff --git a/data/themes/poezio b/data/themes/poezio index facf68c8..ac949233 100644 --- a/data/themes/poezio +++ b/data/themes/poezio @@ -4,7 +4,7 @@ # Message text color COLOR_NORMAL_TEXT = 0 COLOR_INFORMATION_TEXT = 5 -COLOR_HIGHLIGHT_NICK = 45 +COLOR_HIGHLIGHT_NICK = 10 # User list color COLOR_USER_VISITOR = 7 diff --git a/src/theme.py b/src/theme.py index e5d10f84..10082676 100644 --- a/src/theme.py +++ b/src/theme.py @@ -34,7 +34,7 @@ log = logging.getLogger(__name__) # Message text color COLOR_NORMAL_TEXT = 0 COLOR_INFORMATION_TEXT = 5 -COLOR_HIGHLIGHT_NICK = 45 +COLOR_HIGHLIGHT_NICK = 10 # User list color COLOR_USER_VISITOR = 7 diff --git a/src/windows.py b/src/windows.py index 786eaf82..eaa8da68 100644 --- a/src/windows.py +++ b/src/windows.py @@ -569,7 +569,7 @@ class TextWin(Win): while txt != '': (txt, cutted_txt) = cut_text(txt, self.width-offset-1) if first: - color = message.user.color if message.user else message.nick_color + color = message.nick_color or message.user.color if message.user else None else: color = None if first: -- cgit v1.2.3