diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-06 00:37:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-06 00:37:15 +0300 |
commit | 592b28ddc60d437b7b7ebd14386873b808605f8e (patch) | |
tree | 769e5cbda8a00741ff9ca5f0da7bfbaa4d7b9ccd /src/gui/widgets/extendedlistbox.cpp | |
parent | a0f912da93b0b1c68e72cc7a4257031595b73f15 (diff) | |
download | manaplus-592b28ddc60d437b7b7ebd14386873b808605f8e.tar.gz manaplus-592b28ddc60d437b7b7ebd14386873b808605f8e.tar.bz2 manaplus-592b28ddc60d437b7b7ebd14386873b808605f8e.tar.xz manaplus-592b28ddc60d437b7b7ebd14386873b808605f8e.zip |
add outline colors to extendedlistbox class.
Diffstat (limited to 'src/gui/widgets/extendedlistbox.cpp')
-rw-r--r-- | src/gui/widgets/extendedlistbox.cpp | 5 |
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); } |