diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-27 03:30:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-27 03:30:58 +0300 |
commit | 003043714367009efaf07015cc63a901ae2ee47c (patch) | |
tree | f441091a46ac07419977a0dba4cfd6b5ceab667b /src/gui/widgets/dropdown.cpp | |
parent | 916a3d76da98d078a807044c43d1a70bc146ba70 (diff) | |
download | plus-003043714367009efaf07015cc63a901ae2ee47c.tar.gz plus-003043714367009efaf07015cc63a901ae2ee47c.tar.bz2 plus-003043714367009efaf07015cc63a901ae2ee47c.tar.xz plus-003043714367009efaf07015cc63a901ae2ee47c.zip |
Remove default parameters from theme.
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r-- | src/gui/widgets/dropdown.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index 7e9de9b53..1f8b54bc1 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -89,7 +89,10 @@ DropDown::DropDown(const Widget2 *const widget, // Load the background skin for (int i = 0; i < 2; i ++) { - Skin *const skin = theme->load(dropdownFiles[i], "dropdown.xml"); + Skin *const skin = theme->load(dropdownFiles[i], + "dropdown.xml", + true, + theme->getThemePath()); if (skin != nullptr) { if (i == 0) @@ -119,7 +122,7 @@ DropDown::DropDown(const Widget2 *const widget, } // get the border skin - theme->loadRect(skinRect, "dropdown_background.xml", ""); + theme->loadRect(skinRect, "dropdown_background.xml", "", 0, 8); } instances++; @@ -179,7 +182,7 @@ DropDown::~DropDown() if (theme != nullptr) { theme->unload(mSkin); - Theme::unloadRect(skinRect); + Theme::unloadRect(skinRect, 0, 8); } } } |