aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-18 17:38:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-18 17:38:03 -0700
commitd74ef972281613499554e35bc1a4dfe4ae07f628 (patch)
treea90abf70022d28846f7c70f702d28398b6c07f35 /mobile-widgets
parent47a01b1dcd57e963e46cf3d8c45c25c34981f6d3 (diff)
downloadsubsurface-d74ef972281613499554e35bc1a4dfe4ae07f628.tar.gz
QML UI: less whitespace around dive list entries
This way we get to show a few more dives per screen. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index dd5336f85..26ed8432f 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -27,6 +27,7 @@ Kirigami.ScrollablePage {
supportsMouseEvents: true
checked: diveListView.currentIndex === model.index
width: parent.width
+ height: diveListEntry.height + Kirigami.Units.smallSpacing
property real detailsOpacity : 0
property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
@@ -49,9 +50,7 @@ Kirigami.ScrollablePage {
Row {
width: parent.width
- height: childrenRect.height + Kirigami.Units.smallSpacing
spacing: horizontalPadding
-
add: Transition {
NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 }
NumberAnimation { property: "scale"; from: 0; to: 1.0; duration: 400 }
@@ -72,6 +71,7 @@ Kirigami.ScrollablePage {
left: parent.left
leftMargin: horizontalPadding
top: parent.top
+ topMargin: - Kirigami.Units.smallSpacing * 2
right: parent.right
}
}
@@ -80,6 +80,7 @@ Kirigami.ScrollablePage {
left: locationText.left
top: locationText.bottom
topMargin: - Kirigami.Units.smallSpacing * 2
+ bottom: numberText.bottom
}
Kirigami.Label {