Extras: FlatAnimatedLafChange: made transition smoother:

- use a single component in layered pane to paint new and old UI snapshots (previously used two components)
- the snapshot layer component is now opaque, which avoids that window component hierarchy is involved when painting snapshots
- snapshots are now painted immediately, which should result in a smoother transition
- changed animation resolution from 30ms to 16ms
This commit is contained in:
Karl Tauber
2025-09-09 18:54:11 +02:00
parent c051ad5f72
commit d079741f94
2 changed files with 84 additions and 61 deletions

View File

@@ -8,6 +8,7 @@ FlatLaf Change Log
- If using `FlatLaf.registerCustomDefaultsSource( "com.myapp.themes" )` and
named Java modules, it is no longer necessary to add `opens com.myapp.themes;`
to `module-info.java`. (issue #1026)
- Extras: Made animated theme change (class `FlatAnimatedLafChange`) smoother.
#### Fixed bugs