summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-06 01:08:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-06 01:08:57 +0300
commit0ea8c99f68bf6af25776914af324cb1c7632bc54 (patch)
treeb4528c16b9018c5f5caf9c7c89888e79e132acdd /src/gui/widgets
parent55924e43101deef978c6f73ed5a4da63fcb58705 (diff)
downloadplus-0ea8c99f68bf6af25776914af324cb1c7632bc54.tar.gz
plus-0ea8c99f68bf6af25776914af324cb1c7632bc54.tar.bz2
plus-0ea8c99f68bf6af25776914af324cb1c7632bc54.tar.xz
plus-0ea8c99f68bf6af25776914af324cb1c7632bc54.zip
add outline color in checbox class.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/checkbox.cpp4
-rw-r--r--src/gui/widgets/checkbox.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp
index 63e73569f..552eb98fb 100644
--- a/src/gui/widgets/checkbox.cpp
+++ b/src/gui/widgets/checkbox.cpp
@@ -68,6 +68,7 @@ CheckBox::CheckBox(const Widget2 *const widget,
addActionListener(listener);
mForegroundColor = getThemeColor(Theme::CHECKBOX);
+ mForegroundColor2 = getThemeColor(Theme::CHECKBOX_OUTLINE);
if (mSkin)
{
mPadding = mSkin->getPadding();
@@ -98,7 +99,8 @@ void CheckBox::draw(gcn::Graphics* graphics)
drawBox(graphics);
gcn::Font *const font = getFont();
- graphics->setColor(mForegroundColor);
+ static_cast<Graphics *const>(graphics)->setColorAll(
+ mForegroundColor, mForegroundColor2);
font->drawString(graphics, mCaption, mPadding + mImageSize + mSpacing,
mPadding);
diff --git a/src/gui/widgets/checkbox.h b/src/gui/widgets/checkbox.h
index 626d1ebe3..c6701f52a 100644
--- a/src/gui/widgets/checkbox.h
+++ b/src/gui/widgets/checkbox.h
@@ -91,6 +91,7 @@ class CheckBox final : public gcn::CheckBox,
int mImagePadding;
int mImageSize;
int mSpacing;
+ gcn::Color mForegroundColor;
static int instances;
static Skin *mSkin;