styled slider
This commit is contained in:
parent
a3ef488434
commit
01f4ecf90f
2 changed files with 39 additions and 0 deletions
26
components/StyledSlider.qml
Normal file
26
components/StyledSlider.qml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import qs.config
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Slider {
|
||||
id: control
|
||||
|
||||
background: Rectangle {
|
||||
x: control.leftPadding
|
||||
y: control.topPadding + control.availableHeight / 2 - height / 2
|
||||
implicitWidth: 200
|
||||
implicitHeight: 24
|
||||
width: control.availableWidth
|
||||
height: implicitHeight
|
||||
radius: 8
|
||||
color: Theme.palette.base100
|
||||
|
||||
Rectangle {
|
||||
width: control.visualPosition * parent.width
|
||||
height: parent.height
|
||||
color: Theme.palette.primary
|
||||
radius: 8
|
||||
}
|
||||
}
|
||||
handle: null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue