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 height: 50
} }
SVGImage { StatusIconButton {
icon.name: "close"
id: closeImg id: closeImg
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 10 anchors.topMargin: 10
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 10 anchors.rightMargin: 10
source: "../../../img/close.svg" icon.height: 20
height: 20 icon.width: 20
width: 20 iconColor: Style.current.darkGrey
}
ColorOverlay {
anchors.fill: closeImg
source: closeImg
color: Style.current.darkGrey
} }
MouseArea { MouseArea {
anchors.fill: closeImg anchors.fill: closeImg
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor