Browse Source

qml: expand clickable area to full toolbar height and a bit more padding for right-side menu

master
Sander van Grieken 3 years ago
parent
commit
f0d44d0681
  1. 32
      electrum/gui/qml/components/main.qml

32
electrum/gui/qml/components/main.qml

@ -134,7 +134,6 @@ ApplicationWindow
font.pixelSize: constants.fontSizeMedium font.pixelSize: constants.fontSizeMedium
font.bold: true font.bold: true
MouseArea { MouseArea {
// height: toolbarTopLayout.height
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
stack.getRoot().menu.open() stack.getRoot().menu.open()
@ -143,6 +142,24 @@ ApplicationWindow
} }
} }
Item {
implicitHeight: 48
implicitWidth: statusIconsLayout.width
MouseArea {
anchors.fill: parent
onClicked: openAppMenu()
}
RowLayout {
id: statusIconsLayout
anchors.verticalCenter: parent.verticalCenter
Item {
Layout.preferredWidth: constants.paddingLarge
Layout.preferredHeight: 1
}
Item { Item {
visible: Network.isTestNet visible: Network.isTestNet
width: column.width width: column.width
@ -175,17 +192,8 @@ ApplicationWindow
scale: 1.5 scale: 1.5
} }
LightningNetworkStatusIndicator { LightningNetworkStatusIndicator {}
MouseArea { OnchainNetworkStatusIndicator {}
anchors.fill: parent
onClicked: openAppMenu()
}
}
OnchainNetworkStatusIndicator {
MouseArea {
anchors.fill: parent
onClicked: openAppMenu()
} }
} }
} }

Loading…
Cancel
Save