summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r--qt-mobile/qml/DiveList.qml18
1 files changed, 13 insertions, 5 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 3696d08ec..b689f0108 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -16,6 +16,11 @@ Kirigami.ScrollablePage {
property int credentialStatus: manager.credentialStatus
property int numDives: diveListView.count
+ property color textColor: subsurfaceTheme.diveListTextColor
+
+ function scrollToTop() {
+ diveListView.positionViewAtBeginning()
+ }
Component {
id: diveDelegate
@@ -47,6 +52,7 @@ Kirigami.ScrollablePage {
font.weight: Font.Light
elide: Text.ElideRight
maximumLineCount: 1 // needed for elide to work at all
+ color: textColor
anchors {
left: parent.left
leftMargin: horizontalPadding
@@ -57,8 +63,8 @@ Kirigami.ScrollablePage {
Kirigami.Label {
id: dateLabel
text: dive.date + " " + dive.time
- opacity: 0.6
font.pointSize: subsurfaceTheme.smallPointSize
+ color: textColor
anchors {
right: parent.right
top: parent.top
@@ -74,30 +80,31 @@ Kirigami.ScrollablePage {
}
Kirigami.Label {
text: 'Depth: '
- opacity: 0.6
font.pointSize: subsurfaceTheme.smallPointSize
+ color: textColor
}
Kirigami.Label {
text: dive.depth
width: Math.max(Kirigami.Units.gridUnit * 3, paintedWidth) // helps vertical alignment throughout listview
font.pointSize: subsurfaceTheme.smallPointSize
+ color: textColor
}
Kirigami.Label {
text: 'Duration: '
- opacity: 0.6
font.pointSize: subsurfaceTheme.smallPointSize
+ color: textColor
}
Kirigami.Label {
text: dive.duration
font.pointSize: subsurfaceTheme.smallPointSize
+ color: textColor
}
}
Kirigami.Label {
id: numberText
text: "#" + dive.number
- color: Kirigami.Theme.textColor
font.pointSize: subsurfaceTheme.smallPointSize
- opacity: 0.6
+ color: textColor
anchors {
right: parent.right
top: locationText.bottom
@@ -135,6 +142,7 @@ Kirigami.ScrollablePage {
leftMargin: Kirigami.Units.gridUnit / 2
right: parent.right
}
+ color: textColor
level: 2
}
Rectangle {