Index: sources/gui/qml/dialogs/ConfirmDialog.qml =================================================================== diff -u -rf8e37a0cbb537edceebee7a7c5f2676f497d1e26 -re7adb742d7dd362b2deb795259694b223eea3bc0 --- sources/gui/qml/dialogs/ConfirmDialog.qml (.../ConfirmDialog.qml) (revision f8e37a0cbb537edceebee7a7c5f2676f497d1e26) +++ sources/gui/qml/dialogs/ConfirmDialog.qml (.../ConfirmDialog.qml) (revision e7adb742d7dd362b2deb795259694b223eea3bc0) @@ -35,6 +35,9 @@ property alias cancelVisible : _cancelTouch.visible property bool autoClose : true + height : Variables.smallDialogHeight + width : Variables.smallDialogWidth + function footerUpdate() { _footer.update() } @@ -44,30 +47,38 @@ height : Variables.mainMenuHeight anchors.top : parent.top anchors.topMargin : Variables.minVGap2 // Since it doesnt have border, it looks too close to top border. - clip : true + clip : true + font.weight : Font.DemiBold } TitleText { id: _messageText - anchors.centerIn : parent + anchors.centerIn : parent + anchors.verticalCenterOffset: Variables.defaultMargin * -1 width : parent.width height : Variables.mainMenuHeight * 4 // title + reason + 2*Gap clip : true text : qsTr("Are you sure?") } Footer { id: _footer - childrenWidth: 350 + anchors.horizontalCenter : parent.horizontalCenter + + childrenWidth: Variables.defaultButtonWidth children: [ TouchRect { id : _cancelTouch - textString : qsTr("CANCEL") + textString : qsTr("Cancel") + height : Variables.defaultButtonHeight onPressed : { rejected() if ( autoClose ) close() } }, - TouchRect { id : _confirmTouch - textString : qsTr("CONFIRM") - onPressed : { + ConfirmButton { id : _confirmTouch + height : Variables.defaultButtonHeight + anchors.margins : 0 + anchors.top : undefined + anchors.right : undefined + onClicked: { accepted() if ( autoClose ) close() }