diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 07:48:10 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 07:49:11 -0700 |
commit | 684354ab6ec778f05e62a935faddb6be14275743 (patch) | |
tree | 5b24fb50d675d53ae1b0d31003b77c87363da959 | |
parent | e49301ea21ecca427d6f9c9d55215160469521ef (diff) | |
download | subsurface-684354ab6ec778f05e62a935faddb6be14275743.tar.gz |
QML UI: re-indent DiveList code
No actual changes besides whitespace.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index acb5a8d08..ec5f71a1d 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -162,32 +162,32 @@ Kirigami.ScrollablePage { rightMargin: Kirigami.Units.gridUnit * -2 } color: subsurfaceTheme.darkBackgroundColor - Kirigami.Label { - id: sectionText - text: { - // if the tripMeta (which we get as "section") ends in ::-- we know - // that there's no trip -- otherwise strip the meta information before - // the :: and show the trip location - var shownText - var endsWithDoubleDash = /::--$/; - if (endsWithDoubleDash.test(section) || section === "--") { - shownText = "" - } else { - shownText = section.replace(/.*::/, "") + Kirigami.Label { + id: sectionText + text: { + // if the tripMeta (which we get as "section") ends in ::-- we know + // that there's no trip -- otherwise strip the meta information before + // the :: and show the trip location + var shownText + var endsWithDoubleDash = /::--$/; + if (endsWithDoubleDash.test(section) || section === "--") { + shownText = "" + } else { + shownText = section.replace(/.*::/, "") + } + shownText } - shownText - } - visible: text !== "" - font.weight: Font.Bold - anchors { - top: parent.top - left: parent.left - topMargin: Math.max(2, Kirigami.Units.gridUnit / 2) - leftMargin: Kirigami.Units.gridUnit / 2 - right: parent.right + visible: text !== "" + font.weight: Font.Bold + anchors { + top: parent.top + left: parent.left + topMargin: Math.max(2, Kirigami.Units.gridUnit / 2) + leftMargin: Kirigami.Units.gridUnit / 2 + right: parent.right + } + color: textColor } - color: textColor - } } Rectangle { height: Math.max(2, Kirigami.Units.gridUnit / 12) // we want a thicker line |