diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-04-21 21:59:31 +0200 |
|---|---|---|
| committer | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-04-25 16:32:12 +0200 |
| commit | 4d56ed9e27b63df08a20f6c1459499aaca7bd1d6 (patch) | |
| tree | 27291d0c1bf61ffac89f00b09ae2df1381a21533 /main.qml | |
| parent | 47f9a1765a4f5f02b22475fdfb30c6b71e5a57be (diff) | |
| download | monzero-gui-4d56ed9e27b63df08a20f6c1459499aaca7bd1d6.tar.gz monzero-gui-4d56ed9e27b63df08a20f6c1459499aaca7bd1d6.tar.xz monzero-gui-4d56ed9e27b63df08a20f6c1459499aaca7bd1d6.zip | |
Make the titlebar more modular
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1261,7 +1261,7 @@ ApplicationWindow { PropertyChanges { target: appWindow; width: (screenWidth < 930 || isAndroid || isIOS)? screenWidth : 930; } PropertyChanges { target: appWindow; height: maxWindowHeight; } PropertyChanges { target: resizeArea; visible: true } - PropertyChanges { target: titleBar; maximizeButtonVisible: false } + PropertyChanges { target: titleBar; showMaximizeButton: false } // PropertyChanges { target: frameArea; blocked: true } PropertyChanges { target: titleBar; visible: false } PropertyChanges { target: titleBar; y: 0 } @@ -1277,7 +1277,7 @@ ApplicationWindow { PropertyChanges { target: appWindow; width: (screenWidth < 969 || isAndroid || isIOS)? screenWidth : 969 } //rightPanelExpanded ? 1269 : 1269 - 300; PropertyChanges { target: appWindow; height: maxWindowHeight; } PropertyChanges { target: resizeArea; visible: true } - PropertyChanges { target: titleBar; maximizeButtonVisible: true } + PropertyChanges { target: titleBar; showMaximizeButton: true } // PropertyChanges { target: frameArea; blocked: true } PropertyChanges { target: titleBar; visible: true } // PropertyChanges { target: titleBar; y: 0 } @@ -1596,11 +1596,20 @@ ApplicationWindow { TitleBar { id: titleBar - anchors.left: parent.left - anchors.right: parent.right x: 0 y: 0 - customDecorations: persistentSettings.customDecorations + anchors.left: parent.left + anchors.right: parent.right + showMinimizeButton: true + showMaximizeButton: true + showWhatIsButton: false + showMoneroLogo: true + onCloseClicked: appWindow.close(); + onMaximizeClicked: { + appWindow.visibility = appWindow.visibility !== Window.FullScreen ? Window.FullScreen : + Window.Windowed + } + onMinimizeClicked: appWindow.visibility = Window.Minimized onGoToBasicVersion: { if (yes) { // basicPanel.currentView = middlePanel.currentView @@ -1629,15 +1638,6 @@ ApplicationWindow { } } } - - Rectangle { - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.left: parent.left - height:1 - color: "#2F2F2F" - z: 2 - } } // new ToolTip |
