summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-04 15:31:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-04 15:31:29 +0300
commitfee1c7eb49c61afdab1ddb64bc2dfa7a22d6cf35 (patch)
tree7c0dd714bc213e6fb984e1b6d39ddf161c455778
parent1e760aaa1ca5b56b6c5355ab8c8d01ed5be4cfb5 (diff)
downloadplus-fee1c7eb49c61afdab1ddb64bc2dfa7a22d6cf35.tar.gz
plus-fee1c7eb49c61afdab1ddb64bc2dfa7a22d6cf35.tar.bz2
plus-fee1c7eb49c61afdab1ddb64bc2dfa7a22d6cf35.tar.xz
plus-fee1c7eb49c61afdab1ddb64bc2dfa7a22d6cf35.zip
add outline support for warning color.
-rw-r--r--src/gui/theme.cpp1
-rw-r--r--src/gui/theme.h1
-rw-r--r--src/gui/tradewindow.cpp2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 556b17932..1f31b1089 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -887,6 +887,7 @@ static int readColorType(const std::string &type)
"AMMO",
"SERVER_VERSION_NOT_SUPPORTED",
"WARNING",
+ "WARNING_OUTLINE",
"CHARM",
"PLAYER_ADVANCED",
"BUBBLE_NAME",
diff --git a/src/gui/theme.h b/src/gui/theme.h
index 5fc5f4595..2cb6fec22 100644
--- a/src/gui/theme.h
+++ b/src/gui/theme.h
@@ -327,6 +327,7 @@ class Theme final : public Palette, public ConfigListener
AMMO,
SERVER_VERSION_NOT_SUPPORTED,
WARNING,
+ WARNING_OUTLINE,
CHARM,
PLAYER_ADVANCED,
BUBBLE_NAME,
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index 5410d60dd..9c36c8f6e 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -168,6 +168,8 @@ void TradeWindow::setMoney(const int amount)
{
mMoneyLabel->setForegroundColor(getThemeColor(
static_cast<int>(Theme::WARNING)));
+ mMoneyLabel->setForegroundColor2(getThemeColor(
+ static_cast<int>(Theme::WARNING_OUTLINE)));
}
}
else