summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/shoplistbox.cpp4
-rw-r--r--src/gui/widgets/shoplistbox.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/shoplistbox.cpp b/src/gui/widgets/shoplistbox.cpp
index 84ed09dcc..0fcce799a 100644
--- a/src/gui/widgets/shoplistbox.cpp
+++ b/src/gui/widgets/shoplistbox.cpp
@@ -54,7 +54,6 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
ListBox(widget, listModel, "shoplistbox.xml"),
mPlayerMoney(0),
mShopItems(nullptr),
- mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND)),
mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)),
mType(type),
mPriceCheck(true),
@@ -63,6 +62,7 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
mRowHeight = getFont()->getHeight();
mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT);
mForegroundColor = getThemeColor(ThemeColorId::LISTBOX);
+ mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND);
}
ShopListBox::ShopListBox(const Widget2 *const widget,
@@ -72,7 +72,6 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
ListBox(widget, listModel, "shoplistbox.xml"),
mPlayerMoney(0),
mShopItems(shopListModel),
- mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND)),
mWarningColor(getThemeColor(ThemeColorId::SHOP_WARNING)),
mType(type),
mPriceCheck(true),
@@ -81,6 +80,7 @@ ShopListBox::ShopListBox(const Widget2 *const widget,
mRowHeight = std::max(getFont()->getHeight(), ITEM_ICON_SIZE);
mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT);
mForegroundColor = getThemeColor(ThemeColorId::LISTBOX);
+ mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND);
}
void ShopListBox::setPlayersMoney(const int money)
diff --git a/src/gui/widgets/shoplistbox.h b/src/gui/widgets/shoplistbox.h
index a6462a56b..2e79d16bb 100644
--- a/src/gui/widgets/shoplistbox.h
+++ b/src/gui/widgets/shoplistbox.h
@@ -103,7 +103,6 @@ class ShopListBox final : public ListBox
*/
ShopItems *mShopItems;
- Color mBackgroundColor;
Color mWarningColor;
ShopListBoxTypeT mType;