This version expands FocusRingAnimationManager
to also provide a global toggle for whether focus rings will be rendered at all. This is useful for when applications only want to render rings when the user is in a "keyboard mode" or for any other reason.
The scope of changes is:
FocusRingAnimationManager
->FocusRingManager
.FocusRingManager.ringsEnabled
is a boolean indicating whether rings are currently allowed to render.FocusRingManager.setRingsEnabled(enabled: boolean)
is a function to change theringsEnabled
value. It will also force the rings to immediately re-render to pick up this value.