summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-04 16:17:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-04 16:17:21 +0300
commit7dec8e169a09513e9bd7f840fea52491b6d17828 (patch)
treefbc6d4f886fa85c312e361ad243ddcc1e00e6bec /src/gui/widgets/itemshortcutcontainer.cpp
parentfee1c7eb49c61afdab1ddb64bc2dfa7a22d6cf35 (diff)
downloadmanaverse-7dec8e169a09513e9bd7f840fea52491b6d17828.tar.gz
manaverse-7dec8e169a09513e9bd7f840fea52491b6d17828.tar.bz2
manaverse-7dec8e169a09513e9bd7f840fea52491b6d17828.tar.xz
manaverse-7dec8e169a09513e9bd7f840fea52491b6d17828.zip
add outline color TEXT color.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index 560374271..deb0c7c86 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -77,6 +77,7 @@ ItemShortcutContainer::ItemShortcutContainer(const unsigned number) :
mBoxWidth = 1;
}
mForegroundColor = getThemeColor(Theme::TEXT);
+ mForegroundColor2 = getThemeColor(Theme::TEXT_OUTLINE);
}
ItemShortcutContainer::~ItemShortcutContainer()
@@ -98,6 +99,7 @@ void ItemShortcutContainer::setWidget2(const Widget2 *const widget)
mEquipedColor = getThemeColor(Theme::ITEM_EQUIPPED);
mUnEquipedColor = getThemeColor(Theme::ITEM_NOT_EQUIPPED);
mForegroundColor = getThemeColor(Theme::TEXT);
+ mForegroundColor2 = getThemeColor(Theme::TEXT_OUTLINE);
}
void ItemShortcutContainer::draw(gcn::Graphics *graphics)
@@ -136,7 +138,8 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics)
// Draw item keyboard shortcut.
std::string key = inputManager.getKeyValueString(
Input::KEY_SHORTCUT_1 + i);
- graphics->setColor(mForegroundColor);
+ g->setColor(mForegroundColor);
+ g->setColor2(mForegroundColor);
font->drawString(g, key, itemX + 2, itemY + 2);