summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat/whispertab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs/chat/whispertab.cpp')
-rw-r--r--src/gui/widgets/tabs/chat/whispertab.cpp15
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);
}