diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-24 22:32:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-24 22:32:04 +0300 |
commit | 4e95f451a793dbac5dbc31361cdc5049de48c3cc (patch) | |
tree | 02a1cc506638edd2deb2074abd97330a74435c3a /src/gui/serverdialog.cpp | |
parent | 22e4c80cc35e552ef39639a874f3c54f11fde747 (diff) | |
download | mv-4e95f451a793dbac5dbc31361cdc5049de48c3cc.tar.gz mv-4e95f451a793dbac5dbc31361cdc5049de48c3cc.tar.bz2 mv-4e95f451a793dbac5dbc31361cdc5049de48c3cc.tar.xz mv-4e95f451a793dbac5dbc31361cdc5049de48c3cc.zip |
Add color for selected text in listboxes.
New theme color:
LISTBOX_SELECTED
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; }; |