summaryrefslogtreecommitdiff
path: root/src/gui/widgets/checkbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/checkbox.cpp')
-rw-r--r--src/gui/widgets/checkbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp
index 552eb98fb..552d98c72 100644
--- a/src/gui/widgets/checkbox.cpp
+++ b/src/gui/widgets/checkbox.cpp
@@ -48,7 +48,8 @@ CheckBox::CheckBox(const Widget2 *const widget,
mPadding(0),
mImagePadding(0),
mImageSize(9),
- mSpacing(2)
+ mSpacing(2),
+ mForegroundColor(getThemeColor(Theme::CHECKBOX_OUTLINE))
{
if (instances == 0)
{
@@ -68,7 +69,6 @@ CheckBox::CheckBox(const Widget2 *const widget,
addActionListener(listener);
mForegroundColor = getThemeColor(Theme::CHECKBOX);
- mForegroundColor2 = getThemeColor(Theme::CHECKBOX_OUTLINE);
if (mSkin)
{
mPadding = mSkin->getPadding();