summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 03:30:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 03:30:58 +0300
commit003043714367009efaf07015cc63a901ae2ee47c (patch)
treef441091a46ac07419977a0dba4cfd6b5ceab667b /src/gui/widgets/playerbox.cpp
parent916a3d76da98d078a807044c43d1a70bc146ba70 (diff)
downloadplus-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/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index b6217383f..98e6e8d5a 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -79,8 +79,8 @@ PlayerBox::~PlayerBox()
if (gui != nullptr)
gui->removeDragged(this);
- Theme::unloadRect(mBackground);
- Theme::unloadRect(mSelectedBackground);
+ Theme::unloadRect(mBackground, 0, 8);
+ Theme::unloadRect(mSelectedBackground, 0, 8);
mBeing = nullptr;
}
@@ -95,7 +95,10 @@ void PlayerBox::init(std::string name, std::string selectedName)
if (name.empty())
name = "playerbox.xml";
mSkin = theme->loadSkinRect(mBackground,
- name, "playerbox_background.xml");
+ name,
+ "playerbox_background.xml",
+ 0,
+ 8);
if (mSkin != nullptr)
{
mDrawBackground = (mSkin->getOption("drawbackground") != 0);
@@ -106,7 +109,10 @@ void PlayerBox::init(std::string name, std::string selectedName)
if (selectedName.empty())
selectedName = "playerboxselected.xml";
mSelectedSkin = theme->loadSkinRect(mSelectedBackground,
- selectedName, "playerbox_background.xml");
+ selectedName,
+ "playerbox_background.xml",
+ 0,
+ 8);
}
else
{