mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 19:32:03 +02:00
wizard: add close button by enabling titlebar
This commit is contained in:
parent
59fc48bd8b
commit
1d5937e1e8
@ -55,6 +55,7 @@ Rectangle {
|
||||
property bool showCloseButton: true
|
||||
property bool showMoneroLogo: false
|
||||
property bool small: false
|
||||
property alias titleBarGradientImageOpacity: titleBarGradientImage.opacity
|
||||
|
||||
signal closeClicked
|
||||
signal maximizeClicked
|
||||
@ -68,6 +69,7 @@ Rectangle {
|
||||
z: parent.z + 1
|
||||
|
||||
Image {
|
||||
id: titleBarGradientImage
|
||||
anchors.fill: parent
|
||||
height: titleBar.height
|
||||
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; height: maxWindowHeight; }
|
||||
PropertyChanges { target: resizeArea; visible: true }
|
||||
PropertyChanges { target: titleBar; showMaximizeButton: false }
|
||||
PropertyChanges { target: titleBar; showMaximizeButton: true }
|
||||
// PropertyChanges { target: frameArea; blocked: true }
|
||||
PropertyChanges { target: titleBar; visible: false }
|
||||
PropertyChanges { target: titleBar; visible: true }
|
||||
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 }
|
||||
}, State {
|
||||
name: "normal"
|
||||
|
Loading…
Reference in New Issue
Block a user