From cdca37e368923c0298691847eba1c394a287e52f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Dec 2013 16:24:17 +0300 Subject: Add new color for slots progress bar in inventory. New colors: SLOTS_BAR, SLOTS_BAR_OUTLINE. --- src/gui/widgets/progressbar.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/progressbar.h') diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h index 160d3f4a2..954d9f7d2 100644 --- a/src/gui/widgets/progressbar.h +++ b/src/gui/widgets/progressbar.h @@ -92,13 +92,15 @@ class ProgressBar final : public gcn::Widget, /** * Change the color of the progress bar. */ - void setColor(const gcn::Color &color); + void setBackgroundColor(const gcn::Color &color); + + void setColor(const gcn::Color &color1, const gcn::Color &color2); /** * Returns the color of the progress bar. */ - const gcn::Color &getColor() const A_WARN_UNUSED - { return mColor; } + const gcn::Color &getBackgroundColor() const A_WARN_UNUSED + { return mBackgroundColor; } /** * Sets the text shown on the progress bar. @@ -141,9 +143,9 @@ class ProgressBar final : public gcn::Widget, float mProgress; float mProgressToGo; - gcn::Color mColor; - gcn::Color mColorToGo; - gcn::Color mOutlineColor; + gcn::Color mBackgroundColor; + gcn::Color mBackgroundColorToGo; + gcn::Color mForegroundColor2; std::string mText; ImageCollection *mVertexes; -- cgit v1.2.3-70-g09d2