mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +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
|
||||
property int dlHorizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1
|
||||
property QtObject diveListModel: null
|
||||
|
||||
Kirigami.Theme.backgroundColor: subsurfaceTheme.backgroundColor // used for background of left and right action button
|
||||
supportsRefreshing: true
|
||||
onRefreshingChanged: {
|
||||
if (refreshing) {
|
||||
|
@ -456,6 +456,7 @@ Kirigami.ScrollablePage {
|
|||
icon {
|
||||
name: ":/icons/list-add"
|
||||
}
|
||||
color: subsurfaceTheme.primaryTextColor
|
||||
text: qsTr("Add dive")
|
||||
onTriggered: {
|
||||
startAddDive()
|
||||
|
@ -466,6 +467,7 @@ Kirigami.ScrollablePage {
|
|||
icon {
|
||||
name: ":icons/ic_filter_list"
|
||||
}
|
||||
color: subsurfaceTheme.primaryTextColor
|
||||
text: qsTr("Filter dives")
|
||||
onTriggered: {
|
||||
rootItem.filterToggle = !rootItem.filterToggle
|
||||
|
|
Loading…
Add table
Reference in a new issue