mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
Two hooks modelled overlapping concerns and useReducedEffects imported useReducedMotion for its default, coupling them. Collapse to a single useReducedMotion that owns the whole "reduce motion / effects" axis: enabled = override ?? OS prefers-reduced-motion (+ toggle()) It drives the one r-v2-reduced-motion root class (background blur, cover blur-up, the global animation/transition neutralize) and the JS motion gates (cover CD-spin, view-transition morphs, RExpandTransition, RBox3D). One hook, one Settings toggle, one source of truth. - Delete useReducedEffects; move its override tests onto useReducedMotion. - Rename the class r-v2-reduced-effects -> r-v2-reduced-motion and the localStorage key to settings.v2.reducedMotion. - Rename the i18n keys reduced-effects(-desc) -> reduced-motion(-desc) across all locales; title is now "Reduced motion" (the description already covered both blur and animation). Generated-By: PostHog Code Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7