summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-09 21:18:35 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-09 21:18:35 +0300
commitb24d92e3052e0b4a43b0bfe209ef910ddc41878e (patch)
tree479d0865a2323e2532e7cbbce24b80ad408e2ea5 /src/gui/theme.cpp
parent2856985d7441cbd8edd0b83b308f65ad9c72ad02 (diff)
downloadplus-b24d92e3052e0b4a43b0bfe209ef910ddc41878e.tar.gz
plus-b24d92e3052e0b4a43b0bfe209ef910ddc41878e.tar.bz2
plus-b24d92e3052e0b4a43b0bfe209ef910ddc41878e.tar.xz
plus-b24d92e3052e0b4a43b0bfe209ef910ddc41878e.zip
add color for away chat messages.
New theme color: AWAYCHAT, AWAYCHAT_OUTLINE.
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index fbde968f4..fb69dce3b 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -199,6 +199,7 @@ Theme::Theme() :
mColors[HYPERLINK].ch = '<';
mColors[SELFNICK].ch = 's';
mColors[OLDCHAT].ch = 'o';
+ mColors[AWAYCHAT].ch = 'a';
mCharColors['H'] = HIGHLIGHT;
mCharColors['C'] = CHAT;
mCharColors['G'] = GM;
@@ -214,6 +215,7 @@ Theme::Theme() :
mCharColors['<'] = HYPERLINK;
mCharColors['s'] = SELFNICK;
mCharColors['o'] = OLDCHAT;
+ mCharColors['a'] = AWAYCHAT;
// here need use outlined colors
mCharColors['H' | 0x80] = HIGHLIGHT_OUTLINE;
@@ -231,6 +233,7 @@ Theme::Theme() :
mCharColors['<' | 0x80] = HYPERLINK_OUTLINE;
mCharColors['s' | 0x80] = SELFNICK_OUTLINE;
mCharColors['o' | 0x80] = OLDCHAT_OUTLINE;
+ mCharColors['a' | 0x80] = AWAYCHAT_OUTLINE;
}
Theme::~Theme()
@@ -975,7 +978,9 @@ static int readColorType(const std::string &type)
"JOB_BAR",
"JOB_BAR_OUTLINE",
"OLDCHAT",
- "OLDCHAT_OUTLINE"
+ "OLDCHAT_OUTLINE",
+ "AWAYCHAT",
+ "AWAYCHAT_OUTLINE"
};
if (type.empty())