fix: animate base transparency properly
This commit is contained in:
parent
68317ecf67
commit
26b50cec04
1 changed files with 8 additions and 6 deletions
|
|
@ -39,6 +39,8 @@ StyledWindow {
|
||||||
readonly property real shadowOpacity: 0.7 * (1 - fsTransitionProg)
|
readonly property real shadowOpacity: 0.7 * (1 - fsTransitionProg)
|
||||||
readonly property real borderLayoutThickness: hasFullscreen ? 0 : contentItem.Config.border.thickness
|
readonly property real borderLayoutThickness: hasFullscreen ? 0 : contentItem.Config.border.thickness
|
||||||
|
|
||||||
|
property color surfaceColour: Colours.tPalette.m3surface
|
||||||
|
|
||||||
readonly property int dragMaskPadding: {
|
readonly property int dragMaskPadding: {
|
||||||
if (focusGrab.active || panels.popouts.isDetached)
|
if (focusGrab.active || panels.popouts.isDetached)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -76,6 +78,10 @@ StyledWindow {
|
||||||
Anim {}
|
Anim {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Behavior on surfaceColour {
|
||||||
|
CAnim {}
|
||||||
|
}
|
||||||
|
|
||||||
Region {
|
Region {
|
||||||
id: emptyRegion
|
id: emptyRegion
|
||||||
|
|
||||||
|
|
@ -129,7 +135,7 @@ StyledWindow {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
opacity: Colours.transparency.enabled ? Colours.transparency.base : 1
|
opacity: root.surfaceColour.a
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
shadowEnabled: true
|
shadowEnabled: true
|
||||||
|
|
@ -140,12 +146,8 @@ StyledWindow {
|
||||||
BlobGroup {
|
BlobGroup {
|
||||||
id: blobGroup
|
id: blobGroup
|
||||||
|
|
||||||
color: Colours.palette.m3surface
|
color: root.surfaceColour
|
||||||
smoothing: root.contentItem.Config.border.smoothing
|
smoothing: root.contentItem.Config.border.smoothing
|
||||||
|
|
||||||
Behavior on color {
|
|
||||||
CAnim {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BlobInvertedRect {
|
BlobInvertedRect {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue