summaryrefslogtreecommitdiff
path: root/src/gui/windows/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 15:04:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 15:08:24 +0300
commit07121956f882dce22235868a25e0c2df96fb828a (patch)
tree5078133e95d7b55c4811e09c9dc4f53261e62fe9 /src/gui/windows/tradewindow.cpp
parentf57b683f8f9909ba7787c33a4953869a2ce04a5c (diff)
downloadmv-07121956f882dce22235868a25e0c2df96fb828a.tar.gz
mv-07121956f882dce22235868a25e0c2df96fb828a.tar.bz2
mv-07121956f882dce22235868a25e0c2df96fb828a.tar.xz
mv-07121956f882dce22235868a25e0c2df96fb828a.zip
Move theme colors enum into separate file.
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r--src/gui/windows/tradewindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 6c48127c5..11d150f30 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -174,15 +174,15 @@ void TradeWindow::setMoney(const int amount)
else
{
mMoneyLabel->setForegroundColorAll(getThemeColor(
- static_cast<int>(Theme::WARNING)), getThemeColor(
- static_cast<int>(Theme::WARNING_OUTLINE)));
+ static_cast<int>(ThemeColorId::WARNING)), getThemeColor(
+ static_cast<int>(ThemeColorId::WARNING_OUTLINE)));
}
}
else
{
mMoneyLabel->setForegroundColorAll(getThemeColor(
- static_cast<int>(Theme::LABEL)), getThemeColor(
- static_cast<int>(Theme::LABEL_OUTLINE)));
+ static_cast<int>(ThemeColorId::LABEL)), getThemeColor(
+ static_cast<int>(ThemeColorId::LABEL_OUTLINE)));
mGotMaxMoney = amount;
}
@@ -278,8 +278,8 @@ void TradeWindow::reset()
mMoneyField->setEnabled(true);
mMoneyField->setText("");
mMoneyLabel->setForegroundColorAll(getThemeColor(
- static_cast<int>(Theme::LABEL)), getThemeColor(
- static_cast<int>(Theme::LABEL_OUTLINE)));
+ static_cast<int>(ThemeColorId::LABEL)), getThemeColor(
+ static_cast<int>(ThemeColorId::LABEL_OUTLINE)));
mAddButton->setEnabled(true);
mMoneyChangeButton->setEnabled(true);
mGotMoney = 0;
@@ -449,8 +449,8 @@ void TradeWindow::clear()
mGotMoney = 0;
mGotMaxMoney = 0;
mMoneyLabel->setForegroundColorAll(getThemeColor(
- static_cast<int>(Theme::LABEL)), getThemeColor(
- static_cast<int>(Theme::LABEL_OUTLINE)));
+ static_cast<int>(ThemeColorId::LABEL)), getThemeColor(
+ static_cast<int>(ThemeColorId::LABEL_OUTLINE)));
}
void TradeWindow::addAutoItem(const std::string &nick, Item* const item,