summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.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/dropdown.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/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index f46d0f282..d6ff28e43 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -64,8 +64,8 @@ DropDown::DropDown(const Widget2 *const widget,
FocusListener(),
SelectionListener(),
mPopup(new PopupList(this, listModel, extended, modal)),
- mShadowColor(getThemeColor(Theme::DROPDOWN_SHADOW)),
- mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
+ mShadowColor(getThemeColor(ThemeColorId::DROPDOWN_SHADOW)),
+ mHighlightColor(getThemeColor(ThemeColorId::HIGHLIGHT)),
mPadding(1),
mImagePadding(2),
mSpacing(0),
@@ -79,7 +79,7 @@ DropDown::DropDown(const Widget2 *const widget,
mAllowLogic = false;
mPopup->postInit();
mFrameSize = 2;
- mForegroundColor2 = getThemeColor(Theme::DROPDOWN_OUTLINE);
+ mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE);
mPopup->setHeight(100);
@@ -137,10 +137,10 @@ DropDown::DropDown(const Widget2 *const widget,
addFocusListener(this);
adjustHeight();
-// mPopup->setForegroundColorAll(getThemeColor(Theme::DROPDOWN),
-// getThemeColor(Theme::DROPDOWN_OUTLINE));
- mForegroundColor = getThemeColor(Theme::DROPDOWN);
- mForegroundColor2 = getThemeColor(Theme::DROPDOWN_OUTLINE);
+// mPopup->setForegroundColorAll(getThemeColor(ThemeColorId::DROPDOWN),
+// getThemeColor(ThemeColorId::DROPDOWN_OUTLINE));
+ mForegroundColor = getThemeColor(ThemeColorId::DROPDOWN);
+ mForegroundColor2 = getThemeColor(ThemeColorId::DROPDOWN_OUTLINE);
if (!eventId.empty())
setActionEventId(eventId);