diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-27 14:09:20 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-11-27 16:27:23 +0100 |
commit | 36b69c4525070f1258eac5c566c6dc4940deee24 (patch) | |
tree | 513da4e1ee6dcba38a7e5b20f90939be31ee73b3 /svx/source | |
parent | 03b1e988b15866af9d43ac2f1249e5c73d1d22bf (diff) |
tdf#94147 svx a11y: Honor animation setting in OverlayRectangle
Base the decision to disable animation of the
overlay rectangle on whether animations are disabled
(either explicitly in LibreOffice itself or when
LibreOffice uses the default value of "System" for
animations and animations are disabled in the OS/desktop
environment) instead of on the fact whether
or not high contrast mode is enabled.
This is the same criterion as used for Calc's
"marching ants" animation, see
commit ef7429f86788f0616db5b274ec77eb67cd41cb3d
Date: Mon Jul 29 11:36:29 2024 +0200
tdf#161765, tdf#115688 Let user choose which animation settings to use
Change-Id: If14b05006b1b04be9c2da9089dfbfbca70e88f79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177417
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/overlay/overlayrectangle.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/sdr/overlay/overlayrectangle.cxx b/svx/source/sdr/overlay/overlayrectangle.cxx index 3bf04f40d64f..0d8d9d8c925a 100644 --- a/svx/source/sdr/overlay/overlayrectangle.cxx +++ b/svx/source/sdr/overlay/overlayrectangle.cxx @@ -73,11 +73,8 @@ namespace sdr::overlay mnBlinkTime(impCheckBlinkTimeValueRange(500)), mbOverlayState(false) { - if(Application::GetSettings().GetStyleSettings().GetHighContrastMode()) - { - // no animation in high contrast mode + if (!MiscSettings::IsAnimatedOthersAllowed()) bAnimate = false; - } // set AllowsAnimation flag to mark this object as animation capable mbAllowsAnimation = bAnimate; |