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") color: UM.Theme.getColor("text")
elide: Text.ElideRight elide: Text.ElideRight
} }
Label UM.TooltipArea
{ {
text: "(Dismiss)" width: childrenRect.width;
font: UM.Theme.getFont("small") 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.right: parent.right
anchors.verticalCenter: packageIcon.verticalCenter anchors.verticalCenter: packageIcon.verticalCenter
color: UM.Theme.getColor("text") Label
MouseArea
{ {
anchors.fill: parent text: "(Dismiss)"
onClicked: toolbox.dismissIncompatiblePackage(model.package_id) font: UM.Theme.getFont("small")
color: UM.Theme.getColor("text")
MouseArea
{
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: toolbox.dismissIncompatiblePackage(model.package_id)
}
} }
} }
} }