diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 07:42:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 07:45:16 -0700 |
commit | 3d8f61fe6c0d4c6d8841d79c0507e44db5412840 (patch) | |
tree | a71d14959d7aead0df12c333ef794482097df6cd | |
parent | 3d707dca9a5c39f5c1fba866305d6944cf0af0ca (diff) | |
download | subsurface-3d8f61fe6c0d4c6d8841d79c0507e44db5412840.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 5 |
1 files 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 |