From 2d452dd8faf2529fda01913b0ab26f4a1f22ef3d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Dec 2011 21:45:05 +0300 Subject: A bit improve speed in getting color from theme. --- src/gui/theme.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gui/theme.cpp') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 9aa6bb956..b3b28bffa 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -162,6 +162,18 @@ Theme::Theme(): mColors[SERVER].ch = 'S'; mColors[LOGGER].ch = 'L'; mColors[HYPERLINK].ch = '<'; + mCharColors['H'] = HIGHLIGHT; + mCharColors['C'] = CHAT; + mCharColors['G'] = GM; + mCharColors['Y'] = PLAYER; + mCharColors['W'] = WHISPER; + mCharColors['w'] = WHISPER_OFFLINE; + mCharColors['I'] = IS; + mCharColors['P'] = PARTY_CHAT_TAB; + mCharColors['U'] = GUILD_CHAT_TAB; + mCharColors['S'] = SERVER; + mCharColors['L'] = LOGGER; + mCharColors['<'] = HYPERLINK; } Theme::~Theme() -- cgit v1.2.3-60-g2f50