From c418c46f04f09b0e95c95e8c47caba0cd808632f Mon Sep 17 00:00:00 2001 From: Black Hat Date: Mon, 30 Jul 2018 13:52:20 +0800 Subject: [PATCH] Add section footer. --- qml/form/RoomForm.qml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/qml/form/RoomForm.qml b/qml/form/RoomForm.qml index 88c1c66..a694a41 100644 --- a/qml/form/RoomForm.qml +++ b/qml/form/RoomForm.qml @@ -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 } }