ActionDrawer: Fix Panel Opacity when Brightness is Adjusted

This merge request moves the location where the action drawer panel opacity gets set to the top of the background item stack to resolve an issue with the opacity not changing properly when the brightness is adjusted.
This commit is contained in:
Micah Stanley 2025-06-18 21:02:12 +00:00 committed by Devin Lin
parent 43672a5ec5
commit 775d612d3e
2 changed files with 4 additions and 2 deletions

View file

@ -58,12 +58,13 @@ MobileShell.BaseItem {
bottomPadding: Kirigami.Units.smallSpacing * 4
background: Item {
opacity: brightnessPressedValue
Rectangle {
id: background
anchors.fill: parent
anchors.bottomMargin: shadow.height
color: Kirigami.Theme.backgroundColor
opacity: brightnessPressedValue
}
Rectangle {

View file

@ -45,12 +45,13 @@ MobileShell.BaseItem {
bottomPadding: Kirigami.Units.smallSpacing * 4
background: Item {
opacity: brightnessPressedValue
Rectangle {
id: background
anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing
color: Kirigami.Theme.backgroundColor
opacity: brightnessPressedValue
visible: false
radius: Kirigami.Units.cornerRadius