Index: sources/gui/qml/compounds/SettingsSlider.qml =================================================================== diff -u -rbea36be2766046e63c4e82539a630b5cee7ce1c6 -rb8a9627cf291b564b0fc1570f9c0a97fa6873035 --- sources/gui/qml/compounds/SettingsSlider.qml (.../SettingsSlider.qml) (revision bea36be2766046e63c4e82539a630b5cee7ce1c6) +++ sources/gui/qml/compounds/SettingsSlider.qml (.../SettingsSlider.qml) (revision b8a9627cf291b564b0fc1570f9c0a97fa6873035) @@ -1,7 +1,8 @@ - +// Qml imports import "qrc:/globals" import "qrc:/components" +// Qt import QtQuick 2.12 import QtQuick.Controls 2.15 @@ -18,12 +19,11 @@ readonly property color valueColor : Colors.dialogValueColor readonly property var valueFont : Qt.font ({ pixelSize: 28, weight: Font.DemiBold }) - readonly property int sliderMargins : Variables.defaultMargin * 3.5 - readonly property int hitboxMargins : Variables.defaultMargin * -2 + readonly property int sliderMargins : Variables.defaultMargin * 3.5 // margins added to visible background to make a larger hitbox + readonly property int hitboxMargins : Variables.defaultMargin * -2 // negative margins added to create larger hitbox for touch readonly property int knobDiameter : 20 readonly property int hitboxHeight : 70 - Image { id : _image anchors { left : parent.left @@ -45,9 +45,9 @@ Slider { id: _slider anchors { left : _image.right - leftMargin : _root.hitboxMargins // negative margins added to create larger hitbox for touch + leftMargin : _root.hitboxMargins right : _value.left - rightMargin : _root.hitboxMargins // negative margins added to create larger hitbox for touch + rightMargin : _root.hitboxMargins verticalCenter : parent.verticalCenter } @@ -66,9 +66,9 @@ anchors { verticalCenter : parent.verticalCenter left : parent.left - leftMargin : _root.sliderMargins// margins added to colored background to make a larger hitbox + leftMargin : _root.sliderMargins right : parent.right - rightMargin : _root.sliderMargins // margins added to colored background to make a larger hitbox + rightMargin : _root.sliderMargins } height : 5 // visible height radius : height