diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-02 17:45:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 17:45:47 +0300 |
commit | 4f390339f8107c376a10151a2cae889c0ec01089 (patch) | |
tree | 13af733406da1beb06ffcd20615ce22d406ed541 /src | |
parent | efba340a17ae21ca0aaa1cdba8e24265882f1eba (diff) | |
download | manaverse-4f390339f8107c376a10151a2cae889c0ec01089.tar.gz manaverse-4f390339f8107c376a10151a2cae889c0ec01089.tar.bz2 manaverse-4f390339f8107c376a10151a2cae889c0ec01089.tar.xz manaverse-4f390339f8107c376a10151a2cae889c0ec01089.zip |
Fix window color in equipment window.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/equipmentwindow.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index 147dde9ff..e6cb2b9a8 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -103,7 +103,7 @@ EquipmentWindow::EquipmentWindow(Equipment *const equipment, mHighlightColor = Theme::getThemeColor(Theme::HIGHLIGHT); mBorderColor = Theme::getThemeColor(Theme::BORDER); - setForegroundColor(Theme::getThemeColor(Theme::LABEL)); + mLabelsColor = Theme::getThemeColor(Theme::LABEL); } EquipmentWindow::~EquipmentWindow() @@ -174,7 +174,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics) g->drawImage(image, box->x + 2, box->y + 2); if (i == EQUIP_PROJECTILE_SLOT) { - g->setColor(getForegroundColor()); + g->setColor(mLabelsColor); graphics->drawText(toString(item->getQuantity()), box->x + (BOX_WIDTH / 2), box->y - fontHeight, gcn::Graphics::CENTER); diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h index ad90bca12..3d865165d 100644 --- a/src/gui/equipmentwindow.h +++ b/src/gui/equipmentwindow.h @@ -135,6 +135,7 @@ class EquipmentWindow : public Window, public gcn::ActionListener std::vector<EquipmentBox*> mBoxes; gcn::Color mHighlightColor; gcn::Color mBorderColor; + gcn::Color mLabelsColor; }; extern EquipmentWindow *equipmentWindow; |