diff options
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; |