From e6848c0aa8b1447c5e19bd1923f3fbd2866e635b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 9 Dec 2013 14:35:04 +0300 Subject: Add text colors for weight bar. New theme colors: WEIGHT_BAR, WEIGHT_BAR_OUTLINE --- src/gui/windows/inventorywindow.cpp | 2 ++ src/gui/windows/ministatuswindow.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index b9c89ad96..bdc0b342e 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -226,6 +226,8 @@ InventoryWindow::InventoryWindow(Inventory *const inventory): // TRANSLATORS: inventory button mEquipmentButton = new Button(this, _("Equipment"), "equipment", this); mWeightBar = new ProgressBar(this, 0.0F, 100, 0, Theme::PROG_WEIGHT); + mWeightBar->setColor(Theme::getThemeColor(Theme::WEIGHT_BAR), + Theme::getThemeColor(Theme::WEIGHT_BAR_OUTLINE)); place(0, 0, mWeightBar, 4); mSlotsBarCell = &place(4, 0, mSlotsBar, 5); diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index be691b72e..4cc913eb9 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -75,7 +75,7 @@ MiniStatusWindow::MiniStatusWindow() : // TRANSLATORS: status bar name "xp bar", _("experience bar"))), mJobBar(nullptr), - mWeightBar(createBar(0, 140, 0, Theme::PROGRESS_BAR, Theme::PROG_WEIGHT, + mWeightBar(createBar(0, 140, 0, Theme::WEIGHT_BAR, Theme::PROG_WEIGHT, // TRANSLATORS: status bar name "weight bar", _("weight bar"))), mInvSlotsBar(createBar(0, 45, 0, -- cgit v1.2.3-70-g09d2