Setting slider handle.

Stolen from PR #1422.

Signed-off-by: armored-dragon <publicmail@armoreddragon.com>
This commit is contained in:
armored-dragon 2025-04-12 20:26:37 -05:00
parent d5f0479e7e
commit d9f4762109
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B
2 changed files with 11 additions and 4 deletions

View file

@ -65,9 +65,17 @@ Item {
handle: Rectangle {
x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
y: slider.topPadding + slider.availableHeight / 2 - height / 2
implicitWidth: 5
implicitHeight: 20
color: "#5153bd"
implicitWidth: 20
implicitHeight: 40
color: "black"
Rectangle {
width: 16
height: 36
color: "gray"
anchors.horizontalCenter: parent.horizontalCenter;
anchors.verticalCenter: parent.verticalCenter;
}
}
background: Rectangle {

View file

@ -13,7 +13,6 @@
// TODO: Fullscreen display?
// TODO: Replace bool setting with switch?
// FIXME: Setting slider handle
// TODO: Setting slider incorrect radius around filled background?
// FIXME: Combobox overflows text onto arrow visual