Rename "reduced-motion" to "reduce-motion"

This commit is contained in:
Matthias Metelka 2023-01-12 19:51:42 +01:00
parent 9373e1fbd0
commit 3d8c4ead8f
8 changed files with 13 additions and 13 deletions

View file

@ -22,8 +22,8 @@ body {
&:not(.isMac) * {
@include scrollbar.custom;
}
&.reduced-motion,
&.reduced-motion * {
&.reduce-motion,
&.reduce-motion * {
transition: none !important;
animation: none !important;
}

View file

@ -518,11 +518,11 @@ create table if not exists profiles
def setUiScale(self, scale: float) -> None:
self.meta["uiScale"] = scale
def reduced_motion(self) -> bool:
return self.meta.get("reduced_motion", False)
def reduce_motion(self) -> bool:
return self.meta.get("reduce_motion", False)
def set_reduced_motion(self, on: bool) -> None:
self.meta["reduced_motion"] = on
def set_reduce_motion(self, on: bool) -> None:
self.meta["reduce_motion"] = on
def collapse_toolbar(self) -> bool:
return self.meta.get("collapse_toolbar", False)

View file

@ -174,8 +174,8 @@ class ThemeManager:
classes.extend(["nightMode", "night_mode"])
if self.macos_dark_mode():
classes.append("macos-dark-mode")
if aqt.mw.pm.reduced_motion():
classes.append("reduced-motion")
if aqt.mw.pm.reduce_motion():
classes.append("reduce-motion")
if qtmajor == 5 and qtminor < 15:
classes.append("no-blur")
return " ".join(classes)

View file

@ -57,7 +57,7 @@ samp {
unicode-bidi: normal !important;
}
.reduced-motion * {
.reduce-motion * {
transition: none !important;
animation: none !important;
}

View file

@ -9,7 +9,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let collapse = false;
export let toggleDisplay = false;
export let animated = !document.body.classList.contains("reduced-motion");
export let animated = !document.body.classList.contains("reduce-motion");
let contentHeight = 0;

View file

@ -11,7 +11,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { context as editorFieldContext } from "./EditorField.svelte";
import { plainTextIcon } from "./icons";
const animated = !document.body.classList.contains("reduced-motion");
const animated = !document.body.classList.contains("reduce-motion");
const editorField = editorFieldContext.get();
const keyCombination = "Control+Shift+X";

View file

@ -11,7 +11,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { context as editorFieldContext } from "./EditorField.svelte";
import { richTextIcon } from "./icons";
const animated = !document.body.classList.contains("reduced-motion");
const animated = !document.body.classList.contains("reduce-motion");
const editorField = editorFieldContext.get();
const keyCombination = "Control+Shift+X";

View file

@ -12,7 +12,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { context as editorFieldContext } from "./EditorField.svelte";
import { stickyIcon } from "./icons";
const animated = !document.body.classList.contains("reduced-motion");
const animated = !document.body.classList.contains("reduce-motion");
export let active: boolean;
export let show: boolean;