From c5a64309d9d792fc4ee3218f4db902e8a846a18a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Sep 2012 15:17:51 +0300 Subject: Add new colors for whisper tabs. New colors: WHISPER_TAB_HIGHLIGHTED, WHISPER_TAB_OFFLINE_HIGHLIGHTED, WHISPER_TAB_SELECTED, WHISPER_TAB_OFFLINE_SELECTED --- src/gui/widgets/whispertab.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/whispertab.cpp') diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index ae034d8d2..cc4db6a87 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_TAB)); + setWhisperTabColors(); } WhisperTab::~WhisperTab() @@ -168,3 +168,20 @@ void WhisperTab::getAutoCompleteList(StringVect &names) const { names.push_back(mNick); } + +void WhisperTab::setWhisperTabColors() +{ + setTabColor(&Theme::getThemeColor(Theme::WHISPER_TAB)); + setHighlightedTabColor(&Theme::getThemeColor( + Theme::WHISPER_TAB_HIGHLIGHTED)); + setSelectedTabColor(&Theme::getThemeColor(Theme::WHISPER_TAB_SELECTED)); +} + +void WhisperTab::setWhisperTabOfflineColors() +{ + setTabColor(&Theme::getThemeColor(Theme::WHISPER_TAB_OFFLINE)); + setHighlightedTabColor(&Theme::getThemeColor( + Theme::WHISPER_TAB_OFFLINE_HIGHLIGHTED)); + setSelectedTabColor(&Theme::getThemeColor( + Theme::WHISPER_TAB_OFFLINE_SELECTED)); +} -- cgit v1.2.3-70-g09d2