From 002656b278ab1c2e09bca8f6ffd2d5c42d57b09c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 May 2013 16:45:06 +0300 Subject: improved some set color code in trade window. --- src/gui/tradewindow.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/gui') 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(Theme::WARNING))); - mMoneyLabel->setForegroundColor2(getThemeColor( + mMoneyLabel->setForegroundColorAll(getThemeColor( + static_cast(Theme::WARNING)), getThemeColor( static_cast(Theme::WARNING_OUTLINE))); } } else { - mMoneyLabel->setForegroundColor(getThemeColor( - static_cast(Theme::LABEL))); - mMoneyLabel->setForegroundColor2(getThemeColor( + mMoneyLabel->setForegroundColorAll(getThemeColor( + static_cast(Theme::LABEL)), getThemeColor( static_cast(Theme::LABEL_OUTLINE))); mGotMaxMoney = amount; } @@ -246,9 +244,8 @@ void TradeWindow::reset() setMoney(0); mMoneyField->setEnabled(true); mMoneyField->setText(""); - mMoneyLabel->setForegroundColor(getThemeColor( - static_cast(Theme::LABEL))); - mMoneyLabel->setForegroundColor2(getThemeColor( + mMoneyLabel->setForegroundColorAll(getThemeColor( + static_cast(Theme::LABEL)), getThemeColor( static_cast(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(Theme::LABEL))); - mMoneyLabel->setForegroundColor2(getThemeColor( + mMoneyLabel->setForegroundColorAll(getThemeColor( + static_cast(Theme::LABEL)), getThemeColor( static_cast(Theme::LABEL_OUTLINE))); } -- cgit v1.2.3-70-g09d2