diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 16:36:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 16:36:44 +0300 |
commit | a88b02402ef2919e297dbacc88b23caee635ffb6 (patch) | |
tree | 6a1d82299f6121da5a765d9bcc7d3be8eeee1264 /src/gui | |
parent | 2e8e53fb5e3f2ba7d0d4f55b0c6705d12ec8efa9 (diff) | |
download | manaplus-a88b02402ef2919e297dbacc88b23caee635ffb6.tar.gz manaplus-a88b02402ef2919e297dbacc88b23caee635ffb6.tar.bz2 manaplus-a88b02402ef2919e297dbacc88b23caee635ffb6.tar.xz manaplus-a88b02402ef2919e297dbacc88b23caee635ffb6.zip |
Add own battle chat tab colors.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/theme.cpp | 6 | ||||
-rw-r--r-- | src/gui/theme.h | 6 | ||||
-rw-r--r-- | src/gui/widgets/tabs/chat/battletab.cpp | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index a584f446a..e52e80ed0 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -679,6 +679,8 @@ static int readColorType(const std::string &type) "TEXTFIELD_OUTLINE", "WINDOW", "WINDOW_OUTLINE", + "BATTLE_CHAT_TAB", + "BATTLE_CHAT_TAB_OUTLINE", "PARTY_CHAT_TAB", "PARTY_CHAT_TAB_OUTLINE", "PARTY_SOCIAL_TAB", @@ -689,6 +691,8 @@ static int readColorType(const std::string &type) "GUILD_SOCIAL_TAB_OUTLINE", "GM_CHAT_TAB", "GM_CHAT_TAB_OUTLINE", + "BATTLE_CHAT_TAB_HIGHLIGHTED", + "BATTLE_CHAT_TAB_HIGHLIGHTED_OUTLINE", "PARTY_CHAT_TAB_HIGHLIGHTED", "PARTY_CHAT_TAB_HIGHLIGHTED_OUTLINE", "PARTY_SOCIAL_TAB_HIGHLIGHTED", @@ -699,6 +703,8 @@ static int readColorType(const std::string &type) "GUILD_SOCIAL_TAB_HIGHLIGHTED_OUTLINE", "GM_CHAT_TAB_HIGHLIGHTED", "GM_CHAT_TAB_HIGHLIGHTED_OUTLINE", + "BATTLE_CHAT_TAB_SELECTED", + "BATTLE_CHAT_TAB_SELECTED_OUTLINE", "PARTY_CHAT_TAB_SELECTED", "PARTY_CHAT_TAB_SELECTED_OUTLINE", "PARTY_SOCIAL_TAB_SELECTED", diff --git a/src/gui/theme.h b/src/gui/theme.h index 708d12202..6e63e05e6 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -139,6 +139,8 @@ class Theme final : public Palette, TEXTFIELD_OUTLINE, WINDOW, WINDOW_OUTLINE, + BATTLE_CHAT_TAB, + BATTLE_CHAT_TAB_OUTLINE, PARTY_CHAT_TAB, PARTY_CHAT_TAB_OUTLINE, PARTY_SOCIAL_TAB, @@ -149,6 +151,8 @@ class Theme final : public Palette, GUILD_SOCIAL_TAB_OUTLINE, GM_CHAT_TAB, GM_CHAT_TAB_OUTLINE, + BATTLE_CHAT_TAB_HIGHLIGHTED, + BATTLE_CHAT_TAB_HIGHLIGHTED_OUTLINE, PARTY_CHAT_TAB_HIGHLIGHTED, PARTY_CHAT_TAB_HIGHLIGHTED_OUTLINE, PARTY_SOCIAL_TAB_HIGHLIGHTED, @@ -159,6 +163,8 @@ class Theme final : public Palette, GUILD_SOCIAL_TAB_HIGHLIGHTED_OUTLINE, GM_CHAT_TAB_HIGHLIGHTED, GM_CHAT_TAB_HIGHLIGHTED_OUTLINE, + BATTLE_CHAT_TAB_SELECTED, + BATTLE_CHAT_TAB_SELECTED_OUTLINE, PARTY_CHAT_TAB_SELECTED, PARTY_CHAT_TAB_SELECTED_OUTLINE, PARTY_SOCIAL_TAB_SELECTED, diff --git a/src/gui/widgets/tabs/chat/battletab.cpp b/src/gui/widgets/tabs/chat/battletab.cpp index c9672965f..73fc3802e 100644 --- a/src/gui/widgets/tabs/chat/battletab.cpp +++ b/src/gui/widgets/tabs/chat/battletab.cpp @@ -35,6 +35,7 @@ BattleTab::BattleTab(const Widget2 *const widget) : // TRANSLATORS: battle chat tab name ChatTab(widget, _("Battle"), "", "#Battle", ChatTabType::BATTLE) { + setTabColors(Theme::BATTLE_CHAT_TAB); if (config.getBoolValue("showChatHistory")) loadFromLogFile("#Battle"); } |