qml: expand clickable area to full toolbar height and a bit more padding for right-side menu
This commit is contained in:
@@ -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()
|
||||||
@@ -144,48 +143,57 @@ ApplicationWindow
|
|||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
visible: Network.isTestNet
|
implicitHeight: 48
|
||||||
width: column.width
|
implicitWidth: statusIconsLayout.width
|
||||||
height: column.height
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: openAppMenu()
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: statusIconsLayout
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.preferredWidth: constants.paddingLarge
|
||||||
|
Layout.preferredHeight: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
visible: Network.isTestNet
|
||||||
|
width: column.width
|
||||||
|
height: column.height
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: column
|
||||||
|
spacing: 0
|
||||||
|
Image {
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Layout.preferredWidth: constants.iconSizeSmall
|
||||||
|
Layout.preferredHeight: constants.iconSizeSmall
|
||||||
|
source: "../../icons/info.png"
|
||||||
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
id: networkNameLabel
|
||||||
|
text: Network.networkName
|
||||||
|
color: Material.accentColor
|
||||||
|
font.pixelSize: constants.fontSizeXSmall
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: column
|
|
||||||
spacing: 0
|
|
||||||
Image {
|
Image {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
|
||||||
Layout.preferredWidth: constants.iconSizeSmall
|
Layout.preferredWidth: constants.iconSizeSmall
|
||||||
Layout.preferredHeight: constants.iconSizeSmall
|
Layout.preferredHeight: constants.iconSizeSmall
|
||||||
source: "../../icons/info.png"
|
visible: Daemon.currentWallet && Daemon.currentWallet.isWatchOnly
|
||||||
|
source: '../../icons/eye1.png'
|
||||||
|
scale: 1.5
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
LightningNetworkStatusIndicator {}
|
||||||
id: networkNameLabel
|
OnchainNetworkStatusIndicator {}
|
||||||
text: Network.networkName
|
|
||||||
color: Material.accentColor
|
|
||||||
font.pixelSize: constants.fontSizeXSmall
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Image {
|
|
||||||
Layout.preferredWidth: constants.iconSizeSmall
|
|
||||||
Layout.preferredHeight: constants.iconSizeSmall
|
|
||||||
visible: Daemon.currentWallet && Daemon.currentWallet.isWatchOnly
|
|
||||||
source: '../../icons/eye1.png'
|
|
||||||
scale: 1.5
|
|
||||||
}
|
|
||||||
|
|
||||||
LightningNetworkStatusIndicator {
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: openAppMenu()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
OnchainNetworkStatusIndicator {
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: openAppMenu()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user