diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-04 16:24:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-04 16:24:17 +0300 |
commit | cdca37e368923c0298691847eba1c394a287e52f (patch) | |
tree | 77a3b0190aae27cb8095e8817bd022cd8c9c8fb4 /src/gui/widgets/progressbar.h | |
parent | bbc361c48389875a8a67d138bc05aad30070b916 (diff) | |
download | plus-cdca37e368923c0298691847eba1c394a287e52f.tar.gz plus-cdca37e368923c0298691847eba1c394a287e52f.tar.bz2 plus-cdca37e368923c0298691847eba1c394a287e52f.tar.xz plus-cdca37e368923c0298691847eba1c394a287e52f.zip |
Add new color for slots progress bar in inventory.
New colors: SLOTS_BAR, SLOTS_BAR_OUTLINE.
Diffstat (limited to 'src/gui/widgets/progressbar.h')
-rw-r--r-- | src/gui/widgets/progressbar.h | 14 |
1 files changed, 8 insertions, 6 deletions
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; |