Summary: | Add support for prefers-reduced-motion | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | momo <momo.cao> |
Component: | kcm_style | Assignee: | Mikhail Zolotukhin <mail> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | kde, mail |
Priority: | NOR | ||
Version: | 5.18.4 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
momo
2020-04-05 08:52:26 UTC
Do you happen to know how browser's load this from gnome? I have found this piece of code which I think is responsible for reading the value from Gnome/GTK in Firefox [1]. Unfortunately I couldn't find the same setting in Chromium but I'm sure someone more familiar with the codebase can. [1]: https://dxr.mozilla.org/mozilla-central/source/widget/gtk/nsLookAndFeel.cpp#745 I have found the setting in Chromium[1]. If you go up through the call tree, it seems that they're checking this "gtk-enable-animations" variable to set a couple of other settings[2] (e.g. smooth scrolling [3]), as Gnome seems to lack a specific setting for reduced motion. [1]: https://source.chromium.org/chromium/chromium/src/+/master:ui/gtk/gtk_ui.cc;l=719;bpv=0;bpt=1?originalUrl=https:%2F%2Fcs.chromium.org%2F [2]: https://source.chromium.org/chromium/chromium/src/+/master:ui/gfx/animation/animation_linux.cc;l=17;drc=28442cacc3be1a7d05a898aba663025a143095ac;bpv=1;bpt=1?originalUrl=https:%2F%2Fcs.chromium.org%2F [3]: https://askubuntu.com/questions/903160/turn-off-smooth-scrolling-in-gtk3 Ok, we can sync our animation slider to write out that setting. gtk-enable-animations is already synced. See https://phabricator.kde.org/D26825 |