mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 08:57:21 +00:00
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:
parent
9d076bf542
commit
b0438bdf48
1 changed files with 17 additions and 4 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue