1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

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>
This commit is contained in:
Dirk Hohndel 2020-12-19 14:10:32 -08:00
parent 86a4c5a0e5
commit 0b52d7a398

View file

@ -58,6 +58,7 @@ Kirigami.Page {
bottomPadding: 0 bottomPadding: 0
background: Rectangle { color: subsurfaceTheme.backgroundColor } background: Rectangle { color: subsurfaceTheme.backgroundColor }
width: rootItem.colWidth width: rootItem.colWidth
Kirigami.Theme.backgroundColor: subsurfaceTheme.backgroundColor
property QtObject removeDiveFromTripAction: Kirigami.Action { property QtObject removeDiveFromTripAction: Kirigami.Action {
text: qsTr ("Remove this dive from trip") text: qsTr ("Remove this dive from trip")
@ -222,6 +223,7 @@ Kirigami.Page {
icon { icon {
name: ":/icons/trash-empty.svg" name: ":/icons/trash-empty.svg"
} }
color: subsurfaceTheme.primaryTextColor
onTriggered: manager.deleteDive(currentItem.modelData.id) onTriggered: manager.deleteDive(currentItem.modelData.id)
} }
@ -230,6 +232,7 @@ Kirigami.Page {
icon { icon {
name: ":/icons/dialog-cancel.svg" name: ":/icons/dialog-cancel.svg"
} }
color: subsurfaceTheme.primaryTextColor
onTriggered: { onTriggered: {
endEditMode() endEditMode()
} }
@ -240,6 +243,7 @@ Kirigami.Page {
icon { icon {
name: ":/icons/gps" name: ":/icons/gps"
} }
color: subsurfaceTheme.primaryTextColor
onTriggered: { onTriggered: {
showMap() showMap()
mapPage.centerOnDiveSite(currentItem.modelData.diveSite) mapPage.centerOnDiveSite(currentItem.modelData.diveSite)