From 003043714367009efaf07015cc63a901ae2ee47c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Dec 2017 03:30:58 +0300 Subject: Remove default parameters from theme. --- src/gui/widgets/dropdown.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/dropdown.cpp') 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); } } } -- cgit v1.2.3-60-g2f50