From 26b50cec04f1780d55a01c1c9f1643a06902b858 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 5 Jun 2026 01:24:38 +1000 Subject: [PATCH] fix: animate base transparency properly --- modules/drawers/ContentWindow.qml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/drawers/ContentWindow.qml b/modules/drawers/ContentWindow.qml index cc1bccd5..35d0baf8 100644 --- a/modules/drawers/ContentWindow.qml +++ b/modules/drawers/ContentWindow.qml @@ -39,6 +39,8 @@ StyledWindow { readonly property real shadowOpacity: 0.7 * (1 - fsTransitionProg) readonly property real borderLayoutThickness: hasFullscreen ? 0 : contentItem.Config.border.thickness + property color surfaceColour: Colours.tPalette.m3surface + readonly property int dragMaskPadding: { if (focusGrab.active || panels.popouts.isDetached) return 0; @@ -76,6 +78,10 @@ StyledWindow { Anim {} } + Behavior on surfaceColour { + CAnim {} + } + Region { id: emptyRegion @@ -129,7 +135,7 @@ StyledWindow { Item { anchors.fill: parent - opacity: Colours.transparency.enabled ? Colours.transparency.base : 1 + opacity: root.surfaceColour.a layer.enabled: true layer.effect: MultiEffect { shadowEnabled: true @@ -140,12 +146,8 @@ StyledWindow { BlobGroup { id: blobGroup - color: Colours.palette.m3surface + color: root.surfaceColour smoothing: root.contentItem.Config.border.smoothing - - Behavior on color { - CAnim {} - } } BlobInvertedRect {