mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
47a01b1dcd
commit
d74ef97228
1 changed files with 3 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ Kirigami.ScrollablePage {
|
||||||
supportsMouseEvents: true
|
supportsMouseEvents: true
|
||||||
checked: diveListView.currentIndex === model.index
|
checked: diveListView.currentIndex === model.index
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
height: diveListEntry.height + Kirigami.Units.smallSpacing
|
||||||
|
|
||||||
property real detailsOpacity : 0
|
property real detailsOpacity : 0
|
||||||
property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
|
property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
|
||||||
|
|
@ -49,9 +50,7 @@ Kirigami.ScrollablePage {
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height + Kirigami.Units.smallSpacing
|
|
||||||
spacing: horizontalPadding
|
spacing: horizontalPadding
|
||||||
|
|
||||||
add: Transition {
|
add: Transition {
|
||||||
NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 }
|
NumberAnimation { property: "opacity"; from: 0; to: 1.0; duration: 400 }
|
||||||
NumberAnimation { property: "scale"; 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
|
left: parent.left
|
||||||
leftMargin: horizontalPadding
|
leftMargin: horizontalPadding
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
topMargin: - Kirigami.Units.smallSpacing * 2
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -80,6 +80,7 @@ Kirigami.ScrollablePage {
|
||||||
left: locationText.left
|
left: locationText.left
|
||||||
top: locationText.bottom
|
top: locationText.bottom
|
||||||
topMargin: - Kirigami.Units.smallSpacing * 2
|
topMargin: - Kirigami.Units.smallSpacing * 2
|
||||||
|
bottom: numberText.bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue