QML UI: better visual arrangement of the dive list

Make the lines that together form one dive move closer together so the dives
visually stand out more.

(this also includes small white space change, oops)

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-01 16:56:16 -05:00
parent c117a7be6e
commit 80bfccdf33

View file

@ -9,7 +9,7 @@ import org.subsurfacedivelog.mobile 1.0
Kirigami.ScrollablePage { Kirigami.ScrollablePage {
id: page id: page
objectName: "DiveList" objectName: "DiveList"
title: "Subsurface-mobile" title: "Subsurface-mobile"
background: Rectangle { background: Rectangle {
color: Kirigami.Theme.viewBackgroundColor color: Kirigami.Theme.viewBackgroundColor
} }
@ -76,6 +76,7 @@ Kirigami.ScrollablePage {
leftMargin: horizontalPadding leftMargin: horizontalPadding
right: parent.right right: parent.right
rightMargin: horizontalPadding rightMargin: horizontalPadding
topMargin: - Kirigami.Units.smallSpacing * 2
bottom: numberText.bottom bottom: numberText.bottom
} }
Kirigami.Label { Kirigami.Label {
@ -108,6 +109,7 @@ Kirigami.ScrollablePage {
anchors { anchors {
right: parent.right right: parent.right
top: locationText.bottom top: locationText.bottom
topMargin: - Kirigami.Units.smallSpacing * 2
} }
} }
} }
@ -159,7 +161,7 @@ Kirigami.ScrollablePage {
} }
} }
ScrollView { ScrollView {
id: startPageWrapper id: startPageWrapper
anchors.fill: parent anchors.fill: parent
opacity: (diveListView.count > 0 && (credentialStatus == QMLManager.VALID || credentialStatus == QMLManager.VALID_EMAIL)) ? 0 : 1 opacity: (diveListView.count > 0 && (credentialStatus == QMLManager.VALID || credentialStatus == QMLManager.VALID_EMAIL)) ? 0 : 1