diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-06 00:00:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-06 00:00:29 +0300 |
commit | 4b51940253b83e2cbb8bf92f9c81b0a3b0ce2664 (patch) | |
tree | 7a24ac23af0cce6292ec412015551b7ff8479852 | |
parent | a2c2444d9eb4b43fb73339ae1cc3b7464f33409e (diff) | |
download | manaverse-4b51940253b83e2cbb8bf92f9c81b0a3b0ce2664.tar.gz manaverse-4b51940253b83e2cbb8bf92f9c81b0a3b0ce2664.tar.bz2 manaverse-4b51940253b83e2cbb8bf92f9c81b0a3b0ce2664.tar.xz manaverse-4b51940253b83e2cbb8bf92f9c81b0a3b0ce2664.zip |
add outline color for not supported color in servers dialog.
-rw-r--r-- | src/gui/serverdialog.cpp | 7 | ||||
-rw-r--r-- | src/gui/theme.cpp | 1 | ||||
-rw-r--r-- | src/gui/theme.h | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp index acf81ace5..07c3f2df3 100644 --- a/src/gui/serverdialog.cpp +++ b/src/gui/serverdialog.cpp @@ -160,7 +160,9 @@ public: ServersListModel *const model) : ListBox(widget, model, "serverslistbox.xml"), mHighlightColor(getThemeColor(Theme::HIGHLIGHT)), - mNotSupportedColor(getThemeColor(Theme::SERVER_VERSION_NOT_SUPPORTED)) + mNotSupportedColor(getThemeColor(Theme::SERVER_VERSION_NOT_SUPPORTED)), + mNotSupportedColor2(getThemeColor( + Theme::SERVER_VERSION_NOT_SUPPORTED_OUTLINE)) { } @@ -231,7 +233,7 @@ public: if (info.version.first > 0) { - graphics->setColor(mNotSupportedColor); + graphics->setColorAll(mNotSupportedColor, mNotSupportedColor2); font2->drawString(graphics, info.version.second, width - info.version.first - mPadding, top); } @@ -245,6 +247,7 @@ public: private: gcn::Color mHighlightColor; gcn::Color mNotSupportedColor; + gcn::Color mNotSupportedColor2; }; diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 1077dc1ff..99d35bb69 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -889,6 +889,7 @@ static int readColorType(const std::string &type) "ARMS", "AMMO", "SERVER_VERSION_NOT_SUPPORTED", + "SERVER_VERSION_NOT_SUPPORTED_OUTLINE", "WARNING", "WARNING_OUTLINE", "CHARM", diff --git a/src/gui/theme.h b/src/gui/theme.h index 7cc5ce592..47b4a8cb8 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -329,6 +329,7 @@ class Theme final : public Palette, public ConfigListener ARMS, AMMO, SERVER_VERSION_NOT_SUPPORTED, + SERVER_VERSION_NOT_SUPPORTED_OUTLINE, WARNING, WARNING_OUTLINE, CHARM, |