qml: slider render voids
This commit is contained in:
@@ -172,7 +172,7 @@ ElDialog {
|
|||||||
width: swapslider.availableWidth
|
width: swapslider.availableWidth
|
||||||
height: implicitHeight
|
height: implicitHeight
|
||||||
radius: 2
|
radius: 2
|
||||||
color: Color.transparent(control.Material.accentColor, 0.33)
|
color: Color.transparent(Material.accentColor, 0.33)
|
||||||
|
|
||||||
// full width somehow misaligns with handle, define rangeWidth
|
// full width somehow misaligns with handle, define rangeWidth
|
||||||
property int rangeWidth: width - swapslider.leftPadding
|
property int rangeWidth: width - swapslider.leftPadding
|
||||||
@@ -189,6 +189,15 @@ ElDialog {
|
|||||||
radius: 2
|
radius: 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
x: - (swapslider.parent.width - 2 * constants.paddingXXLarge) * swaphelper.leftVoid
|
||||||
|
z: -1
|
||||||
|
// width makes rectangle go outside the control, into the Layout margins
|
||||||
|
width: parent.width + (swapslider.parent.width - 2 * constants.paddingXXLarge) * swaphelper.rightVoid
|
||||||
|
height: parent.height
|
||||||
|
color: Material.sliderDisabledColor
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
x: swapslider.scenter * parent.rangeWidth
|
x: swapslider.scenter * parent.rangeWidth
|
||||||
y: -4
|
y: -4
|
||||||
|
|||||||
Reference in New Issue
Block a user