diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 07:46:55 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 07:49:11 -0700 |
commit | e49301ea21ecca427d6f9c9d55215160469521ef (patch) | |
tree | e3244d730a027530eb3a2463067d039e490ad073 /mobile-widgets/qml/DiveList.qml | |
parent | 3d8f61fe6c0d4c6d8841d79c0507e44db5412840 (diff) | |
download | subsurface-e49301ea21ecca427d6f9c9d55215160469521ef.tar.gz |
QML UI: DiveList: add background color to trip heading
In order to make it easier to see the changes, the code hasn't been re-indented.
This will be in the next commit.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 2c4784666..acb5a8d08 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -153,6 +153,15 @@ Kirigami.ScrollablePage { Item { width: page.width - Kirigami.Units.gridUnit height: childrenRect.height + Kirigami.Units.smallSpacing * 2 + Math.max(2, Kirigami.Units.gridUnit / 2) + Rectangle { + id: headingBackground + height: Kirigami.Units.gridUnit * 3 + anchors { + left: parent.left + right: parent.right + rightMargin: Kirigami.Units.gridUnit * -2 + } + color: subsurfaceTheme.darkBackgroundColor Kirigami.Label { id: sectionText text: { @@ -179,12 +188,12 @@ Kirigami.ScrollablePage { } color: textColor } + } Rectangle { height: Math.max(2, Kirigami.Units.gridUnit / 12) // we want a thicker line anchors { - top: sectionText.bottom + bottom: headingBackground.top left: parent.left - leftMargin: Kirigami.Units.gridUnit * -2 rightMargin: Kirigami.Units.gridUnit * -2 right: parent.right } |