From cf743a9e6e176e1fea8c79f8fd0421aae66ccdfd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 May 2013 12:57:37 +0300 Subject: add outline colors in shoplistbox class. --- src/gui/widgets/shoplistbox.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/shoplistbox.cpp') 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); -- cgit v1.2.3-60-g2f50