summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-18 10:37:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-18 06:30:51 -0400
commita525fff1125265f9c68fd202b7ec1931dc529729 (patch)
tree3c5ca0ac5692f4786090c5d2b1decfec10eb728f /mobile-widgets/qml/DiveList.qml
parent64d342ca9f2f6c662ba650e713c9ce0ab2c6cf4a (diff)
downloadsubsurface-a525fff1125265f9c68fd202b7ec1931dc529729.tar.gz
QML-UI: repair DiveList
The new SHA for Kirigami did all kinds of nasty things to our DiveList. This commit tries to repair most of the damage. Nothing more than some margins, anchors, and even a font that changed. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index b9f5d672a..41cffe6ca 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -86,18 +86,20 @@ Kirigami.ScrollablePage {
Item {
id: diveListEntry
width: parent.width - Kirigami.Units.gridUnit * (innerListItem.deleteButtonVisible ? 3 : 1)
- height: childrenRect.height - Kirigami.Units.smallSpacing
+ height: childrenRect.height + Kirigami.Units.smallSpacing
anchors.left: leftBarDive.right
Controls.Label {
id: locationText
text: dive.location
font.weight: Font.Bold
+ font.pointSize: subsurfaceTheme.regularPointSize
elide: Text.ElideRight
maximumLineCount: 1 // needed for elide to work at all
color: textColor
anchors {
left: parent.left
leftMargin: horizontalPadding * 2
+ topMargin: Kirigami.Units.smallSpacing
top: parent.top
right: parent.right
}
@@ -106,7 +108,7 @@ Kirigami.ScrollablePage {
anchors {
left: locationText.left
top: locationText.bottom
- topMargin: - Kirigami.Units.smallSpacing * 2
+ topMargin: Kirigami.Units.smallSpacing
bottom: numberText.bottom
}
@@ -134,7 +136,7 @@ Kirigami.ScrollablePage {
right: parent.right
rightMargin: horizontalPadding
top: locationText.bottom
- topMargin: - Kirigami.Units.smallSpacing * 2
+ topMargin: Kirigami.Units.smallSpacing
}
}
}