perf: reduce BackgroundOverlay animation from continuous 60fps to ~18%; gate panel bar Behaviors on _showPanel

This commit is contained in:
Damocles 2026-04-15 19:35:16 +02:00
parent 4d730f51f3
commit a7f0fd2785
3 changed files with 12 additions and 3 deletions

View file

@ -121,6 +121,7 @@ M.BarSection {
opacity: 0.4
radius: 3
Behavior on width {
enabled: root._showPanel
NumberAnimation {
duration: 200
}
@ -134,6 +135,7 @@ M.BarSection {
color: root.accentColor
radius: 3
Behavior on width {
enabled: root._showPanel
NumberAnimation {
duration: 200
}