use slider from ui-toolkit (per request from Mukul)

This commit is contained in:
Alexander Ivash 2018-05-05 18:58:02 +03:00
parent de81f30407
commit 566074c86f

View file

@ -70,35 +70,12 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
Slider {
HifiControlsUit.Slider {
id: slider
from: 0
to: 100
anchors.verticalCenter: parent.verticalCenter
Layout.fillWidth: true
handle: Rectangle {
width: 18
height: 18
color: 'white'
radius: 9
border.width: 1
border.color: 'black'
x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
y: slider.topPadding + slider.availableHeight / 2 - height / 2
}
background: Rectangle {
x: slider.leftPadding
y: slider.topPadding + slider.availableHeight / 2 - height / 2
implicitWidth: 200
implicitHeight: 18
width: slider.availableWidth
height: implicitHeight
radius: 9
border.color: 'black'
border.width: 1
color: '#f2f2f2'
}
}
HiFiGlyphs {