aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Brydolf <jacob@brydolf.net>2016-11-21 22:14:49 +0100
committerJacob Brydolf <jacob@brydolf.net>2016-11-21 22:14:49 +0100
commitf1157f8362d882d74a88a825ba061e249a95a4aa (patch)
treedd9cd3481ff190a6d527ebd43b5b1183392e5dd4
parentc83336cc4714215725cba957d8ea164a57c33987 (diff)
downloadmonzero-gui-f1157f8362d882d74a88a825ba061e249a95a4aa.tar.gz
monzero-gui-f1157f8362d882d74a88a825ba061e249a95a4aa.tar.xz
monzero-gui-f1157f8362d882d74a88a825ba061e249a95a4aa.zip
adjust height for small screens + fix window positioning
-rw-r--r--main.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.qml b/main.qml
index c09f0c3c..b2a08869 100644
--- a/main.qml
+++ b/main.qml
@@ -58,6 +58,7 @@ ApplicationWindow {
property bool isNewWallet: false
property int restoreHeight:0
property bool daemonSynced: false
+ property int maxWindowHeight: (Screen.height < 900)? 720 : 800;
// true if wallet ever synchronized
property bool walletInitialized : false
@@ -613,7 +614,7 @@ ApplicationWindow {
objectName: "appWindow"
visible: true
width: rightPanelExpanded ? 1269 : 1269 - 300
- height: 800
+ height: maxWindowHeight;
color: "#FFFFFF"
flags: Qt.FramelessWindowHint | Qt.WindowSystemMenuHint | Qt.Window | Qt.WindowMinimizeButtonHint
onWidthChanged: x -= 0
@@ -621,7 +622,7 @@ ApplicationWindow {
Component.onCompleted: {
x = (Screen.width - width) / 2
- y = (Screen.height - height) / 2
+ y = (Screen.height - maxWindowHeight) / 2
//
walletManager.walletOpened.connect(onWalletOpened);
walletManager.walletClosed.connect(onWalletClosed);
@@ -755,7 +756,7 @@ ApplicationWindow {
PropertyChanges { target: titleBar; basicButtonVisible: true }
PropertyChanges { target: wizard; visible: false }
PropertyChanges { target: appWindow; width: rightPanelExpanded ? 1269 : 1269 - 300; }
- PropertyChanges { target: appWindow; height: 800; }
+ PropertyChanges { target: appWindow; height: maxWindowHeight; }
PropertyChanges { target: resizeArea; visible: true }
PropertyChanges { target: titleBar; maximizeButtonVisible: true }
PropertyChanges { target: frameArea; blocked: false }