mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Rename "reduced-motion" to "reduce-motion"
This commit is contained in:
parent
9373e1fbd0
commit
3d8c4ead8f
8 changed files with 13 additions and 13 deletions
|
@ -22,8 +22,8 @@ body {
|
||||||
&:not(.isMac) * {
|
&:not(.isMac) * {
|
||||||
@include scrollbar.custom;
|
@include scrollbar.custom;
|
||||||
}
|
}
|
||||||
&.reduced-motion,
|
&.reduce-motion,
|
||||||
&.reduced-motion * {
|
&.reduce-motion * {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
animation: none !important;
|
animation: none !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -518,11 +518,11 @@ create table if not exists profiles
|
||||||
def setUiScale(self, scale: float) -> None:
|
def setUiScale(self, scale: float) -> None:
|
||||||
self.meta["uiScale"] = scale
|
self.meta["uiScale"] = scale
|
||||||
|
|
||||||
def reduced_motion(self) -> bool:
|
def reduce_motion(self) -> bool:
|
||||||
return self.meta.get("reduced_motion", False)
|
return self.meta.get("reduce_motion", False)
|
||||||
|
|
||||||
def set_reduced_motion(self, on: bool) -> None:
|
def set_reduce_motion(self, on: bool) -> None:
|
||||||
self.meta["reduced_motion"] = on
|
self.meta["reduce_motion"] = on
|
||||||
|
|
||||||
def collapse_toolbar(self) -> bool:
|
def collapse_toolbar(self) -> bool:
|
||||||
return self.meta.get("collapse_toolbar", False)
|
return self.meta.get("collapse_toolbar", False)
|
||||||
|
|
|
@ -174,8 +174,8 @@ class ThemeManager:
|
||||||
classes.extend(["nightMode", "night_mode"])
|
classes.extend(["nightMode", "night_mode"])
|
||||||
if self.macos_dark_mode():
|
if self.macos_dark_mode():
|
||||||
classes.append("macos-dark-mode")
|
classes.append("macos-dark-mode")
|
||||||
if aqt.mw.pm.reduced_motion():
|
if aqt.mw.pm.reduce_motion():
|
||||||
classes.append("reduced-motion")
|
classes.append("reduce-motion")
|
||||||
if qtmajor == 5 and qtminor < 15:
|
if qtmajor == 5 and qtminor < 15:
|
||||||
classes.append("no-blur")
|
classes.append("no-blur")
|
||||||
return " ".join(classes)
|
return " ".join(classes)
|
||||||
|
|
|
@ -57,7 +57,7 @@ samp {
|
||||||
unicode-bidi: normal !important;
|
unicode-bidi: normal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reduced-motion * {
|
.reduce-motion * {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
animation: none !important;
|
animation: none !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
export let collapse = false;
|
export let collapse = false;
|
||||||
export let toggleDisplay = 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;
|
let contentHeight = 0;
|
||||||
|
|
||||||
|
|
|
@ -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 { context as editorFieldContext } from "./EditorField.svelte";
|
||||||
import { plainTextIcon } from "./icons";
|
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 editorField = editorFieldContext.get();
|
||||||
const keyCombination = "Control+Shift+X";
|
const keyCombination = "Control+Shift+X";
|
||||||
|
|
|
@ -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 { context as editorFieldContext } from "./EditorField.svelte";
|
||||||
import { richTextIcon } from "./icons";
|
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 editorField = editorFieldContext.get();
|
||||||
const keyCombination = "Control+Shift+X";
|
const keyCombination = "Control+Shift+X";
|
||||||
|
|
|
@ -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 { context as editorFieldContext } from "./EditorField.svelte";
|
||||||
import { stickyIcon } from "./icons";
|
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 active: boolean;
|
||||||
export let show: boolean;
|
export let show: boolean;
|
||||||
|
|
Loading…
Reference in a new issue