mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 17:45:56 +08:00
Use styled tooltip
CURA-8422
This commit is contained in:
parent
9b3103e624
commit
e39675e447
@ -18,7 +18,7 @@ Button
|
|||||||
property color backgroundColor: hovered ? UM.Theme.getColor("primary") : "transparent"
|
property color backgroundColor: hovered ? UM.Theme.getColor("primary") : "transparent"
|
||||||
Behavior on backgroundColor { ColorAnimation { duration: 200; } }
|
Behavior on backgroundColor { ColorAnimation { duration: 200; } }
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
width: UM.Theme.getSize("application_switcher_item").width
|
width: UM.Theme.getSize("application_switcher_item").width
|
||||||
height: UM.Theme.getSize("application_switcher_item").height
|
height: UM.Theme.getSize("application_switcher_item").height
|
||||||
|
|
||||||
@ -29,10 +29,11 @@ Button
|
|||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.TooltipArea
|
Cura.ToolTip
|
||||||
{
|
{
|
||||||
id: tooltip
|
id: tooltip
|
||||||
anchors.fill: parent
|
tooltipText: base.text
|
||||||
|
visible: base.hovered
|
||||||
}
|
}
|
||||||
|
|
||||||
Column
|
Column
|
||||||
|
Loading…
x
Reference in New Issue
Block a user