aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-01-30 10:37:14 +0100
committerJaquee <jaquee.monero@gmail.com>2017-02-27 22:07:16 +0100
commitebcab010bbf1eeaed0a0c734460a038bdbe374b8 (patch)
tree1f30232e5a4ec0f97a37eec2eecb8e89c08f774d /main.qml
parente826f7c1ecdcdc1e588e67b07278f7433cd867eb (diff)
downloadmonzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.tar.gz
monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.tar.xz
monzero-gui-ebcab010bbf1eeaed0a0c734460a038bdbe374b8.zip
Wizard: mobile redesign
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.qml b/main.qml
index 83e294ec..4184afad 100644
--- a/main.qml
+++ b/main.qml
@@ -67,6 +67,7 @@ ApplicationWindow {
property int timeToUnlock: 0
property bool qrScannerEnabled: builtWithScanner && (QtMultimedia.availableCameras.length > 0)
property int blocksToSync: 1
+ property var isMobile: (appWindow.width > 700) ? false : true
// true if wallet ever synchronized
property bool walletInitialized : false
@@ -191,7 +192,6 @@ ApplicationWindow {
}
walletManager.setDaemonAddress(persistentSettings.daemon_address)
-
// wallet already opened with wizard, we just need to initialize it
if (typeof wizard.settings['wallet'] !== 'undefined') {
console.log("using wizard wallet")
@@ -237,6 +237,7 @@ ApplicationWindow {
function connectWallet(wallet) {
currentWallet = wallet
+ walletName = usefulName(wallet.path)
updateSyncing(false)
viewOnly = currentWallet.viewOnly;
@@ -1137,7 +1138,7 @@ ApplicationWindow {
}
}
- property int maxWidth: leftPanel.width + 655 + rightPanel.width
+ property int minWidth: 326
property int minHeight: 720
MouseArea {
id: resizeArea
@@ -1171,9 +1172,9 @@ ApplicationWindow {
var dx = previousPosition.x - pos.x
var dy = previousPosition.y - pos.y
- if(appWindow.width - dx > parent.maxWidth)
+ if(appWindow.width - dx > parent.minWidth)
appWindow.width -= dx
- else appWindow.width = parent.maxWidth
+ else appWindow.width = parent.minWidth
if(appWindow.height - dy > parent.minHeight)
appWindow.height -= dy