diff options
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r-- | src/gui/serverdialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index 5cc1c2acb..2f0610999 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -160,7 +160,6 @@ public: ServersListModel *const model) : ListBox(widget, model), mHighlightColor(getThemeColor(Theme::HIGHLIGHT)), - mTextColor(getThemeColor(Theme::LISTBOX)), mNotSupportedColor(getThemeColor(Theme::SERVER_VERSION_NOT_SUPPORTED)) { } @@ -196,7 +195,10 @@ public: { ServerInfo info = model->getServer(i); - graphics->setColor(mTextColor); + if (mSelected == i) + graphics->setColor(mForegroundSelectedColor); + else + graphics->setColor(mForegroundColor); int top; int x = mPadding; @@ -235,7 +237,6 @@ public: } private: gcn::Color mHighlightColor; - gcn::Color mTextColor; gcn::Color mNotSupportedColor; }; |