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.property: "section"
section.criteria: ViewSection.FullString section.criteria: ViewSection.FullString
section.delegate: Label { section.delegate: RowLayout {
text: section width: parent.width * 0.6
color: "grey" anchors.right: parent.right
padding: 16
verticalAlignment: Text.AlignVCenter Rectangle {
anchors.horizontalCenter: parent.horizontalCenter Layout.fillWidth: true
background: Rectangle { height:2
anchors.fill: parent color: Material.accent
anchors.margins: 4 }
color: Material.theme == Material.Light ? "#dbdbdb" : "#363636"
Label {
padding: 4
text: section
color: Material.accent
verticalAlignment: Text.AlignVCenter
} }
} }