summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-08 01:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-08 01:11:07 +0300
commit577b75a14fa04b0d78281257ee7f5e3c42be3b7e (patch)
tree2028a97a20d11b6cef13cee0ab29d0b1f5f471dd /src/gui
parent4f3e6ddeae45b7b04b191533e8f6c456fbc207d8 (diff)
downloadplus-577b75a14fa04b0d78281257ee7f5e3c42be3b7e.tar.gz
plus-577b75a14fa04b0d78281257ee7f5e3c42be3b7e.tar.bz2
plus-577b75a14fa04b0d78281257ee7f5e3c42be3b7e.tar.xz
plus-577b75a14fa04b0d78281257ee7f5e3c42be3b7e.zip
Rename colors WHISPER and WHISPER_OFFLINE to WHISPER_TAB and WHISPER_TAB_OFFLINE.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chatwindow.cpp14
-rw-r--r--src/gui/theme.cpp12
-rw-r--r--src/gui/theme.h4
-rw-r--r--src/gui/widgets/whispertab.cpp2
4 files changed, 18 insertions, 14 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 9417f5214..2aaa0da2d 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -1479,7 +1479,7 @@ void ChatWindow::updateOnline(std::set<std::string> &onlinePlayers)
if (onlinePlayers.find(tab->getNick()) != onlinePlayers.end())
{
- tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER));
+ tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER_TAB));
}
else
{
@@ -1490,7 +1490,8 @@ void ChatWindow::updateOnline(std::set<std::string> &onlinePlayers)
nick, ActorSprite::PLAYER);
if (being)
{
- tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER));
+ tab->setTabColor(&Theme::getThemeColor(
+ Theme::WHISPER_TAB));
continue;
}
}
@@ -1499,7 +1500,8 @@ void ChatWindow::updateOnline(std::set<std::string> &onlinePlayers)
const PartyMember *const pm = party->getMember(nick);
if (pm && pm->getOnline())
{
- tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER));
+ tab->setTabColor(&Theme::getThemeColor(
+ Theme::WHISPER_TAB));
continue;
}
}
@@ -1508,11 +1510,13 @@ void ChatWindow::updateOnline(std::set<std::string> &onlinePlayers)
const GuildMember *const gm = guild->getMember(nick);
if (gm && gm->getOnline())
{
- tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER));
+ tab->setTabColor(&Theme::getThemeColor(
+ Theme::WHISPER_TAB));
continue;
}
}
- tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER_OFFLINE));
+ tab->setTabColor(&Theme::getThemeColor(
+ Theme::WHISPER_TAB_OFFLINE));
}
}
}
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index fd6ccc23d..ccb033e78 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -168,8 +168,8 @@ Theme::Theme():
mColors[CHAT].ch = 'C';
mColors[GM].ch = 'G';
mColors[PLAYER].ch = 'Y';
- mColors[WHISPER].ch = 'W';
- mColors[WHISPER_OFFLINE].ch = 'w';
+ mColors[WHISPER_TAB].ch = 'W';
+ mColors[WHISPER_TAB_OFFLINE].ch = 'w';
mColors[IS].ch = 'I';
mColors[PARTY_CHAT_TAB].ch = 'P';
mColors[GUILD_CHAT_TAB].ch = 'U';
@@ -180,8 +180,8 @@ Theme::Theme():
mCharColors['C'] = CHAT;
mCharColors['G'] = GM;
mCharColors['Y'] = PLAYER;
- mCharColors['W'] = WHISPER;
- mCharColors['w'] = WHISPER_OFFLINE;
+ mCharColors['W'] = WHISPER_TAB;
+ mCharColors['w'] = WHISPER_TAB_OFFLINE;
mCharColors['I'] = IS;
mCharColors['P'] = PARTY_CHAT_TAB;
mCharColors['U'] = GUILD_CHAT_TAB;
@@ -707,8 +707,8 @@ static int readColorType(const std::string &type)
"CHAT",
"GM",
"PLAYER",
- "WHISPER",
- "WHISPER_OFFLINE",
+ "WHISPER_TAB",
+ "WHISPER_TAB_OFFLINE",
"IS",
"SERVER",
"LOGGER",
diff --git a/src/gui/theme.h b/src/gui/theme.h
index f73988c48..546bab99a 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -199,8 +199,8 @@ class Theme : public Palette, public ConfigListener
CHAT,
GM,
PLAYER,
- WHISPER,
- WHISPER_OFFLINE,
+ WHISPER_TAB,
+ WHISPER_TAB_OFFLINE,
IS,
SERVER,
LOGGER,
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp
index bb918e3b3..ae034d8d2 100644
--- a/src/gui/widgets/whispertab.cpp
+++ b/src/gui/widgets/whispertab.cpp
@@ -39,7 +39,7 @@ WhisperTab::WhisperTab(const std::string &nick) :
ChatTab(nick),
mNick(nick)
{
- setTabColor(&Theme::getThemeColor(Theme::WHISPER));
+ setTabColor(&Theme::getThemeColor(Theme::WHISPER_TAB));
}
WhisperTab::~WhisperTab()