wizard: add close button by enabling titlebar

This commit is contained in:
mmbyday 2018-12-16 19:27:27 -08:00
parent 59fc48bd8b
commit 1d5937e1e8
2 changed files with 7 additions and 3 deletions

View File

@ -55,6 +55,7 @@ Rectangle {
property bool showCloseButton: true property bool showCloseButton: true
property bool showMoneroLogo: false property bool showMoneroLogo: false
property bool small: false property bool small: false
property alias titleBarGradientImageOpacity: titleBarGradientImage.opacity
signal closeClicked signal closeClicked
signal maximizeClicked signal maximizeClicked
@ -68,6 +69,7 @@ Rectangle {
z: parent.z + 1 z: parent.z + 1
Image { Image {
id: titleBarGradientImage
anchors.fill: parent anchors.fill: parent
height: titleBar.height height: titleBar.height
width: titleBar.width width: titleBar.width

View File

@ -1274,11 +1274,13 @@ ApplicationWindow {
PropertyChanges { target: appWindow; width: (screenWidth < 930 || isAndroid || isIOS)? screenWidth : 930; } PropertyChanges { target: appWindow; width: (screenWidth < 930 || isAndroid || isIOS)? screenWidth : 930; }
PropertyChanges { target: appWindow; height: maxWindowHeight; } PropertyChanges { target: appWindow; height: maxWindowHeight; }
PropertyChanges { target: resizeArea; visible: true } PropertyChanges { target: resizeArea; visible: true }
PropertyChanges { target: titleBar; showMaximizeButton: false } PropertyChanges { target: titleBar; showMaximizeButton: true }
// PropertyChanges { target: frameArea; blocked: true } // PropertyChanges { target: frameArea; blocked: true }
PropertyChanges { target: titleBar; visible: false } PropertyChanges { target: titleBar; visible: true }
PropertyChanges { target: titleBar; y: 0 } PropertyChanges { target: titleBar; y: 0 }
PropertyChanges { target: titleBar; title: qsTr("Program setup wizard") + translationManager.emptyString } PropertyChanges { target: titleBar; showMoneroLogo: false }
PropertyChanges { target: titleBar; titleBarGradientImageOpacity: 0.2 }
PropertyChanges { target: titleBar; small: true }
PropertyChanges { target: mobileHeader; visible: false } PropertyChanges { target: mobileHeader; visible: false }
}, State { }, State {
name: "normal" name: "normal"