MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / applyAnimationSetting

Method applyAnimationSetting

src/lib/settings.js:420–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418 }
419
420 async applyAnimationSetting() {
421 let value = this.value.animation;
422 if (value === "system") {
423 const res = await new Promise((resolve, reject) => {
424 system.getGlobalSetting("animator_duration_scale", resolve, reject);
425 });
426 if (res) value = "yes";
427 else value = "no";
428 }
429
430 if (value === "yes") {
431 app.classList.remove("no-animation");
432 } else if (value === "no") {
433 app.classList.add("no-animation");
434 }
435 }
436
437 applyUiZoomSetting() {
438 const zoom = Number(this.value.uiZoom) || 100;

Callers 2

#applySettingsMethod · 0.95
beforeRenderFunction · 0.80

Calls 3

getGlobalSettingMethod · 0.80
addMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected