Fluent-Qt

Foundations

Motion

Set how much the application animates, including a reduced-motion mode.

Motion modes

MotionPolicy has three modes. Full plays all animations. Reduced keeps state transitions but shortens them, and stops continuous motion such as loops and spinners. Disabled changes state instantly. The policy does not look at which property animates, so a control that should avoid movement in Reduced mode handles that itself. setAnimationEnabled(false) turns off one control's animations.

#include <FluentQt/Foundation.h>

fluent::MotionPolicy::instance().setMode(fluent::MotionPolicy::Mode::Reduced);

Custom animations

In custom animations, use MotionPolicy::instance().shouldAnimate() and resolvedDuration() instead of hard-coded durations. Pass MotionPolicy::Kind::Continuous for loops and spinners so Reduced mode stops them.

API reference