From 1d689e6492993a66935c7b36ff9827f6c170e166 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Oct 2014 15:39:40 +0300 Subject: Simplify chat tab colors usage. --- src/gui/widgets/tabs/chat/whispertab.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/gui/widgets/tabs/chat/whispertab.cpp') 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); } -- cgit v1.2.3-70-g09d2