mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
0b52d7a398
commit
3429552433
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue