aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-19 14:10:32 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-20 10:51:18 -0800
commit0b52d7a39861d7c4a9bb2f3cf5ad6557ad3d49e8 (patch)
treeed50a268aeef90692849138c06a4541d4eaf28ef /mobile-widgets/qml
parent86a4c5a0e5ecdbc8e00d8ac970ae938a02c2294d (diff)
downloadsubsurface-0b52d7a39861d7c4a9bb2f3cf5ad6557ad3d49e8.tar.gz
mobile/UI: correctly color the action button icons for dive view
This uses one of our changes to Kirigami that allows us to set the correct overlay color for our icons. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml
index a98b698c7..a71b85d12 100644
--- a/mobile-widgets/qml/DiveDetails.qml
+++ b/mobile-widgets/qml/DiveDetails.qml
@@ -58,6 +58,7 @@ Kirigami.Page {
bottomPadding: 0
background: Rectangle { color: subsurfaceTheme.backgroundColor }
width: rootItem.colWidth
+ Kirigami.Theme.backgroundColor: subsurfaceTheme.backgroundColor
property QtObject removeDiveFromTripAction: Kirigami.Action {
text: qsTr ("Remove this dive from trip")
@@ -222,6 +223,7 @@ Kirigami.Page {
icon {
name: ":/icons/trash-empty.svg"
}
+ color: subsurfaceTheme.primaryTextColor
onTriggered: manager.deleteDive(currentItem.modelData.id)
}
@@ -230,6 +232,7 @@ Kirigami.Page {
icon {
name: ":/icons/dialog-cancel.svg"
}
+ color: subsurfaceTheme.primaryTextColor
onTriggered: {
endEditMode()
}
@@ -240,6 +243,7 @@ Kirigami.Page {
icon {
name: ":/icons/gps"
}
+ color: subsurfaceTheme.primaryTextColor
onTriggered: {
showMap()
mapPage.centerOnDiveSite(currentItem.modelData.diveSite)