summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/radiobutton.cpp6
-rw-r--r--src/gui/widgets/radiobutton.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/radiobutton.cpp b/src/gui/widgets/radiobutton.cpp
index a2acf3d69..13f3fb237 100644
--- a/src/gui/widgets/radiobutton.cpp
+++ b/src/gui/widgets/radiobutton.cpp
@@ -46,7 +46,8 @@ RadioButton::RadioButton(const Widget2 *const widget,
mPadding(0),
mImagePadding(0),
mImageSize(9),
- mSpacing(2)
+ mSpacing(2),
+ mForegroundColor2(getThemeColor(Theme::RADIOBUTTON_OUTLINE))
{
mForegroundColor = getThemeColor(Theme::RADIOBUTTON);
if (instances == 0)
@@ -156,7 +157,8 @@ void RadioButton::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/radiobutton.h b/src/gui/widgets/radiobutton.h
index 481d18408..50372e8c2 100644
--- a/src/gui/widgets/radiobutton.h
+++ b/src/gui/widgets/radiobutton.h
@@ -88,6 +88,7 @@ class RadioButton final : public gcn::RadioButton,
int mImagePadding;
int mImageSize;
int mSpacing;
+ gcn::Color mForegroundColor2;
};
#endif // RADIOBUTTON_H