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