Add section footer.

This commit is contained in:
Black Hat 2018-07-30 13:52:20 +08:00
parent 4ce12331d1
commit c418c46f04
1 changed files with 15 additions and 10 deletions

View File

@ -98,16 +98,21 @@ Item {
section.property: "section"
section.criteria: ViewSection.FullString
section.delegate: Label {
text: section
color: "grey"
padding: 16
verticalAlignment: Text.AlignVCenter
anchors.horizontalCenter: parent.horizontalCenter
background: Rectangle {
anchors.fill: parent
anchors.margins: 4
color: Material.theme == Material.Light ? "#dbdbdb" : "#363636"
section.delegate: RowLayout {
width: parent.width * 0.6
anchors.right: parent.right
Rectangle {
Layout.fillWidth: true
height:2
color: Material.accent
}
Label {
padding: 4
text: section
color: Material.accent
verticalAlignment: Text.AlignVCenter
}
}