use StatusIconButton component to avoid pixelized close button

This commit is contained in:
Iuri Matias 2021-05-05 12:46:25 -04:00
parent efe550ccd5
commit 38be2889cd
1 changed files with 6 additions and 9 deletions

View File

@ -43,21 +43,18 @@ Rectangle {
height: 50
}
SVGImage {
StatusIconButton {
icon.name: "close"
id: closeImg
anchors.top: parent.top
anchors.topMargin: 10
anchors.right: parent.right
anchors.rightMargin: 10
source: "../../../img/close.svg"
height: 20
width: 20
}
ColorOverlay {
anchors.fill: closeImg
source: closeImg
color: Style.current.darkGrey
icon.height: 20
icon.width: 20
iconColor: Style.current.darkGrey
}
MouseArea {
anchors.fill: closeImg
cursorShape: Qt.PointingHandCursor