Index: sources/gui/qml/dialogs/ConfirmDialog.qml =================================================================== diff -u -rf8e37a0cbb537edceebee7a7c5f2676f497d1e26 -rca05e940ea4a0c567acb05c4c8777dea079b0f08 --- sources/gui/qml/dialogs/ConfirmDialog.qml (.../ConfirmDialog.qml) (revision f8e37a0cbb537edceebee7a7c5f2676f497d1e26) +++ sources/gui/qml/dialogs/ConfirmDialog.qml (.../ConfirmDialog.qml) (revision ca05e940ea4a0c567acb05c4c8777dea079b0f08) @@ -34,7 +34,12 @@ property alias cancelText : _cancelTouch.textString property alias cancelVisible : _cancelTouch.visible property bool autoClose : true + property int messageTextVerticalOffset : Variables.defaultMargin * -3 + property int footerBottomMargin : Variables.notificationHeight + Variables.minVGap + height : Variables.smallDialogHeight + width : Variables.smallDialogWidth + function footerUpdate() { _footer.update() } @@ -44,30 +49,43 @@ 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: _root.messageTextVerticalOffset// adjust text up to add more space from bottom buttons 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 + anchors.bottomMargin : _root.footerBottomMargin + + childrenWidth: Variables.defaultButtonWidth children: [ TouchRect { id : _cancelTouch - textString : qsTr("CANCEL") + textString : qsTr("Cancel") + height : Variables.defaultButtonHeight + isDefault : true + text.font.pixelSize : Fonts.fontPixelConfirm + text.font.weight : Font.Medium + 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() }