mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:29:00 +08:00
Add tooltip to object list
Contributes to issue CURA-6666.
This commit is contained in:
parent
f2fa8fd1f5
commit
cd4f6ff3f4
@ -51,5 +51,22 @@ Button
|
|||||||
border.color: objectItemButton.checked ? UM.Theme.getColor("primary") : "transparent"
|
border.color: objectItemButton.checked ? UM.Theme.getColor("primary") : "transparent"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ToolTip
|
||||||
|
{
|
||||||
|
visible: hovered
|
||||||
|
delay: 1000
|
||||||
|
|
||||||
|
contentItem: Text
|
||||||
|
{
|
||||||
|
text: objectItemButton.text
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
color: UM.Theme.getColor("tooltip_text")
|
||||||
|
}
|
||||||
|
background: Rectangle
|
||||||
|
{
|
||||||
|
color: UM.Theme.getColor("tooltip")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onClicked: Cura.SceneController.changeSelection(index)
|
onClicked: Cura.SceneController.changeSelection(index)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user