summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-04 16:45:06 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-04 16:45:06 +0300
commit002656b278ab1c2e09bca8f6ffd2d5c42d57b09c (patch)
treed0be14f4b1d1f53f859030c6b48ae6543981319a /src
parent7dec8e169a09513e9bd7f840fea52491b6d17828 (diff)
downloadmanaplus-002656b278ab1c2e09bca8f6ffd2d5c42d57b09c.tar.gz
manaplus-002656b278ab1c2e09bca8f6ffd2d5c42d57b09c.tar.bz2
manaplus-002656b278ab1c2e09bca8f6ffd2d5c42d57b09c.tar.xz
manaplus-002656b278ab1c2e09bca8f6ffd2d5c42d57b09c.zip
improved some set color code in trade window.
Diffstat (limited to 'src')
-rw-r--r--src/gui/tradewindow.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index 9c36c8f6e..88dac7d55 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -166,17 +166,15 @@ void TradeWindow::setMoney(const int amount)
}
else
{
- mMoneyLabel->setForegroundColor(getThemeColor(
- static_cast<int>(Theme::WARNING)));
- mMoneyLabel->setForegroundColor2(getThemeColor(
+ mMoneyLabel->setForegroundColorAll(getThemeColor(
+ static_cast<int>(Theme::WARNING)), getThemeColor(
static_cast<int>(Theme::WARNING_OUTLINE)));
}
}
else
{
- mMoneyLabel->setForegroundColor(getThemeColor(
- static_cast<int>(Theme::LABEL)));
- mMoneyLabel->setForegroundColor2(getThemeColor(
+ mMoneyLabel->setForegroundColorAll(getThemeColor(
+ static_cast<int>(Theme::LABEL)), getThemeColor(
static_cast<int>(Theme::LABEL_OUTLINE)));
mGotMaxMoney = amount;
}
@@ -246,9 +244,8 @@ void TradeWindow::reset()
setMoney(0);
mMoneyField->setEnabled(true);
mMoneyField->setText("");
- mMoneyLabel->setForegroundColor(getThemeColor(
- static_cast<int>(Theme::LABEL)));
- mMoneyLabel->setForegroundColor2(getThemeColor(
+ mMoneyLabel->setForegroundColorAll(getThemeColor(
+ static_cast<int>(Theme::LABEL)), getThemeColor(
static_cast<int>(Theme::LABEL_OUTLINE)));
mAddButton->setEnabled(true);
mMoneyChangeButton->setEnabled(true);
@@ -420,9 +417,8 @@ void TradeWindow::clear()
mAutoAddAmount = 0;
mGotMoney = 0;
mGotMaxMoney = 0;
- mMoneyLabel->setForegroundColor(getThemeColor(
- static_cast<int>(Theme::LABEL)));
- mMoneyLabel->setForegroundColor2(getThemeColor(
+ mMoneyLabel->setForegroundColorAll(getThemeColor(
+ static_cast<int>(Theme::LABEL)), getThemeColor(
static_cast<int>(Theme::LABEL_OUTLINE)));
}