summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp16
1 files changed, 2 insertions, 14 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)