summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-09 20:56:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-09 20:56:51 +0300
commit2856985d7441cbd8edd0b83b308f65ad9c72ad02 (patch)
tree3f48ca4c78cf0c2bdd9fb7997b6d60815219ac23 /src/gui/theme.cpp
parentb5c294696cb58d00e8c4c9a005f9bf580a43dc6a (diff)
downloadmv-2856985d7441cbd8edd0b83b308f65ad9c72ad02.tar.gz
mv-2856985d7441cbd8edd0b83b308f65ad9c72ad02.tar.bz2
mv-2856985d7441cbd8edd0b83b308f65ad9c72ad02.tar.xz
mv-2856985d7441cbd8edd0b83b308f65ad9c72ad02.zip
Add new theme color for old chat messages.
New chat colors: OLDCHAT, OLDCHAT_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 b7510dc9f..fbde968f4 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -198,6 +198,7 @@ Theme::Theme() :
mColors[LOGGER].ch = 'L';
mColors[HYPERLINK].ch = '<';
mColors[SELFNICK].ch = 's';
+ mColors[OLDCHAT].ch = 'o';
mCharColors['H'] = HIGHLIGHT;
mCharColors['C'] = CHAT;
mCharColors['G'] = GM;
@@ -212,6 +213,7 @@ Theme::Theme() :
mCharColors['L'] = LOGGER;
mCharColors['<'] = HYPERLINK;
mCharColors['s'] = SELFNICK;
+ mCharColors['o'] = OLDCHAT;
// here need use outlined colors
mCharColors['H' | 0x80] = HIGHLIGHT_OUTLINE;
@@ -228,6 +230,7 @@ Theme::Theme() :
mCharColors['L' | 0x80] = LOGGER_OUTLINE;
mCharColors['<' | 0x80] = HYPERLINK_OUTLINE;
mCharColors['s' | 0x80] = SELFNICK_OUTLINE;
+ mCharColors['o' | 0x80] = OLDCHAT_OUTLINE;
}
Theme::~Theme()
@@ -970,7 +973,9 @@ static int readColorType(const std::string &type)
"STATUS_BAR",
"STATUS_BAR_OUTLINE",
"JOB_BAR",
- "JOB_BAR_OUTLINE"
+ "JOB_BAR_OUTLINE",
+ "OLDCHAT",
+ "OLDCHAT_OUTLINE"
};
if (type.empty())