Interface UIAwareIcon

All Superinterfaces:
DynamicIcon, Icon
All Known Implementing Classes:
DarkUIAwareIcon, DefaultUIAwareIcon, LazyUIAwareIcon, SimpleUIAwareIcon

public interface UIAwareIcon extends DynamicIcon
Icon which dynamically adapts to whether the UI is currently light or dark.
  • Method Details

    • getDual

      UIAwareIcon getDual()
      Return the dual version of the icon. i.e. if the current icon is light then the dual version will be dark and vice versa. Implementations of this method should respect that the appearance of the icon after invoking this method twice should be the same.
      Returns:
      the dual icon.