less groowe width rather reposition of handle
BUG:332587
This commit is contained in:
parent
144026951e
commit
f3aed6ac4a
@ -180,8 +180,8 @@ Item {
|
|||||||
value: 0
|
value: 0
|
||||||
stepSize: 0.0
|
stepSize: 0.0
|
||||||
inverted: false
|
inverted: false
|
||||||
positionAtMinimum: -handle.width/2
|
positionAtMinimum: 0
|
||||||
positionAtMaximum: contents.width - handle.width/2
|
positionAtMaximum: contents.width - handle.width
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaCore.Svg {
|
PlasmaCore.Svg {
|
||||||
@ -198,6 +198,8 @@ Item {
|
|||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
|
leftMargin: handle.width/4
|
||||||
|
rightMargin: handle.width/4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PlasmaCore.FrameSvgItem {
|
PlasmaCore.FrameSvgItem {
|
||||||
@ -205,8 +207,8 @@ Item {
|
|||||||
imagePath: "widgets/slider"
|
imagePath: "widgets/slider"
|
||||||
prefix: "groove-highlight"
|
prefix: "groove-highlight"
|
||||||
height: groove.height
|
height: groove.height
|
||||||
width: inverted ? groove.width - handle.x : fakeHandle.x + handle.width/2
|
width: inverted ? groove.width - handle.x : fakeHandle.x + handle.width/4
|
||||||
x: inverted ? handle.x : 0
|
x: inverted ? handle.x : handle.width/4
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
//use the same animation when resizing a slider as moving the slider this keeps it in line when using key shortcuts
|
//use the same animation when resizing a slider as moving the slider this keeps it in line when using key shortcuts
|
||||||
|
Loading…
Reference in New Issue
Block a user