Class HighContrastLightTheme

java.lang.Object
com.github.weisj.darklaf.theme.Theme
com.github.weisj.darklaf.theme.HighContrastLightTheme
All Implemented Interfaces:
Serializable, Comparable<Theme>, Comparator<Theme>

@AutoService(Theme.class) public class HighContrastLightTheme extends Theme
See Also:
Serialized Form
  • Constructor Details

    • HighContrastLightTheme

      public HighContrastLightTheme()
  • Method Details

    • getPresetIconRule

      protected PresetIconRule getPresetIconRule()
      Description copied from class: Theme
      The preset icon theme.
      Specified by:
      getPresetIconRule in class Theme
      Returns:
      the icon theme.
    • getPrefix

      public String getPrefix()
      Description copied from class: Theme
      Get the prefix for resource loading.
      Specified by:
      getPrefix in class Theme
      Returns:
      the prefix for loading resources.
    • getResourcePath

      protected String getResourcePath()
      Description copied from class: Theme
      The path to the resource location relative to the classpath of Theme.getLoaderClass().
      Overrides:
      getResourcePath in class Theme
      Returns:
      the relative resource path
    • getName

      public String getName()
      Description copied from class: Theme
      Get the name of this theme.
      Specified by:
      getName in class Theme
      Returns:
      the name of the theme.
    • getLoaderClass

      protected Class<? extends Theme> getLoaderClass()
      Description copied from class: Theme
      The class used to determine the runtime location of resources. It is advised to explicitly return the class instead of using Object.getClass() to protect against extending the theme.
      Specified by:
      getLoaderClass in class Theme
      Returns:
      the loader class.
    • getColorToneRule

      public ColorToneRule getColorToneRule()
      Description copied from class: Theme
      Returns the style rule for this theme.
      Specified by:
      getColorToneRule in class Theme
      Returns:
      the style rule.
    • getContrastRule

      public ContrastRule getContrastRule()
      Description copied from class: Theme
      Returns contrast rule for the theme.
      Overrides:
      getContrastRule in class Theme
      Returns:
      the contrast rule.
    • loadIconTheme

      public void loadIconTheme(Properties properties, UIDefaults currentDefaults)
      Description copied from class: Theme
      Load the general properties file for the icon themes.

      Note: When overwriting a theme you also have overwrite Theme.getLoaderClass() to return the class of the theme you are overwriting. In this case you should use Theme.loadWithClass(String, Class) instead of Theme.load(String).

      Overrides:
      loadIconTheme in class Theme
      Parameters:
      properties - the properties to load the value into.
      currentDefaults - the current ui defaults.
    • customizeUIProperties

      public void customizeUIProperties(Properties properties, UIDefaults currentDefaults)
      Description copied from class: Theme
      Customize the ui defaults.

      Note: When overwriting a theme you should use Theme.loadWithClass(String, Class) instead of Theme.load(String).

      Overrides:
      customizeUIProperties in class Theme
      Parameters:
      properties - the properties to load the values into.
      currentDefaults - the current ui defaults.
    • customizePlatformProperties

      public void customizePlatformProperties(Properties properties, UIDefaults currentDefaults)
      Description copied from class: Theme
      Customize the platform defaults.

      Note: When overwriting a theme you should use Theme.loadWithClass(String, Class) instead of Theme.load(String).

      Overrides:
      customizePlatformProperties in class Theme
      Parameters:
      properties - the properties to load the values into.
      currentDefaults - the current ui defaults.