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/chattab.h | |
parent | 2b6198dc9c4a52094bad3b39dbfb06c168a55ca2 (diff) | |
download | manaplus-1d689e6492993a66935c7b36ff9827f6c170e166.tar.gz manaplus-1d689e6492993a66935c7b36ff9827f6c170e166.tar.bz2 manaplus-1d689e6492993a66935c7b36ff9827f6c170e166.tar.xz manaplus-1d689e6492993a66935c7b36ff9827f6c170e166.zip |
Simplify chat tab colors usage.
Diffstat (limited to 'src/gui/widgets/tabs/chat/chattab.h')
-rw-r--r-- | src/gui/widgets/tabs/chat/chattab.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index b6c3d9af3..aa4162ce3 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -39,6 +39,14 @@ class ScrollArea; if (debugChatTab) \ debugChatTab->chatLog(str); +#define setTabColors(name) \ + setTabColor(&getThemeColor(name), \ + &getThemeColor(name##_OUTLINE)); \ + setHighlightedTabColor(&getThemeColor(name##_HIGHLIGHTED), \ + &getThemeColor(name##_HIGHLIGHTED_OUTLINE)); \ + setSelectedTabColor(&getThemeColor(name##_SELECTED), \ + &getThemeColor(name##_SELECTED_OUTLINE)) + /** * A tab for the chat window. This is special to ease chat handling. */ |