Index: sources/gui/qml/components/CloseButton.qml =================================================================== diff -u -r89f5f4202db6669435cbed004a2cf3850602d29e -r89be2d248cac3f748b704cd62408cf8911991039 --- sources/gui/qml/components/CloseButton.qml (.../CloseButton.qml) (revision 89f5f4202db6669435cbed004a2cf3850602d29e) +++ sources/gui/qml/components/CloseButton.qml (.../CloseButton.qml) (revision 89be2d248cac3f748b704cd62408cf8911991039) @@ -19,13 +19,11 @@ // 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 @@ -34,12 +32,12 @@ } 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() }