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/dropdown.cpp | |
parent | 35d796b927447760772d2720a221e21fdf9fd10e (diff) | |
download | manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.gz manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.bz2 manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.tar.xz manaverse-52039744fa2e5e116548e5236cd8ba5f5d81702a.zip |
Remove default parameters from widget2.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index cb9eef73d..0a42404a7 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -65,8 +65,8 @@ DropDown::DropDown(const Widget2 *const widget, FocusListener(), SelectionListener(), mPopup(CREATEWIDGETR(PopupList, this, listModel, extended, modal)), - mShadowColor(getThemeColor(ThemeColorId::DROPDOWN_SHADOW)), - mHighlightColor(getThemeColor(ThemeColorId::HIGHLIGHT)), + mShadowColor(getThemeColor(ThemeColorId::DROPDOWN_SHADOW, 255U)), + mHighlightColor(getThemeColor(ThemeColorId::HIGHLIGHT, 255U)), mPadding(1), mImagePadding(2), mSpacing(0), @@ -79,7 +79,7 @@ DropDown::DropDown(const Widget2 *const widget, { mAllowLogic = false; mFrameSize = 2; - mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE); + mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE, 255U); mPopup->setHeight(100); @@ -136,10 +136,11 @@ DropDown::DropDown(const Widget2 *const widget, addFocusListener(this); adjustHeight(); -// mPopup->setForegroundColorAll(getThemeColor(ThemeColorId::DROPDOWN), -// getThemeColor(ThemeColorId::DROPDOWN_OUTLINE)); - mForegroundColor = getThemeColor(ThemeColorId::DROPDOWN); - mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE); +// mPopup->setForegroundColorAll(getThemeColor(ThemeColorId::DROPDOWN, +// 255U), +// getThemeColor(ThemeColorId::DROPDOWN_OUTLINE, 255U)); + mForegroundColor = getThemeColor(ThemeColorId::DROPDOWN, 255U); + mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE, 255U); if (!eventId.empty()) setActionEventId(eventId); |