summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-05 23:36:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-05 23:36:56 +0300
commit2f1650a30d6f3d2f69f09ee1ad3258fc8b0c7e32 (patch)
tree1cd733466daba2b55aff5aaf9e90245d0b1f3c9b /src/gui/statuswindow.cpp
parent180de8ec6d87d2db1952a834fb1634db57b43fe3 (diff)
downloadmanaplus-2f1650a30d6f3d2f69f09ee1ad3258fc8b0c7e32.tar.gz
manaplus-2f1650a30d6f3d2f69f09ee1ad3258fc8b0c7e32.tar.bz2
manaplus-2f1650a30d6f3d2f69f09ee1ad3258fc8b0c7e32.tar.xz
manaplus-2f1650a30d6f3d2f69f09ee1ad3258fc8b0c7e32.zip
dehardcode status bar colors (yellow bar).
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)