Fix confusion of reduce_motion with minimalist_mode (#2413)

This commit is contained in:
Daniel Tang 2023-03-06 03:15:43 -05:00 committed by GitHub
parent e5d5d1d4bd
commit 0aeeabde69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -784,7 +784,7 @@ html {{ {font} }}
f"""document.body.classList.toggle("fancy", {json.dumps(not mw.pm.minimalist_mode())}); """ f"""document.body.classList.toggle("fancy", {json.dumps(not mw.pm.minimalist_mode())}); """
) )
self.eval( self.eval(
f"""document.body.classList.toggle("reduce-motion", {json.dumps(mw.pm.minimalist_mode())}); """ f"""document.body.classList.toggle("reduce-motion", {json.dumps(mw.pm.reduce_motion())}); """
) )
@deprecated(info="use theme_manager.qcolor() instead") @deprecated(info="use theme_manager.qcolor() instead")