From a2c2444d9eb4b43fb73339ae1cc3b7464f33409e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 May 2013 23:56:48 +0300 Subject: add outline color to listbox. --- src/gui/serverdialog.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/gui/serverdialog.cpp') diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 8bc1ad804..acf81ace5 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -171,6 +171,7 @@ public: ServersListModel *const model = static_cast( mListModel); + Graphics *const g = static_cast(graphics); updateAlpha(); @@ -201,9 +202,14 @@ public: ServerInfo info = model->getServer(i); if (mSelected == i) - graphics->setColor(mForegroundSelectedColor); + { + g->setColorAll(mForegroundSelectedColor, + mForegroundSelectedColor2); + } else - graphics->setColor(mForegroundColor); + { + g->setColorAll(mForegroundColor, mForegroundColor2); + } int top; int x = mPadding; -- cgit v1.2.3-70-g09d2