Minimized aka basic mode

This commit is contained in:
Ilya Kitaev
2016-10-09 00:50:35 +03:00
parent a032c841b4
commit eafcf71382
4 changed files with 167 additions and 45 deletions

View File

@@ -230,9 +230,9 @@ ApplicationWindow {
function onWalletUpdate() {
console.log(">>> wallet updated")
basicPanel.unlockedBalanceText = leftPanel.unlockedBalanceText =
walletManager.displayAmount(currentWallet.unlockedBalance);
basicPanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(currentWallet.balance);
// basicPanel.unlockedBalanceText = leftPanel.unlockedBalanceText =
// walletManager.displayAmount(currentWallet.unlockedBalance);
// basicPanel.balanceText = leftPanel.balanceText = walletManager.displayAmount(currentWallet.balance);
}
function onWalletRefresh() {
@@ -396,7 +396,7 @@ ApplicationWindow {
middlePanel.enabled = enable;
leftPanel.enabled = enable;
rightPanel.enabled = enable;
basicPanel.enabled = enable;
// basicPanel.enabled = enable;
}
function showProcessingSplash(message) {
@@ -573,7 +573,7 @@ ApplicationWindow {
MiddlePanel {
id: middlePanel
anchors.bottom: parent.bottom
anchors.left: leftPanel.right
anchors.left: leftPanel.visible ? leftPanel.right : parent.left
anchors.right: rightPanel.left
height: parent.height
state: "Transfer"
@@ -585,16 +585,6 @@ ApplicationWindow {
visible: false
}
BasicPanel {
id: basicPanel
x: 0
anchors.bottom: parent.bottom
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
visible: false
}
MouseArea {
id: frameArea
property bool blocked: false
@@ -650,25 +640,26 @@ ApplicationWindow {
duration: 200
}
PropertyAction {
targets: [leftPanel, middlePanel, rightPanel]
targets: [leftPanel, rightPanel]
properties: "visible"
value: false
}
PropertyAction {
target: basicPanel
properties: "visible"
target: middlePanel
properties: "basicMode"
value: true
}
NumberAnimation {
target: appWindow
properties: "height"
to: basicPanel.height
to: middlePanel.height
easing.type: Easing.InCubic
duration: 200
}
onStopped: {
middlePanel.visible = false
// middlePanel.visible = false
rightPanel.visible = false
leftPanel.visible = false
}
@@ -684,8 +675,8 @@ ApplicationWindow {
duration: 200
}
PropertyAction {
target: basicPanel
properties: "visible"
target: middlePanel
properties: "basicMode"
value: false
}
PropertyAction {
@@ -778,8 +769,13 @@ ApplicationWindow {
anchors.left: parent.left
anchors.right: parent.right
onGoToBasicVersion: {
if(yes) goToBasicAnimation.start()
else goToProAnimation.start()
if (yes) {
// basicPanel.currentView = middlePanel.currentView
goToBasicAnimation.start()
} else {
// middlePanel.currentView = basicPanel.currentView
goToProAnimation.start()
}
}
MouseArea {