1
0

qml: move menu back to topbar, move addresses and channels to walletdetails and

add walletdetails to topbar menu
This commit is contained in:
Sander van Grieken
2023-03-02 10:49:01 +01:00
parent 765d231209
commit f65158a23f
4 changed files with 44 additions and 46 deletions

View File

@@ -62,25 +62,33 @@ ApplicationWindow
Layout.rightMargin: constants.paddingMedium
Layout.alignment: Qt.AlignVCenter
Item {
Layout.preferredWidth: constants.paddingXLarge
Layout.preferredHeight: 1
ToolButton {
id: menuButton
enabled: stack.currentItem && stack.currentItem.menu
? stack.currentItem.menu.count > 0
: false
text: enabled ? '≡' : ''
font.pixelSize: constants.fontSizeXLarge
onClicked: {
stack.currentItem.menu.open()
stack.currentItem.menu.y = toolbarTopLayout.height
}
}
Image {
visible: Daemon.currentWallet
source: '../../icons/wallet.png'
Layout.preferredWidth: constants.iconSizeSmall
Layout.preferredHeight: constants.iconSizeSmall
visible: Daemon.currentWallet
source: '../../icons/wallet.png'
}
Label {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(implicitHeight, toolbarTopLayout.height)
text: stack.currentItem.title
elide: Label.ElideRight
// horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
Layout.fillWidth: true
font.pixelSize: constants.fontSizeMedium
font.bold: true
MouseArea {