()
| 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; |
no test coverage detected