summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-06 00:37:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-06 00:37:15 +0300
commit592b28ddc60d437b7b7ebd14386873b808605f8e (patch)
tree769e5cbda8a00741ff9ca5f0da7bfbaa4d7b9ccd /src/gui
parenta0f912da93b0b1c68e72cc7a4257031595b73f15 (diff)
downloadplus-592b28ddc60d437b7b7ebd14386873b808605f8e.tar.gz
plus-592b28ddc60d437b7b7ebd14386873b808605f8e.tar.bz2
plus-592b28ddc60d437b7b7ebd14386873b808605f8e.tar.xz
plus-592b28ddc60d437b7b7ebd14386873b808605f8e.zip
add outline colors to extendedlistbox class.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/extendedlistbox.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp
index d83a2a1ba..603827130 100644
--- a/src/gui/widgets/extendedlistbox.cpp
+++ b/src/gui/widgets/extendedlistbox.cpp
@@ -89,7 +89,7 @@ void ExtendedListBox::draw(gcn::Graphics *graphics)
}
// Draw the list elements
- graphics->setColor(mForegroundColor);
+ g->setColorAll(mForegroundColor, mForegroundColor2);
for (int i = 0, y = 0; i < mListModel->getNumberOfElements();
++i, y += height)
{
@@ -123,7 +123,8 @@ void ExtendedListBox::draw(gcn::Graphics *graphics)
const int y = mSelected * height;
g->drawImage(image, mImagePadding, y + (height
- image->getHeight()) / 2 + mPadding);
- graphics->setColor(mForegroundSelectedColor);
+ g->setColorAll(mForegroundSelectedColor,
+ mForegroundSelectedColor2);
font->drawString(graphics, mListModel->getElementAt(mSelected),
image->getWidth() + mImagePadding + mSpacing, y + textPos);
}