diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-24 22:36:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-24 22:36:00 +0300 |
commit | 52039744fa2e5e116548e5236cd8ba5f5d81702a (patch) | |
tree | d367514cfc2a00c0b1f181dbfb5a8c3b0ca5785d /src/gui/widgets/shoplistbox.cpp | |
parent | 35d796b927447760772d2720a221e21fdf9fd10e (diff) | |
download | plus-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.gz plus-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.bz2 plus-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.xz plus-52039744fa2e5e116548e5236cd8ba5f5d81702a.zip |
Remove default parameters from widget2.
Diffstat (limited to 'src/gui/widgets/shoplistbox.cpp')
-rw-r--r-- | src/gui/widgets/shoplistbox.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp index ea3f46e87..0f527c3c9 100644 --- a/src/gui/widgets/shoplistbox.cpp +++ b/src/gui/widgets/shoplistbox.cpp @@ -54,15 +54,15 @@ ShopListBox::ShopListBox(const Widget2 *const widget, ListBox(widget, listModel, "shoplistbox.xml"), mPlayerMoney(0), mShopItems(nullptr), - mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)), + mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING, 255U)), mType(type), mPriceCheck(true), mProtectItems(false) { mRowHeight = getFont()->getHeight(); - mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT); - mForegroundColor = getThemeColor(ThemeColorId::LISTBOX); - mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND); + mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT, 255U); + mForegroundColor = getThemeColor(ThemeColorId::LISTBOX, 255U); + mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND, 255U); } ShopListBox::ShopListBox(const Widget2 *const widget, @@ -72,15 +72,15 @@ ShopListBox::ShopListBox(const Widget2 *const widget, ListBox(widget, listModel, "shoplistbox.xml"), mPlayerMoney(0), mShopItems(shopListModel), - mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)), + mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING, 255U)), mType(type), mPriceCheck(true), mProtectItems(false) { mRowHeight = std::max(getFont()->getHeight(), ITEM_ICON_SIZE); - mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT); - mForegroundColor = getThemeColor(ThemeColorId::LISTBOX); - mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND); + mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT, 255U); + mForegroundColor = getThemeColor(ThemeColorId::LISTBOX, 255U); + mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND, 255U); } void ShopListBox::setPlayersMoney(const int money) |