From 7dec8e169a09513e9bd7f840fea52491b6d17828 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 May 2013 16:17:21 +0300 Subject: add outline color TEXT color. --- src/gui/widgets/spellshortcutcontainer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/spellshortcutcontainer.cpp') diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index a6e3a73ee..262f49f58 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -46,10 +46,10 @@ SpellShortcutContainer::SpellShortcutContainer(const unsigned number) : ShortcutContainer(), - mSpellClicked(false), mSpellMoved(nullptr), mSpellPopup(new SpellPopup), - mNumber(number) + mNumber(number), + mSpellClicked(false) { addMouseListener(this); addWidgetListener(this); @@ -73,6 +73,7 @@ SpellShortcutContainer::SpellShortcutContainer(const unsigned number) : mBoxWidth = 1; } mForegroundColor = getThemeColor(Theme::TEXT); + mForegroundColor2 = getThemeColor(Theme::TEXT_OUTLINE); } SpellShortcutContainer::~SpellShortcutContainer() @@ -88,6 +89,7 @@ void SpellShortcutContainer::setWidget2(const Widget2 *const widget) { Widget2::setWidget2(widget); mForegroundColor = getThemeColor(Theme::TEXT); + mForegroundColor2 = getThemeColor(Theme::TEXT_OUTLINE); } void SpellShortcutContainer::draw(gcn::Graphics *graphics) @@ -108,6 +110,7 @@ void SpellShortcutContainer::draw(gcn::Graphics *graphics) const int selectedId = spellShortcut->getSelectedItem(); g->setColor(mForegroundColor); + g->setColor2(mForegroundColor2); drawBackground(g); for (unsigned i = 0; i < mMaxItems; i++) -- cgit v1.2.3-70-g09d2