summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/progressbar.cpp6
-rw-r--r--src/gui/widgets/progressbar.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index de30feeef..51faed2ae 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -37,19 +37,19 @@ float ProgressBar::mAlpha = 1.0;
ProgressBar::ProgressBar(const Widget2 *const widget, float progress,
const int width, const int height,
- const int color):
+ const int backColor):
gcn::Widget(),
Widget2(widget),
gcn::WidgetListener(),
mSkin(nullptr),
mProgress(progress),
mProgressToGo(progress),
- mColor(Theme::getProgressColor(color >= 0 ? color : 0, mProgress)),
+ mColor(Theme::getProgressColor(backColor >= 0 ? backColor : 0, mProgress)),
mColorToGo(mColor),
mOutlineColor(getThemeColor(Theme::OUTLINE)),
mText(),
mVertexes(new ImageCollection),
- mProgressPalette(color),
+ mProgressPalette(backColor),
mPadding(2),
mFillPadding(3),
mSmoothProgress(true),
diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h
index fa05e7bd3..160d3f4a2 100644
--- a/src/gui/widgets/progressbar.h
+++ b/src/gui/widgets/progressbar.h
@@ -50,8 +50,8 @@ class ProgressBar final : public gcn::Widget,
* Constructor, initializes the progress with the given value.
*/
ProgressBar(const Widget2 *const widget, float progress,
- const int width = 40, const int height = 7,
- const int color = -1);
+ const int width, const int height,
+ const int backColor);
A_DELETE_COPY(ProgressBar)