summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 22:36:00 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 22:36:00 +0300
commit52039744fa2e5e116548e5236cd8ba5f5d81702a (patch)
treed367514cfc2a00c0b1f181dbfb5a8c3b0ca5785d /src/gui/widgets/listbox.cpp
parent35d796b927447760772d2720a221e21fdf9fd10e (diff)
downloadplus-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/listbox.cpp')
-rw-r--r--src/gui/widgets/listbox.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/widgets/listbox.cpp b/src/gui/widgets/listbox.cpp
index 0bf590f6b..eabf26e19 100644
--- a/src/gui/widgets/listbox.cpp
+++ b/src/gui/widgets/listbox.cpp
@@ -95,10 +95,11 @@ ListBox::ListBox(const Widget2 *const widget,
mListModel(listModel),
mWrappingEnabled(false),
mSelectionListeners(),
- mHighlightColor(getThemeColor(ThemeColorId::HIGHLIGHT)),
- mForegroundSelectedColor(getThemeColor(ThemeColorId::LISTBOX_SELECTED)),
+ mHighlightColor(getThemeColor(ThemeColorId::HIGHLIGHT, 255U)),
+ mForegroundSelectedColor(getThemeColor(ThemeColorId::LISTBOX_SELECTED,
+ 255U)),
mForegroundSelectedColor2(getThemeColor(
- ThemeColorId::LISTBOX_SELECTED_OUTLINE)),
+ ThemeColorId::LISTBOX_SELECTED_OUTLINE, 255U)),
mOldSelected(-1),
mPadding(0),
mPressedIndex(-2),
@@ -113,8 +114,8 @@ ListBox::ListBox(const Widget2 *const widget,
addMouseListener(this);
addKeyListener(this);
- mForegroundColor = getThemeColor(ThemeColorId::LISTBOX);
- mForegroundColor2 = getThemeColor(ThemeColorId::LISTBOX_OUTLINE);
+ mForegroundColor = getThemeColor(ThemeColorId::LISTBOX, 255U);
+ mForegroundColor2 = getThemeColor(ThemeColorId::LISTBOX_OUTLINE, 255U);
if (theme != nullptr)
mSkin = theme->load(skin, "listbox.xml");