mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 21:04:32 +00:00
wizard: add close button by enabling titlebar
This commit is contained in:
parent
59fc48bd8b
commit
1d5937e1e8
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
8
main.qml
8
main.qml
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue