summaryrefslogtreecommitdiffstats
path: root/basicsuite/mediaplayer/VolumeControl.qml
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/mediaplayer/VolumeControl.qml')
-rw-r--r--basicsuite/mediaplayer/VolumeControl.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/basicsuite/mediaplayer/VolumeControl.qml b/basicsuite/mediaplayer/VolumeControl.qml
index 4369d04..ab8bec8 100644
--- a/basicsuite/mediaplayer/VolumeControl.qml
+++ b/basicsuite/mediaplayer/VolumeControl.qml
@@ -59,7 +59,6 @@ Item {
property alias volume: volumeSlider.value
property bool muted: root.volume == 0.0
property bool volumeItemUp: volumeItem.y == (volumeItem.height + volumeItem.height * 0.05)
-
//Volume Controls
QtButton{
id: toggleVolumeButton
@@ -85,7 +84,7 @@ Item {
volumeItem.opacity = 0;
if (volumeItem.y === 0)
- volumeItem.y -= (volumeItem.height + volumeItem.height * 0.05);
+ volumeItem.y -= (volumeItem.height + itemMargin);
else if (volumeItem !== 0)
volumeItem.y = 0;
}
@@ -121,7 +120,7 @@ Item {
Slider {
id: volumeSlider
anchors.bottom: muteVolumeButton.top
- anchors.bottomMargin: parent.height * 0.05
+ anchors.bottomMargin: itemMargin
anchors.top: parent.top
anchors.horizontalCenter: muteVolumeButton.horizontalCenter
orientation: Qt.Vertical