1
0

qml: balance piechart in walletdetails, fix menus to top header height

This commit is contained in:
Sander van Grieken
2022-10-31 17:17:44 +01:00
parent 6b979f2185
commit 00e1d1786c
10 changed files with 149 additions and 37 deletions

View File

@@ -9,10 +9,14 @@ import "controls"
Pane {
id: root
property string title: qsTr("Lightning Channels")
property QtObject menu: Menu {
id: menu
parent: Overlay.overlay
dim: true
Overlay.modeless: Rectangle {
color: "#44000000"
}
MenuItem {
icon.color: 'transparent'
action: Action {
@@ -46,6 +50,20 @@ Pane {
Layout.preferredWidth: parent.width
columns: 2
Label {
Layout.columnSpan: 2
text: qsTr('Lightning Channels')
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
Rectangle {
Layout.columnSpan: 2
Layout.fillWidth: true
height: 1
color: Material.accentColor
}
Label {
Layout.columnSpan: 2
text: qsTr('You have %1 open channels').arg(Daemon.currentWallet.channelModel.numOpenChannels)