aboutsummaryrefslogtreecommitdiff
path: root/LeftPanel.qml
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-16 10:24:59 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-16 10:24:59 +0200
commitca7472c79af2fe27cafceeb866cc729a171a78fc (patch)
treef41792465741bc5720e6d9639174449970b3e9b5 /LeftPanel.qml
parent0a352f33a7fd3f9eac8362fe6a6dc64fdadf3f3d (diff)
downloadmonzero-gui-ca7472c79af2fe27cafceeb866cc729a171a78fc.tar.gz
monzero-gui-ca7472c79af2fe27cafceeb866cc729a171a78fc.tar.xz
monzero-gui-ca7472c79af2fe27cafceeb866cc729a171a78fc.zip
hide/show right panel
https://trello.com/c/BjPPAZfw/35-ability-to-hide-right-sidebar-as-discussed
Diffstat (limited to 'LeftPanel.qml')
-rw-r--r--LeftPanel.qml31
1 files changed, 26 insertions, 5 deletions
diff --git a/LeftPanel.qml b/LeftPanel.qml
index 74e2cadb..09438de1 100644
--- a/LeftPanel.qml
+++ b/LeftPanel.qml
@@ -24,19 +24,40 @@ Rectangle {
width: 260
color: "#FFFFFF"
- Image {
- id: logo
- anchors.horizontalCenter: parent.horizontalCenter
+ Item {
+ id: logoItem
+ anchors.left: parent.left
+ anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: 31
- source: "images/moneroLogo.png"
+ height: logo.implicitHeight
+
+ Image {
+ id: logo
+ anchors.horizontalCenter: parent.horizontalCenter
+ source: "images/moneroLogo.png"
+ }
+
+ Image {
+ anchors.right: logo.left
+ anchors.verticalCenter: logo.verticalCenter
+ anchors.verticalCenterOffset: 5
+ anchors.rightMargin: 10
+ source: appWindow.rightPanelExpanded ? "images/expandRightPanel.png" :
+ "images/collapseRightPanel.png"
+ }
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: appWindow.rightPanelExpanded = !appWindow.rightPanelExpanded
+ }
}
Column {
id: column1
anchors.left: parent.left
anchors.right: parent.right
- anchors.top: logo.bottom
+ anchors.top: logoItem.bottom
anchors.topMargin: 40
spacing: 6