2025-10-11 02:30:58 +02:00
|
|
|
import QtQuick 6.8
|
2025-10-12 03:10:14 +02:00
|
|
|
import QtQuick.Controls 6.8
|
|
|
|
|
import QtQuick.Controls.Basic 6.8
|
2025-10-11 02:30:58 +02:00
|
|
|
|
2025-10-12 03:10:14 +02:00
|
|
|
Slider {
|
2025-10-11 02:30:58 +02:00
|
|
|
snapMode: Slider.SnapAlways
|
|
|
|
|
|
|
|
|
|
implicitWidth: 130
|
|
|
|
|
implicitHeight: 20
|
|
|
|
|
|
2025-10-14 13:36:21 +02:00
|
|
|
// OpacityAnimator on opacity{
|
|
|
|
|
// from: 0.7
|
|
|
|
|
// to: 1
|
|
|
|
|
// duration: 200
|
|
|
|
|
// target: parent
|
|
|
|
|
// running: parent.hovered
|
|
|
|
|
// }
|
|
|
|
|
// OpacityAnimator on opacity{
|
|
|
|
|
// from: 1
|
|
|
|
|
// to: 0.7
|
|
|
|
|
// duration: 200
|
|
|
|
|
// target: parent
|
|
|
|
|
// running: !parent.hovered
|
|
|
|
|
// }
|
2025-10-11 02:30:58 +02:00
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
|
color: "#555"
|
|
|
|
|
radius: 5
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handle: Rectangle {
|
2025-10-11 17:55:56 +02:00
|
|
|
x: parent.leftPadding + parent.visualPosition * (parent.availableWidth - width)
|
|
|
|
|
y: parent.topPadding + parent.availableHeight / 2 - height / 2
|
2025-10-11 02:30:58 +02:00
|
|
|
width: 20
|
|
|
|
|
height: 20
|
|
|
|
|
radius: 10
|
|
|
|
|
color: Colors.primary
|
2025-10-13 13:30:03 +02:00
|
|
|
|
|
|
|
|
border.color: "#999"
|
|
|
|
|
border.width: parent.focused ? 3 : 0
|
2025-10-11 02:30:58 +02:00
|
|
|
}
|
|
|
|
|
}
|