From 4b51940253b83e2cbb8bf92f9c81b0a3b0ce2664 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 May 2013 00:00:29 +0300 Subject: add outline color for not supported color in servers dialog. --- src/gui/serverdialog.cpp | 7 +++++-- src/gui/theme.cpp | 1 + src/gui/theme.h | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') 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, -- cgit v1.2.3-60-g2f50