summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropshortcutcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/dropshortcutcontainer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp
index 8fde755c1..732b94454 100644
--- a/src/gui/widgets/dropshortcutcontainer.cpp
+++ b/src/gui/widgets/dropshortcutcontainer.cpp
@@ -81,6 +81,13 @@ DropShortcutContainer::~DropShortcutContainer()
mItemPopup = nullptr;
}
+void DropShortcutContainer::setWidget2(const Widget2 *const widget)
+{
+ Widget2::setWidget2(widget);
+ mEquipedColor = getThemeColor(Theme::ITEM_EQUIPPED);
+ mUnEquipedColor = getThemeColor(Theme::ITEM_NOT_EQUIPPED);
+}
+
void DropShortcutContainer::draw(gcn::Graphics *graphics)
{
if (!dropShortcut)