mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-13 23:27:26 -04:00
Minimized aka basic mode
This commit is contained in:
44
main.qml
44
main.qml
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user