summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shoplistbox.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/widgets/shoplistbox.cpp
parentf57b683f8f9909ba7787c33a4953869a2ce04a5c (diff)
downloadplus-07121956f882dce22235868a25e0c2df96fb828a.tar.gz
plus-07121956f882dce22235868a25e0c2df96fb828a.tar.bz2
plus-07121956f882dce22235868a25e0c2df96fb828a.tar.xz
plus-07121956f882dce22235868a25e0c2df96fb828a.zip
Move theme colors enum into separate file.
Diffstat (limited to 'src/gui/widgets/shoplistbox.cpp')
-rw-r--r--src/gui/widgets/shoplistbox.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index a5e5937ef..788a493a9 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -47,14 +47,14 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
ListBox(widget, listModel, "shoplistbox.xml"),
mPlayerMoney(0),
mShopItems(nullptr),
- mBackgroundColor(getThemeColor(Theme::BACKGROUND)),
- mWarningColor(getThemeColor(Theme::SHOP_WARNING)),
+ mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND)),
+ mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)),
mPriceCheck(true),
mProtectItems(false)
{
mRowHeight = getFont()->getHeight();
- mHighlightColor = getThemeColor(Theme::HIGHLIGHT);
- mForegroundColor = getThemeColor(Theme::LISTBOX);
+ mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT);
+ mForegroundColor = getThemeColor(ThemeColorId::LISTBOX);
}
ShopListBox::ShopListBox(const Widget2 *const widget,
@@ -63,14 +63,14 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
ListBox(widget, listModel, "shoplistbox.xml"),
mPlayerMoney(0),
mShopItems(shopListModel),
- mBackgroundColor(getThemeColor(Theme::BACKGROUND)),
- mWarningColor(getThemeColor(Theme::SHOP_WARNING)),
+ mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND)),
+ mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)),
mPriceCheck(true),
mProtectItems(false)
{
mRowHeight = std::max(getFont()->getHeight(), ITEM_ICON_SIZE);
- mHighlightColor = getThemeColor(Theme::HIGHLIGHT);
- mForegroundColor = getThemeColor(Theme::LISTBOX);
+ mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT);
+ mForegroundColor = getThemeColor(ThemeColorId::LISTBOX);
}
void ShopListBox::setPlayersMoney(const int money)