question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

disabling animations

See original GitHub issue

Version of Radiance (current development is 4.0-SNAPSHOT)

3.5.1

Sub-project (Neon, Trident, Substance, Flamingo, …)

Substance?

Version of Java (current minimum is 9)

13

Version of OS

Ubuntu 16

The issue you’re experiencing (expected vs actual, screenshot, stack trace etc)

Thanks, this is a fantastic project. I’m attempting to disable the animations on the Substance Graphite look and feel - in particular the fade-to-white on hover-over a JButton and Menu Item. My first attempt at this is below…but no luck. Any ideas?

                  for ( SubstanceSlices.AnimationFacet sf : new SubstanceSlices.AnimationFacet[]{
                            SubstanceSlices.AnimationFacet.ROLLOVER,
                            SubstanceSlices.AnimationFacet.GHOSTING_BUTTON_PRESS,
                            SubstanceSlices.AnimationFacet.GHOSTING_ICON_ROLLOVER,
                            SubstanceSlices.AnimationFacet.ICON_GLOW,
                            SubstanceSlices.AnimationFacet.SELECTION,
                            SubstanceSlices.AnimationFacet.GHOSTING_BUTTON_PRESS,
                            SubstanceSlices.AnimationFacet.FOCUS,
                            SubstanceSlices.AnimationFacet.FOCUS_LOOP_ANIMATION,
                            SubstanceSlices.AnimationFacet.PRESS,
                            SubstanceSlices.AnimationFacet.ARM,
                    } ) {
					    AnimationConfigurationManager.getInstance().disallowAnimations( sf, JTabbedPane.class );
					    AnimationConfigurationManager.getInstance().disallowAnimations( sf, JButton.class );
					    AnimationConfigurationManager.getInstance().disallowAnimations( sf, JMenuItem.class );
					    AnimationConfigurationManager.getInstance().disallowAnimations( sf, JMenu.class );
                    }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kirill-grouchnikovcommented, Feb 11, 2021

See https://github.com/kirill-grouchnikov/substance/issues/28

I thought I added a bit more comments around the scope of what disallowAnimations does, but I didn’t. I’ll add it to the relevant SubstanceCortex APIs (note that you shouldn’t be using AnimationConfigurationManager directly, as that is in an internal package).

The short answer is that you can’t selectively disable animations on components beyond a few specific cases like cell renderers and custom icon glows. And there are no plans to extend that functionality to control the other animations.

0reactions
twakcommented, Feb 16, 2021

I ended up using:

AnimationConfigurationManager.setTimelineDuration(0)

as suggested in the linked post - this increases the responsiveness on a slow system for me. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make Windows 10 feel faster by disabling animations
Disable Windows 10 animations · Open the Windows Control Panel (from Start, type "control," and choose Control Panel · Navigate to System & ......
Read more >
How to Turn Off Animations and Make Windows 10 Seem Faster
If you'd like to disable some animations and leave others enabled, visit the classic Performance Options settings. There, you can disable the ...
Read more >
How to disable Windows 10's window animations to speed up ...
Right-click the Start menu and select System from the context menu. This will take you to Control Panel > System and Security >...
Read more >
Turn off Office animations - Microsoft Support
To turn off Microsoft 365 animations in Windows 7 or 8 · Open the Ease of Access Center by pressing the Windows logo...
Read more >
How to Disable Animations in Windows 10 - wikiHow
1. Open the Settings app. Press the Start button in the lower-left corner of your screen and select the settings gear. You can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found