summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/statuswindow.cpp16
-rw-r--r--src/gui/theme.cpp4
-rw-r--r--src/gui/theme.h2
3 files changed, 7 insertions, 15 deletions
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
};