Added a Tooltip over the Dismiss button. Changed the cursor on hover.

This commit is contained in:
Dimitriovski 2020-01-13 11:44:23 +01:00
parent 071cf5517e
commit 7359492e11
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D

View file

@ -125,17 +125,24 @@ UM.Dialog{
color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
Label
UM.TooltipArea
{
text: "(Dismiss)"
font: UM.Theme.getFont("small")
width: childrenRect.width;
height: childrenRect.height;
text: catalog.i18nc("@info:tooltip", "Dismisses the package and won't be shown in this dialog anymore")
anchors.right: parent.right
anchors.verticalCenter: packageIcon.verticalCenter
color: UM.Theme.getColor("text")
MouseArea
Label
{
anchors.fill: parent
onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
text: "(Dismiss)"
font: UM.Theme.getFont("small")
color: UM.Theme.getColor("text")
MouseArea
{
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
}
}
}
}