fix: popouts anims, should not be per-monitor
Anims are not per-monitor
This commit is contained in:
parent
9be9ec10a6
commit
31d7a77929
1 changed files with 7 additions and 4 deletions
|
|
@ -32,13 +32,16 @@ Item {
|
|||
property string detachedMode
|
||||
property string queuedMode
|
||||
|
||||
property int animLength: Tokens.anim.durations.expressiveDefaultSpatial
|
||||
property easingCurve animCurve: Tokens.anim.expressiveDefaultSpatial
|
||||
// Dummy object so Tokens attached prop resolves to global config
|
||||
// Anim configs are not per-monitor
|
||||
readonly property QtObject dummy: QtObject {}
|
||||
property int animLength: dummy.Tokens.anim.durations.expressiveDefaultSpatial
|
||||
property easingCurve animCurve: dummy.Tokens.anim.expressiveDefaultSpatial
|
||||
|
||||
function setAnims(detach: bool): void {
|
||||
const type = `expressive${detach ? "Slow" : "Default"}Spatial`;
|
||||
animLength = Tokens.anim.durations[type];
|
||||
animCurve = Tokens.anim[type];
|
||||
animLength = dummy.Tokens.anim.durations[type];
|
||||
animCurve = dummy.Tokens.anim[type];
|
||||
}
|
||||
|
||||
function detach(mode: string): void {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue