perf: reduce BackgroundOverlay animation from continuous 60fps to ~18%; gate panel bar Behaviors on _showPanel
This commit is contained in:
parent
4d730f51f3
commit
a7f0fd2785
3 changed files with 12 additions and 3 deletions
|
|
@ -124,9 +124,12 @@ PanelWindow {
|
|||
target: colon
|
||||
property: "opacity"
|
||||
to: 0.1
|
||||
duration: 1000
|
||||
duration: 150
|
||||
easing.type: Easing.InOutSine
|
||||
}
|
||||
PauseAnimation {
|
||||
duration: 700
|
||||
}
|
||||
ScriptAction {
|
||||
script: colon._colorIdx++
|
||||
}
|
||||
|
|
@ -134,9 +137,12 @@ PanelWindow {
|
|||
target: colon
|
||||
property: "opacity"
|
||||
to: 0.85
|
||||
duration: 1000
|
||||
duration: 150
|
||||
easing.type: Easing.InOutSine
|
||||
}
|
||||
PauseAnimation {
|
||||
duration: 700
|
||||
}
|
||||
}
|
||||
}
|
||||
Text {
|
||||
|
|
@ -200,7 +206,7 @@ PanelWindow {
|
|||
Behavior on width {
|
||||
enabled: !M.Theme.reducedMotion
|
||||
NumberAnimation {
|
||||
duration: 300
|
||||
duration: 50
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue