summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-05 21:45:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-05 21:47:10 +0300
commit2d452dd8faf2529fda01913b0ab26f4a1f22ef3d (patch)
tree818e1d9aa3088deca6cdcd5df72858b3dec56a0c /src/gui/theme.cpp
parent940161d95ee7c9e9ef4c6941d3d464d4264a94ad (diff)
downloadManaVerse-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.tar.gz
ManaVerse-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.tar.bz2
ManaVerse-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.tar.xz
ManaVerse-2d452dd8faf2529fda01913b0ab26f4a1f22ef3d.zip
A bit improve speed in getting color from theme.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp12
1 files changed, 12 insertions, 0 deletions
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()