use StatusIconButton component to avoid pixelized close button
This commit is contained in:
parent
efe550ccd5
commit
38be2889cd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue