1
0

qml: define a common Heading component for page section headings

This commit is contained in:
Sander van Grieken
2023-01-17 00:34:01 +01:00
parent aac0e4f693
commit b7964253a8
12 changed files with 56 additions and 154 deletions

View File

@@ -29,18 +29,9 @@ Pane {
width: parent.width
columns: 2
Label {
Heading {
Layout.columnSpan: 2
text: qsTr('Network')
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
Rectangle {
Layout.columnSpan: 2
Layout.fillWidth: true
height: 1
color: Material.accentColor
}
Label {
@@ -79,18 +70,9 @@ Pane {
}
}
Label {
Heading {
Layout.columnSpan: 2
text: qsTr('On-chain')
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
Rectangle {
Layout.columnSpan: 2
Layout.fillWidth: true
height: 1
color: Material.accentColor
}
Label {
@@ -138,18 +120,9 @@ Pane {
id: feeHistogram
}
Label {
Heading {
Layout.columnSpan: 2
text: qsTr('Lightning')
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
Rectangle {
Layout.columnSpan: 2
Layout.fillWidth: true
height: 1
color: Material.accentColor
}
Label {