summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadedDiveDelegate.qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-10-19 15:41:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-19 14:55:30 -0400
commita9b692f0c30fecf950c52099d7c0f336f88c901f (patch)
tree20baf808d76b5507aa258b3cfe1d450adcb1ddb5 /mobile-widgets/qml/DownloadedDiveDelegate.qml
parent53ed1c7326a6633b15e24f1f8f486a3db0f444ea (diff)
downloadsubsurface-a9b692f0c30fecf950c52099d7c0f336f88c901f.tar.gz
QML-UI: Download screen fixup
Again, mostly related to label change. First, the top button was "glued" to the top of the screen, so added a little margin there. It appeared that all the other items on the screen (progressbar, 2 button rows, and the downloaded dive list) where not moving down due to the add of that little top margin. This was solved by anchor-ing the items together. Finally, the text of a downloaded dive was on the top of the delegate lines. Not sure where that came from, but easily solved by centering it explicitly. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml/DownloadedDiveDelegate.qml')
-rw-r--r--mobile-widgets/qml/DownloadedDiveDelegate.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadedDiveDelegate.qml b/mobile-widgets/qml/DownloadedDiveDelegate.qml
index be9e2aaf5..b88561b17 100644
--- a/mobile-widgets/qml/DownloadedDiveDelegate.qml
+++ b/mobile-widgets/qml/DownloadedDiveDelegate.qml
@@ -48,12 +48,14 @@ Kirigami.AbstractListItem {
Controls.Label {
id: dateLabel
text: innerListItem.datetime
+ anchors.verticalCenter: parent.verticalCenter
width: Math.round(parent.width * 0.35)
font.pointSize: subsurfaceTheme.smallPointSize
color: textColor
}
Controls.Label {
text: innerListItem.depth + ' / ' + innerListItem.duration
+ anchors.verticalCenter: parent.verticalCenter
width: Math.round(parent.width * 0.35)
font.pointSize: subsurfaceTheme.smallPointSize
color: textColor