mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 10:15:54 +08:00
Add indicator arrow to slider
CURA-9793
This commit is contained in:
parent
f4e7829e0b
commit
a470a6c333
@ -80,6 +80,26 @@ RowLayout
|
|||||||
border.width: UM.Theme.getSize("wide_lining").height
|
border.width: UM.Theme.getSize("wide_lining").height
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UM.PointingRectangle
|
||||||
|
{
|
||||||
|
arrowSize: UM.Theme.getSize("button_tooltip_arrow").width
|
||||||
|
width: childrenRect.width
|
||||||
|
height: childrenRect.height
|
||||||
|
target: Qt.point(handleButton.x + handleButton.width / 2, handleButton.y + handleButton.height / 2)
|
||||||
|
x: handleButton.x - width / 2 + handleButton.width / 2
|
||||||
|
y: handleButton.y - height - UM.Theme.getSize("button_tooltip_arrow").height - UM.Theme.getSize("narrow_margin").height
|
||||||
|
color: UM.Theme.getColor("tooltip");
|
||||||
|
|
||||||
|
UM.Label
|
||||||
|
{
|
||||||
|
text: `${infillSlider.value}%`
|
||||||
|
horizontalAlignment: TextInput.AlignHCenter
|
||||||
|
leftPadding: UM.Theme.getSize("narrow_margin").width
|
||||||
|
rightPadding: UM.Theme.getSize("narrow_margin").width
|
||||||
|
color: UM.Theme.getColor("tooltip_text");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: infillSlider
|
target: infillSlider
|
||||||
|
Loading…
x
Reference in New Issue
Block a user