From 4c7a11b639ec94c8a32a9a52e99652c464745037 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 02:07:55 +0300 Subject: Add palette inheritance to other shortcutcontainer classes. --- src/gui/widgets/spellshortcutcontainer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/widgets/spellshortcutcontainer.cpp') diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 22ed8d6b5..061e12b73 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -84,6 +84,12 @@ SpellShortcutContainer::~SpellShortcutContainer() mSpellPopup = nullptr; } +void SpellShortcutContainer::setWidget2(const Widget2 *const widget) +{ + Widget2::setWidget2(widget); + mForegroundColor = getThemeColor(Theme::TEXT); +} + void SpellShortcutContainer::draw(gcn::Graphics *graphics) { if (!spellShortcut) -- cgit v1.2.3-60-g2f50