pub fn apply_system_reduce_motion(cx: &mut App)Expand description
Reads the operating system’s reduced-motion preference into
App::set_reduce_motion.
gpui_deck::init calls this once. Call it again to re-read the preference
on a platform Base does not follow live. The current macOS and Windows
implementations read the preference only when this function is called.
Explicit overrides are preserved. For direct App::set_reduce_motion
calls, a flag different from what Base last wrote is also left alone; a
same-value application choice cannot be detected. This function does not
clear either override: use set_reduce_motion_preference with
ReduceMotionPreference::System.
Where the platform cannot say (wasm, an unsupported desktop, a Linux
session without the portal) the flag is left as it is, and under GPUI’s
test scheduler the platform is not asked at all.