From 775d612d3ed6608b08955d95eb3e52641aafa3fb Mon Sep 17 00:00:00 2001 From: Micah Stanley Date: Wed, 18 Jun 2025 21:02:12 +0000 Subject: [PATCH] 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. --- .../qml/actiondrawer/quicksettings/QuickSettingsDrawer.qml | 3 ++- .../qml/actiondrawer/quicksettings/QuickSettingsPanel.qml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsDrawer.qml b/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsDrawer.qml index d78e2e4f..1e7d2833 100644 --- a/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsDrawer.qml +++ b/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsDrawer.qml @@ -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 { diff --git a/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsPanel.qml b/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsPanel.qml index 8567bd04..e141fc6a 100644 --- a/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsPanel.qml +++ b/components/mobileshell/qml/actiondrawer/quicksettings/QuickSettingsPanel.qml @@ -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