From d4dcc3849f19f4b0e8752bf1a1db8564fab264f0 Mon Sep 17 00:00:00 2001 From: Rick Gibbed Date: Mon, 8 Oct 2012 22:26:43 -0400 Subject: [PATCH] Make the mIRC color highlighting bearable on ChatZila. Signed-off-by: Eric S. Raymond --- irkerhook.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/irkerhook.py b/irkerhook.py index b7bc1de..33167ea 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -109,12 +109,16 @@ class GenericExtractor: def activate_color(self, style): "IRC color codes." if style == 'mIRC': - # mIRC colors are mapped as closely to the ANSI colors as possible. + # mIRC colors are mapped as closely to the ANSI colors as + # possible. However, bright colors (green, blue, red, + # yellow) have been made their dark counterparts since + # ChatZilla does not properly darken mIRC colors in the + # Light Motif color scheme. self.bold = '\x02' - self.green = '\x0309' - self.blue = '\x0312' - self.red = '\x0304' - self.yellow = '\x0308' + self.green = '\x0303' + self.blue = '\x0302' + self.red = '\x0305' + self.yellow = '\x0307' self.brown = '\x0305' self.magenta = '\x0306' self.cyan = '\x0310' -- 2.26.2