From 577b75a14fa04b0d78281257ee7f5e3c42be3b7e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Sep 2012 01:11:07 +0300 Subject: Rename colors WHISPER and WHISPER_OFFLINE to WHISPER_TAB and WHISPER_TAB_OFFLINE. --- src/gui/chatwindow.cpp | 14 +++++++++----- src/gui/theme.cpp | 12 ++++++------ src/gui/theme.h | 4 ++-- src/gui/widgets/whispertab.cpp | 2 +- src/localplayer.cpp | 2 +- 5 files changed, 19 insertions(+), 15 deletions(-) (limited to 'src') 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 &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 &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 &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 &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() diff --git a/src/localplayer.cpp b/src/localplayer.cpp index cba78a449..0521a170d 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -4164,7 +4164,7 @@ void LocalPlayer::checkNewName(Being *const being) { ChatTab *const tab = chatWindow->getWhisperTab(nick); if (tab) - tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER)); + tab->setTabColor(&Theme::getThemeColor(Theme::WHISPER_TAB)); } } -- cgit v1.2.3-70-g09d2