summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-06 12:57:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-06 12:57:37 +0300
commitcf743a9e6e176e1fea8c79f8fd0421aae66ccdfd (patch)
treefb3a1b24e37feb1bf2bf520cb47ca31e54929dc7 /src/gui/widgets
parentf02ad41aacd14b0c5f53fb01fe833c42b81f8d63 (diff)
downloadmv-cf743a9e6e176e1fea8c79f8fd0421aae66ccdfd.tar.gz
mv-cf743a9e6e176e1fea8c79f8fd0421aae66ccdfd.tar.bz2
mv-cf743a9e6e176e1fea8c79f8fd0421aae66ccdfd.tar.xz
mv-cf743a9e6e176e1fea8c79f8fd0421aae66ccdfd.zip
add outline colors in shoplistbox class.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/shoplistbox.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 45891f202..ec3ed12e4 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -150,9 +150,14 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics)
}
}
if (mSelected == i)
- graphics->setColor(mForegroundSelectedColor);
+ {
+ graphics->setColorAll(mForegroundSelectedColor,
+ mForegroundSelectedColor2);
+ }
else
- graphics->setColor(mForegroundColor);
+ {
+ graphics->setColorAll(mForegroundColor, mForegroundColor2);
+ }
font->drawString(graphics, mListModel->getElementAt(i),
ITEM_ICON_SIZE + mPadding,
y + (ITEM_ICON_SIZE - getFont()->getHeight()) / 2 + mPadding);