On Thu, 28 May 2026 00:24:58 GMT, Michael Strauß <[email protected]> wrote:

> Several JavaFX controls use animations to convey state changes, some of which 
> are controllable by developers (for example: `TitledPane.animated` or 
> `Chart.animated`). However, none of those controls respect the 
> `reducedMotion` preference that was introduced with 
> [JDK-8341514](https://bugs.openjdk.org/browse/JDK-8341514).
> 
> This enhancement changes the behavior of the following control skins to take 
> the `Scene.Preferences.reducedMotion` preference into account when 
> determining whether to animate a state change:
> 
> * `TableRowSkinBase`
> * `TitledPaneSkin`
> * `TabPaneSkin`
> * `PaginationSkin`
> * Charts
> 
> For controls whose animation can be toggled by developers, it is useful to 
> think of the `animated` property as the application choice, while 
> `reducedMotion` is the user choice.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 738be0f1
Author:    Michael Strauß <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/738be0f10f8dbbbe182aa3d06ee86313fa181bb1
Stats:     656 lines in 19 files changed: 497 ins; 55 del; 104 mod

8385459: Animations should respect reducedMotion preference

Reviewed-by: angorya, mhanl

-------------

PR: https://git.openjdk.org/jfx/pull/2177

Reply via email to