summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-20 15:40:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-21 14:31:37 -0700
commitc77cc93eecb4ed4663110e97817fe7524046e8aa (patch)
tree2aa0b452a80fe50fb8da2070dc9f37475bc7c057 /mobile-widgets/qml/DiveList.qml
parent574757301986ecd2a3c8c9c0150a7d27524731e2 (diff)
downloadsubsurface-c77cc93eecb4ed4663110e97817fe7524046e8aa.tar.gz
mobile UI: show dives marked as invalid with strike through
This matches the visual language of the desktop UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 2c6219383..647a11ca1 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -187,6 +187,7 @@ Kirigami.ScrollablePage {
id: locationText
text: (undefined !== location && "" != location) ? location : qsTr("<unnamed dive site>")
font.weight: Font.Medium
+ font.strikeout: isInvalid
font.pointSize: subsurfaceTheme.smallPointSize
elide: Text.ElideRight
maximumLineCount: 1 // needed for elide to work at all
@@ -211,6 +212,7 @@ Kirigami.ScrollablePage {
text: (undefined !== dateTime) ? dateTime : ""
width: Math.max(locationText.width * 0.45, paintedWidth) // helps vertical alignment throughout listview
font.pointSize: subsurfaceTheme.smallPointSize
+ font.strikeout: isInvalid
color: selected ? subsurfaceTheme.darkerPrimaryTextColor : subsurfaceTheme.secondaryTextColor
}
// spacer, just in case
@@ -223,6 +225,7 @@ Kirigami.ScrollablePage {
text: (undefined !== depthDuration) ? depthDuration : ""
width: Math.max(Kirigami.Units.gridUnit * 3, paintedWidth) // helps vertical alignment throughout listview
font.pointSize: subsurfaceTheme.smallPointSize
+ font.strikeout: isInvalid
color: selected ? subsurfaceTheme.darkerPrimaryTextColor : subsurfaceTheme.secondaryTextColor
}
}
@@ -230,6 +233,7 @@ Kirigami.ScrollablePage {
id: numberText
text: "#" + number
font.pointSize: subsurfaceTheme.smallPointSize
+ font.strikeout: isInvalid
color: selected ? subsurfaceTheme.darkerPrimaryTextColor : subsurfaceTheme.secondaryTextColor
anchors {
right: parent.right