Fix wallpaper selector icon and surface colors

The header button used list-add icon and hard-coded white backgrounds
that did not match the dark theme. Change icon to configure (it opens
Configure Folio for advanced settings, not add-wallpaper), and use
Kirigami.Theme.backgroundColor for both the header and thumbnail
backgrounds.
This commit is contained in:
Marco Allegretti 2026-05-04 09:47:40 +02:00
parent 9d076bf542
commit b0438bdf48

View file

@ -63,7 +63,14 @@ Controls.Drawer {
background: Rectangle {
radius: Kirigami.Units.cornerRadius
color: Qt.rgba(255, 255, 255, (openSettings.down || openSettings.highlighted) ? 0.3 : 0.2)
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Window
color: Qt.rgba(
Kirigami.Theme.backgroundColor.r,
Kirigami.Theme.backgroundColor.g,
Kirigami.Theme.backgroundColor.b,
(openSettings.down || openSettings.highlighted) ? 0.9 : 0.75
)
Component.onCompleted: {
if (maskManager) {
@ -77,8 +84,7 @@ Controls.Drawer {
anchors.centerIn: parent
implicitHeight: Kirigami.Units.iconSizes.large
implicitWidth: Kirigami.Units.iconSizes.large
source: 'list-add'
color: 'white'
source: 'configure'
}
}
@ -151,7 +157,14 @@ Controls.Drawer {
}
background: Rectangle {
color: Qt.rgba(255, 255, 255, (delegate.down || delegate.highlighted) ? 0.4 : 0.2)
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.Window
color: Qt.rgba(
Kirigami.Theme.backgroundColor.r,
Kirigami.Theme.backgroundColor.g,
Kirigami.Theme.backgroundColor.b,
(delegate.down || delegate.highlighted) ? 0.9 : 0.75
)
radius: Kirigami.Units.cornerRadius
Component.onCompleted: {