mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 17:24:21 +08:00
Apply style to rotate-tool tooltip
See https://github.com/Ultimaker/Cura/issues/685 CURA-1143
This commit is contained in:
parent
4ad88f3498
commit
a32c00141a
@ -525,17 +525,22 @@ UM.MainWindow
|
|||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
x: base.mouseX + UM.Theme.getSize("default_margin").width;
|
x: base.mouseX + UM.Theme.getSize("default_margin").width
|
||||||
y: base.mouseY + UM.Theme.getSize("default_margin").height;
|
y: base.mouseY + UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
width: childrenRect.width;
|
width: childrenRect.width + UM.Theme.getSize("default_margin").width
|
||||||
height: childrenRect.height;
|
height: childrenRect.height;
|
||||||
|
color: UM.Theme.getColor("tooltip")
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: UM.ActiveTool.properties.getValue("Rotation") != undefined ? "%1°".arg(UM.ActiveTool.properties.getValue("Rotation")) : "";
|
id: rotationLabel
|
||||||
|
text: UM.ActiveTool.properties.getValue("Rotation") != undefined ? "%1°".arg(UM.ActiveTool.properties.getValue("Rotation")) : ""
|
||||||
|
color: UM.Theme.getColor("tooltip_text")
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
visible: UM.ActiveTool.valid && UM.ActiveTool.properties.Rotation != undefined;
|
visible: rotationLabel.text != "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user