mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Accessibility]Turn animations off based on Windows settings (#28128)
* FindMyMouse: switch animations on/off based on global windows settings * Fancy Zones: enable/disable animations based on global Windows settings * Shortcut Guide: enabling/disabling animations based on global Windows settings * spell checker * Making MouseUtils settings dependent on global windows settings, AnimationEffects. If the global settings is disabled the MouseUtils animation settings is disabled too, description shows the reason. * Adding error detection, log on SystemParametersInfo call. * Adding infobar instead of changing description of the settingsbar. * spell checker * moving native constant into NativeMethods class
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include <common/logger/logger.h>
|
||||
#include <common/utils/MsWindowsSettings.h>
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -125,6 +126,12 @@ ZonesOverlay::RenderResult ZonesOverlay::Render()
|
||||
return RenderResult::AnimationEnded;
|
||||
}
|
||||
|
||||
BOOL isEnabledAnimations = GetAnimationsEnabled();
|
||||
if (!isEnabledAnimations)
|
||||
{
|
||||
animationAlpha = 1.f;
|
||||
}
|
||||
|
||||
m_renderTarget->BeginDraw();
|
||||
|
||||
// Draw backdrop
|
||||
|
||||
Reference in New Issue
Block a user