diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 15:39:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 15:39:40 +0300 |
commit | 1d689e6492993a66935c7b36ff9827f6c170e166 (patch) | |
tree | 0c5dfb00414946b2a83a147da0d5180992d88bd9 /src/gui/widgets/tabs/chat/whispertab.cpp | |
parent | 2b6198dc9c4a52094bad3b39dbfb06c168a55ca2 (diff) | |
download | plus-1d689e6492993a66935c7b36ff9827f6c170e166.tar.gz plus-1d689e6492993a66935c7b36ff9827f6c170e166.tar.bz2 plus-1d689e6492993a66935c7b36ff9827f6c170e166.tar.xz plus-1d689e6492993a66935c7b36ff9827f6c170e166.zip |
Simplify chat tab colors usage.
Diffstat (limited to 'src/gui/widgets/tabs/chat/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/chat/whispertab.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/gui/widgets/tabs/chat/whispertab.cpp b/src/gui/widgets/tabs/chat/whispertab.cpp index a77a2e410..16b62a66c 100644 --- a/src/gui/widgets/tabs/chat/whispertab.cpp +++ b/src/gui/widgets/tabs/chat/whispertab.cpp @@ -123,21 +123,10 @@ void WhisperTab::getAutoCompleteList(StringVect &names) const void WhisperTab::setWhisperTabColors() { - setTabColor(&getThemeColor(Theme::WHISPER_TAB), - &getThemeColor(Theme::WHISPER_TAB_OUTLINE)); - setHighlightedTabColor(&getThemeColor(Theme::WHISPER_TAB_HIGHLIGHTED), - &getThemeColor(Theme::WHISPER_TAB_HIGHLIGHTED_OUTLINE)); - setSelectedTabColor(&getThemeColor(Theme::WHISPER_TAB_SELECTED), - &getThemeColor(Theme::WHISPER_TAB_SELECTED_OUTLINE)); + setTabColors(Theme::WHISPER_TAB); } void WhisperTab::setWhisperTabOfflineColors() { - setTabColor(&getThemeColor(Theme::WHISPER_TAB_OFFLINE), - &getThemeColor(Theme::WHISPER_TAB_OFFLINE_OUTLINE)); - setHighlightedTabColor(&getThemeColor( - Theme::WHISPER_TAB_OFFLINE_HIGHLIGHTED), &getThemeColor( - Theme::WHISPER_TAB_OFFLINE_HIGHLIGHTED_OUTLINE)); - setSelectedTabColor(&getThemeColor(Theme::WHISPER_TAB_OFFLINE_SELECTED), - &getThemeColor(Theme::WHISPER_TAB_OFFLINE_SELECTED_OUTLINE)); + setTabColors(Theme::WHISPER_TAB_OFFLINE); } |