summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/graphics/gui/colors.xml2
-rw-r--r--data/themes/blacknblack/colors.xml2
-rw-r--r--data/themes/blackwood/colors.xml2
-rw-r--r--data/themes/enchilado/colors.xml2
-rw-r--r--data/themes/jewelry/colors.xml2
-rw-r--r--data/themes/mana/colors.xml2
-rw-r--r--data/themes/pink/colors.xml2
-rw-r--r--data/themes/unity/colors.xml2
-rw-r--r--data/themes/wood/colors.xml2
-rw-r--r--src/gui/statuswindow.cpp16
-rw-r--r--src/gui/theme.cpp4
-rw-r--r--src/gui/theme.h2
12 files changed, 25 insertions, 15 deletions
diff --git a/data/graphics/gui/colors.xml b/data/graphics/gui/colors.xml
index 95f1e66a3..fb1fe165c 100644
--- a/data/graphics/gui/colors.xml
+++ b/data/graphics/gui/colors.xml
@@ -93,6 +93,8 @@
<color id="PURPLE" color="#8415e2" />
<color id="GRAY" color="#919191" />
<color id="BROWN" color="#8e4c17" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
</palette>
<progressbar id="DEFAULT" color="#969696" />
diff --git a/data/themes/blacknblack/colors.xml b/data/themes/blacknblack/colors.xml
index d31f1f519..07623f966 100644
--- a/data/themes/blacknblack/colors.xml
+++ b/data/themes/blacknblack/colors.xml
@@ -84,6 +84,8 @@
<color id="PLAYER_ADVANCED" color="#005000" />
<color id="BUBBLE_NAME" color="#ffffff" />
<color id="BUBBLE_TEXT" color="#ffffff" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#ffffff" />
<color id="GREEN" color="#ffffff" />
diff --git a/data/themes/blackwood/colors.xml b/data/themes/blackwood/colors.xml
index b56f7e021..676249d0e 100644
--- a/data/themes/blackwood/colors.xml
+++ b/data/themes/blackwood/colors.xml
@@ -83,6 +83,8 @@
<color id="PLAYER_ADVANCED" color="#005000" />
<color id="BUBBLE_NAME" color="#000000" />
<color id="BUBBLE_TEXT" color="#000000" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#ff0000" />
<color id="GREEN" color="#009000" />
diff --git a/data/themes/enchilado/colors.xml b/data/themes/enchilado/colors.xml
index 60b701306..7feb5c9c6 100644
--- a/data/themes/enchilado/colors.xml
+++ b/data/themes/enchilado/colors.xml
@@ -84,6 +84,8 @@
<color id="PLAYER_ADVANCED" color="#005000" />
<color id="BUBBLE_NAME" color="#ffffff" />
<color id="BUBBLE_TEXT" color="#ffffff" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#ff0000" />
<color id="GREEN" color="#009000" />
diff --git a/data/themes/jewelry/colors.xml b/data/themes/jewelry/colors.xml
index ab6623138..8ecb6fb40 100644
--- a/data/themes/jewelry/colors.xml
+++ b/data/themes/jewelry/colors.xml
@@ -76,6 +76,8 @@
<color id="PURPLE" color="#8415e2" />
<color id="GRAY" color="#919191" />
<color id="BROWN" color="#774217" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
</palette>
<palette id="1">
diff --git a/data/themes/mana/colors.xml b/data/themes/mana/colors.xml
index 520c874c5..4d924a1f3 100644
--- a/data/themes/mana/colors.xml
+++ b/data/themes/mana/colors.xml
@@ -84,6 +84,8 @@
<color id="PLAYER_ADVANCED" color="#005000" />
<color id="BUBBLE_NAME" color="#ffffff" />
<color id="BUBBLE_TEXT" color="#ffffff" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#ff0000" />
<color id="GREEN" color="#009000" />
diff --git a/data/themes/pink/colors.xml b/data/themes/pink/colors.xml
index 33c226654..1f2c4df38 100644
--- a/data/themes/pink/colors.xml
+++ b/data/themes/pink/colors.xml
@@ -84,6 +84,8 @@
<color id="PLAYER_ADVANCED" color="#005000" />
<color id="BUBBLE_NAME" color="#000000" />
<color id="BUBBLE_TEXT" color="#000000" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#ff0000" />
<color id="GREEN" color="#009000" />
diff --git a/data/themes/unity/colors.xml b/data/themes/unity/colors.xml
index c7398e045..0c708e5d1 100644
--- a/data/themes/unity/colors.xml
+++ b/data/themes/unity/colors.xml
@@ -83,6 +83,8 @@
<color id="ITEM_NOT_EQUIPPED" color="#E0E0E0" />
<color id="BUBBLE_NAME" color="#ffffff" />
<color id="BUBBLE_TEXT" color="#ffffff" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#FFA8A8" />
<color id="GREEN" color="#59FF6C" />
diff --git a/data/themes/wood/colors.xml b/data/themes/wood/colors.xml
index 3517e79e1..0ea653bc5 100644
--- a/data/themes/wood/colors.xml
+++ b/data/themes/wood/colors.xml
@@ -84,6 +84,8 @@
<color id="PLAYER_ADVANCED" color="#005000" />
<color id="BUBBLE_NAME" color="#ffffff" />
<color id="BUBBLE_TEXT" color="#ffffff" />
+ <color id="STATUSBAR_ON" color="#646464" />
+ <color id="STATUSBAR_OFF" color="#ffff00" />
<color id="RED" color="#ff0000" />
<color id="GREEN" color="#009000" />
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index cd7a6e6fd..3bde3eddc 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -731,21 +731,9 @@ void StatusWindow::updateStatusBar(ProgressBar *const bar,
bar->setProgress(50);
if (player_node->getDisableGameModifiers())
- {
- gcn::Color col;
- col.r = 100;
- col.g = 100;
- col.b = 100;
- bar->setColor(col);
- }
+ bar->setColor(Theme::getThemeColor(Theme::STATUSBAR_ON));
else
- {
- gcn::Color col;
- col.r = 255;
- col.g = 255;
- col.b = 0;
- bar->setColor(col);
- }
+ bar->setColor(Theme::getThemeColor(Theme::STATUSBAR_OFF));
}
void StatusWindow::action(const gcn::ActionEvent &event)
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 76b5e5c7b..c5d358cab 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -910,7 +910,9 @@ static int readColorType(const std::string &type)
"GRAY",
"GRAY_OUTLINE",
"BROWN",
- "BROWN_OUTLINE"
+ "BROWN_OUTLINE",
+ "STATUSBAR_ON",
+ "STATUSBAR_OFF"
};
if (type.empty())
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 87e5dbef2..084868ef2 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -351,6 +351,8 @@ class Theme final : public Palette, public ConfigListener
GRAY_OUTLINE,
BROWN,
BROWN_OUTLINE,
+ STATUSBAR_ON,
+ STATUSBAR_OFF,
THEME_COLORS_END
};