From a0f912da93b0b1c68e72cc7a4257031595b73f15 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 May 2013 00:29:15 +0300 Subject: Add outline colors for ITEM_EQUIPPED and ITEM_NOT_EQUIPPED. --- src/gui/widgets/itemcontainer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/itemcontainer.cpp') diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index bbdaf0d20..f65624eae 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -186,7 +186,9 @@ ItemContainer::ItemContainer(const Widget2 *const widget, mPaddingItemY(mSkin ? mSkin->getOption("paddingItemY", 0) : 0), mSelectionListeners(), mEquipedColor(getThemeColor(Theme::ITEM_EQUIPPED)), - mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)) + mEquipedColor2(getThemeColor(Theme::ITEM_EQUIPPED_OUTLINE)), + mUnEquipedColor(getThemeColor(Theme::ITEM_NOT_EQUIPPED)), + mUnEquipedColor2(getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE)) { setFocusable(true); addKeyListener(this); @@ -316,9 +318,9 @@ void ItemContainer::draw(gcn::Graphics *graphics) } if (item->isEquipped()) - g->setColor(mEquipedColor); + g->setColorAll(mEquipedColor, mEquipedColor2); else - g->setColor(mUnEquipedColor); + g->setColorAll(mUnEquipedColor, mUnEquipedColor2); font->drawString(g, caption, itemX + (mBoxWidth - font->getWidth(caption)) / 2, -- cgit v1.2.3-70-g09d2