mobile/UI: correctly color the action button icons for dive list

This uses one of our fixes to Kirigami to 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:14:50 -08:00
parent 0b52d7a398
commit 3429552433

View file

@ -14,7 +14,7 @@ Kirigami.ScrollablePage {
verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff
property int dlHorizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1 property int dlHorizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
property QtObject diveListModel: null property QtObject diveListModel: null
Kirigami.Theme.backgroundColor: subsurfaceTheme.backgroundColor // used for background of left and right action button
supportsRefreshing: true supportsRefreshing: true
onRefreshingChanged: { onRefreshingChanged: {
if (refreshing) { if (refreshing) {
@ -456,6 +456,7 @@ Kirigami.ScrollablePage {
icon { icon {
name: ":/icons/list-add" name: ":/icons/list-add"
} }
color: subsurfaceTheme.primaryTextColor
text: qsTr("Add dive") text: qsTr("Add dive")
onTriggered: { onTriggered: {
startAddDive() startAddDive()
@ -466,6 +467,7 @@ Kirigami.ScrollablePage {
icon { icon {
name: ":icons/ic_filter_list" name: ":icons/ic_filter_list"
} }
color: subsurfaceTheme.primaryTextColor
text: qsTr("Filter dives") text: qsTr("Filter dives")
onTriggered: { onTriggered: {
rootItem.filterToggle = !rootItem.filterToggle rootItem.filterToggle = !rootItem.filterToggle