Skip to content

Commit d9f4762

Browse files
Setting slider handle.
Stolen from PR overte-org#1422. Signed-off-by: armored-dragon <[email protected]>
1 parent d5f0479 commit d9f4762

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

scripts/system/settings/qml/SettingSlider.qml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,17 @@ Item {
6565
handle: Rectangle {
6666
x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
6767
y: slider.topPadding + slider.availableHeight / 2 - height / 2
68-
implicitWidth: 5
69-
implicitHeight: 20
70-
color: "#5153bd"
68+
implicitWidth: 20
69+
implicitHeight: 40
70+
color: "black"
71+
72+
Rectangle {
73+
width: 16
74+
height: 36
75+
color: "gray"
76+
anchors.horizontalCenter: parent.horizontalCenter;
77+
anchors.verticalCenter: parent.verticalCenter;
78+
}
7179
}
7280

7381
background: Rectangle {

scripts/system/settings/settings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
// TODO: Fullscreen display?
1515
// TODO: Replace bool setting with switch?
16-
// FIXME: Setting slider handle
1716
// TODO: Setting slider incorrect radius around filled background?
1817
// FIXME: Combobox overflows text onto arrow visual
1918

0 commit comments

Comments
 (0)