mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 23:39:26 +02:00
Setting slider handle.
Stolen from PR #1422. Signed-off-by: armored-dragon <publicmail@armoreddragon.com>
This commit is contained in:
parent
d5f0479e7e
commit
d9f4762109
2 changed files with 11 additions and 4 deletions
|
@ -65,9 +65,17 @@ Item {
|
||||||
handle: Rectangle {
|
handle: Rectangle {
|
||||||
x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
|
x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
|
||||||
y: slider.topPadding + slider.availableHeight / 2 - height / 2
|
y: slider.topPadding + slider.availableHeight / 2 - height / 2
|
||||||
implicitWidth: 5
|
implicitWidth: 20
|
||||||
implicitHeight: 20
|
implicitHeight: 40
|
||||||
color: "#5153bd"
|
color: "black"
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: 16
|
||||||
|
height: 36
|
||||||
|
color: "gray"
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter;
|
||||||
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
// TODO: Fullscreen display?
|
// TODO: Fullscreen display?
|
||||||
// TODO: Replace bool setting with switch?
|
// TODO: Replace bool setting with switch?
|
||||||
// FIXME: Setting slider handle
|
|
||||||
// TODO: Setting slider incorrect radius around filled background?
|
// TODO: Setting slider incorrect radius around filled background?
|
||||||
// FIXME: Combobox overflows text onto arrow visual
|
// FIXME: Combobox overflows text onto arrow visual
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue