diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-09 15:47:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-09 15:47:26 +0300 |
commit | b90b75b19839d8141cc682fe4b97532e706b16bd (patch) | |
tree | 316596bafd799ea0586f9f436b150145d3cced24 | |
parent | f39fa842516cf53ecc34e735ba687c545023334f (diff) | |
download | mv-b90b75b19839d8141cc682fe4b97532e706b16bd.tar.gz mv-b90b75b19839d8141cc682fe4b97532e706b16bd.tar.bz2 mv-b90b75b19839d8141cc682fe4b97532e706b16bd.tar.xz mv-b90b75b19839d8141cc682fe4b97532e706b16bd.zip |
Add text colors for money bar.
New theme colors: MONEY_BAR, MONEY_BAR_OUTLINE
-rw-r--r-- | data/graphics/gui/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/blacknblack/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/blackwood/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/enchilado/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/jewelry/colors.xml | 6 | ||||
-rw-r--r-- | data/themes/mana/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/pink/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/unity/colors.xml | 2 | ||||
-rw-r--r-- | data/themes/wood/colors.xml | 2 | ||||
-rw-r--r-- | src/gui/theme.cpp | 4 | ||||
-rw-r--r-- | src/gui/theme.h | 2 | ||||
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 2 |
12 files changed, 28 insertions, 2 deletions
diff --git a/data/graphics/gui/colors.xml b/data/graphics/gui/colors.xml index c9a113e92..1d70fa434 100644 --- a/data/graphics/gui/colors.xml +++ b/data/graphics/gui/colors.xml @@ -111,6 +111,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> </palette> <progressbar id="HP" color="#ff0000,e28000,c38948,0f6a20" /> diff --git a/data/themes/blacknblack/colors.xml b/data/themes/blacknblack/colors.xml index 37f163493..05f428a17 100644 --- a/data/themes/blacknblack/colors.xml +++ b/data/themes/blacknblack/colors.xml @@ -101,6 +101,8 @@ <color id="XP_BAR_OUTLINE" color="#555555" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#555555" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#555555" /> <color id="BLACK" color="#ffffff" /> <color id="RED" color="#ffffff" /> diff --git a/data/themes/blackwood/colors.xml b/data/themes/blackwood/colors.xml index f7965c7ba..7168f1529 100644 --- a/data/themes/blackwood/colors.xml +++ b/data/themes/blackwood/colors.xml @@ -100,6 +100,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> <color id="BLACK" color="#7a7972" /> <color id="RED" color="#ff0000" /> diff --git a/data/themes/enchilado/colors.xml b/data/themes/enchilado/colors.xml index b0693b056..41b307632 100644 --- a/data/themes/enchilado/colors.xml +++ b/data/themes/enchilado/colors.xml @@ -101,6 +101,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> <color id="BLACK" color="#000000" /> <color id="RED" color="#ff0000" /> diff --git a/data/themes/jewelry/colors.xml b/data/themes/jewelry/colors.xml index f25a83130..2921e09d6 100644 --- a/data/themes/jewelry/colors.xml +++ b/data/themes/jewelry/colors.xml @@ -98,6 +98,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> </palette> <palette id="1"> @@ -273,6 +275,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> </palette> <palette id="2"> @@ -372,6 +376,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> </palette> <progressbar id="HP" color="#b80000" /> diff --git a/data/themes/mana/colors.xml b/data/themes/mana/colors.xml index 230f02fcd..a3b1b125a 100644 --- a/data/themes/mana/colors.xml +++ b/data/themes/mana/colors.xml @@ -101,6 +101,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> <color id="BLACK" color="#000000" /> <color id="RED" color="#ff0000" /> diff --git a/data/themes/pink/colors.xml b/data/themes/pink/colors.xml index 91f7e4517..81f49149a 100644 --- a/data/themes/pink/colors.xml +++ b/data/themes/pink/colors.xml @@ -101,6 +101,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> <color id="BLACK" color="#000000" /> <color id="RED" color="#ff0000" /> diff --git a/data/themes/unity/colors.xml b/data/themes/unity/colors.xml index d37b4d82d..7ee51cdf0 100644 --- a/data/themes/unity/colors.xml +++ b/data/themes/unity/colors.xml @@ -100,6 +100,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> <color id="BLACK" color="#0E0E0E" /> <color id="RED" color="#FFA8A8" /> diff --git a/data/themes/wood/colors.xml b/data/themes/wood/colors.xml index 9d6bb31e3..f4d59a61e 100644 --- a/data/themes/wood/colors.xml +++ b/data/themes/wood/colors.xml @@ -101,6 +101,8 @@ <color id="XP_BAR_OUTLINE" color="#000000" /> <color id="WEIGHT_BAR" color="#ffffff" /> <color id="WEIGHT_BAR_OUTLINE" color="#000000" /> + <color id="MONEY_BAR" color="#ffffff" /> + <color id="MONEY_BAR_OUTLINE" color="#000000" /> <color id="BLACK" color="#000000" /> <color id="RED" color="#ff0000" /> diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 93321cee2..85d1e2116 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -962,7 +962,9 @@ static int readColorType(const std::string &type) "XP_BAR", "XP_BAR_OUTLINE", "WEIGHT_BAR", - "WEIGHT_BAR_OUTLINE" + "WEIGHT_BAR_OUTLINE", + "MONEY_BAR", + "MONEY_BAR_OUTLINE" }; if (type.empty()) diff --git a/src/gui/theme.h b/src/gui/theme.h index 99b74c512..84f7d2bb5 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -406,6 +406,8 @@ class Theme final : public Palette, public ConfigListener XP_BAR_OUTLINE, WEIGHT_BAR, WEIGHT_BAR_OUTLINE, + MONEY_BAR, + MONEY_BAR_OUTLINE, THEME_COLORS_END }; diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index d7ab27718..51935bb4c 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -82,7 +82,7 @@ MiniStatusWindow::MiniStatusWindow() : Theme::SLOTS_BAR, Theme::PROG_INVY_SLOTS, // TRANSLATORS: status bar name "inventory slots bar", _("inventory slots bar"))), - mMoneyBar(createBar(0, 130, 0, Theme::SLOTS_BAR, Theme::PROG_MONEY, + mMoneyBar(createBar(0, 130, 0, Theme::MONEY_BAR, Theme::PROG_MONEY, // TRANSLATORS: status bar name "money bar", _("money bar"))), mArrowsBar(createBar(0, 50, 0, Theme::SLOTS_BAR, Theme::PROG_INVY_SLOTS, |