mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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:
parent
86a4c5a0e5
commit
0b52d7a398
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue