fix settings background desync
Format (JS/TS) / format (pull_request) Failing after 6s
Lint (JS/TS) / lint (pull_request) Failing after 11s
Lint (Python) / lint (pull_request) Failing after 25s
Lint (Rust) / lint (pull_request) Failing after 1m33s

This commit is contained in:
2026-05-19 07:09:39 +02:00
parent d0e696c681
commit 3bd9444e2f
3 changed files with 60 additions and 36 deletions
+41 -30
View File
@@ -7,45 +7,56 @@ import qs.Helpers
Item {
id: root
property real offsetScale: shouldBeActive ? 0 : 1
required property var panels
required property ShellScreen screen
readonly property bool shouldBeActive: visibilities.settings
required property PersistentProperties visibilities
implicitHeight: 0
anchors.topMargin: (-implicitHeight - 5) * offsetScale
implicitHeight: content.implicitHeight
implicitWidth: content.implicitWidth
visible: height > 0
opacity: 1 - offsetScale
visible: offsetScale < 1
states: State {
name: "visible"
when: root.visibilities.settings
PropertyChanges {
root.implicitHeight: content.implicitHeight
Behavior on offsetScale {
Anim {
duration: Appearance.anim.durations.expressiveDefaultSpatial
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
}
}
transitions: [
Transition {
from: ""
to: "visible"
Anim {
duration: MaterialEasing.expressiveEffectsTime
easing.bezierCurve: MaterialEasing.expressiveEffects
property: "implicitHeight"
target: root
}
},
Transition {
from: "visible"
to: ""
Anim {
easing.bezierCurve: MaterialEasing.expressiveEffects
property: "implicitHeight"
target: root
}
}
]
// states: State {
// name: "visible"
// when: root.visibilities.settings
//
// PropertyChanges {
// root.implicitHeight: content.implicitHeight
// }
// }
// transitions: [
// Transition {
// from: ""
// to: "visible"
//
// Anim {
// duration: MaterialEasing.expressiveEffectsTime
// easing.bezierCurve: MaterialEasing.expressiveEffects
// property: "implicitHeight"
// target: root
// }
// },
// Transition {
// from: "visible"
// to: ""
//
// Anim {
// easing.bezierCurve: MaterialEasing.expressiveEffects
// property: "implicitHeight"
// target: root
// }
// }
// ]
CustomClippingRect {
anchors.fill: parent