svx/source/sdr/overlay/overlayrectangle.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 36b69c4525070f1258eac5c566c6dc4940deee24
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Nov 27 14:09:20 2024 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Nov 27 16:27:23 2024 +0100

    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.wegh...@posteo.de>
    Tested-by: Jenkins

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;

Reply via email to