From 3d8f61fe6c0d4c6d8841d79c0507e44db5412840 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 20 Jun 2017 07:42:56 -0700 Subject: QML UI: turn DiveList heading into label This way it will render in the same font as the location of a dive. This will look like crap until the next commit adds a rectangle with color around it, but this way it's much easier to see the individual changes. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveList.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index b2f050aea..2c4784666 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -153,8 +153,7 @@ Kirigami.ScrollablePage { Item { width: page.width - Kirigami.Units.gridUnit height: childrenRect.height + Kirigami.Units.smallSpacing * 2 + Math.max(2, Kirigami.Units.gridUnit / 2) - - Kirigami.Heading { + Kirigami.Label { id: sectionText text: { // if the tripMeta (which we get as "section") ends in ::-- we know @@ -170,6 +169,7 @@ Kirigami.ScrollablePage { shownText } visible: text !== "" + font.weight: Font.Bold anchors { top: parent.top left: parent.left @@ -178,7 +178,6 @@ Kirigami.ScrollablePage { right: parent.right } color: textColor - level: 3 } Rectangle { height: Math.max(2, Kirigami.Units.gridUnit / 12) // we want a thicker line -- cgit v1.2.3-70-g09d2