Index: sources/gui/qml/components/CloseButton.qml =================================================================== diff -u -r16a8f25568b4636ebc31e76c86a8031940cc4ad7 -r89be2d248cac3f748b704cd62408cf8911991039 --- sources/gui/qml/components/CloseButton.qml (.../CloseButton.qml) (revision 16a8f25568b4636ebc31e76c86a8031940cc4ad7) +++ sources/gui/qml/components/CloseButton.qml (.../CloseButton.qml) (revision 89be2d248cac3f748b704cd62408cf8911991039) @@ -19,27 +19,25 @@ // Project import "qrc:/globals" -Rectangle { id : _root +Item { id : _root signal clicked() - width : 50 - height : 50 - color : "transparent" - opacity : 1 + width : Variables.iconsDiameter + height : Variables.iconsDiameter anchors { top : parent.top - left : parent.left + right : parent.right margins : 35 } Image { id : _image source : "qrc:/images/iClose" - width : Variables.iconsDiameter - height : Variables.iconsDiameter - anchors.centerIn: parent + fillMode: Image.PreserveAspectFit + anchors.fill: parent } MouseArea { - anchors.fill: parent + anchors.fill : parent + anchors.margins : -25 // create a larger hitbox for the touch area onClicked : { _root.clicked() }