Package com.github.weisj.darklaf.theme
Class HighContrastDarkTheme
java.lang.Object
com.github.weisj.darklaf.theme.Theme
com.github.weisj.darklaf.theme.HighContrastDarkTheme
- All Implemented Interfaces:
Serializable,Comparable<Theme>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomizePlatformProperties(Properties properties, UIDefaults currentDefaults, com.github.weisj.darklaf.properties.icons.IconResolver iconResolver) Customize the platform defaults.voidcustomizeUIProperties(Properties properties, UIDefaults currentDefaults, com.github.weisj.darklaf.properties.icons.IconResolver iconResolver) Customize the ui defaults.com.github.weisj.darklaf.theme.spec.ColorToneRuleReturns the style rule for this theme.com.github.weisj.darklaf.theme.spec.ContrastRuleReturns contrast rule for the theme.The class used to determine the runtime location of resources.getName()Get the name of this theme.Get the prefix for resource loading.protected PresetIconRuleThe preset icon theme.protected StringThe path to the resource location relative to the classpath ofTheme.getLoaderClass().voidloadIconTheme(Properties properties, UIDefaults currentDefaults, com.github.weisj.darklaf.properties.icons.IconResolver iconResolver) Load the general properties file for the icon themes.Methods inherited from class com.github.weisj.darklaf.theme.Theme
appearsEqualTo, baseThemeOf, compareTo, copy, customizeGlobals, customizeIconTheme, derive, equals, getAccentColorRule, getDisplayName, getFontPrototype, getFontSizeRule, getPropertyFilePath, getThemeClass, hashCode, isDark, isHighContrast, load, loadAccentProperties, loadCustomProperties, loadDefaults, loadPropertyFile, loadPropertyFile, loadStyleSheet, loadWithClass, supportsCustomAccentColor, supportsCustomSelectionColor, toString, useCustomDecorations, withDisplayName
-
Constructor Details
-
HighContrastDarkTheme
public HighContrastDarkTheme()
-
-
Method Details
-
getPresetIconRule
Description copied from class:ThemeThe preset icon theme.- Specified by:
getPresetIconRulein classTheme- Returns:
- the icon theme.
-
getPrefix
Description copied from class:ThemeGet the prefix for resource loading. -
getResourcePath
Description copied from class:ThemeThe path to the resource location relative to the classpath ofTheme.getLoaderClass().- Overrides:
getResourcePathin classTheme- Returns:
- the relative resource path
-
getName
Description copied from class:ThemeGet the name of this theme. -
getLoaderClass
Description copied from class:ThemeThe class used to determine the runtime location of resources. It is advised to explicitly return the class instead of usingObject.getClass()to protect against extending the theme.- Specified by:
getLoaderClassin classTheme- Returns:
- the loader class.
-
getColorToneRule
public com.github.weisj.darklaf.theme.spec.ColorToneRule getColorToneRule()Description copied from class:ThemeReturns the style rule for this theme.- Specified by:
getColorToneRulein classTheme- Returns:
- the style rule.
-
getContrastRule
public com.github.weisj.darklaf.theme.spec.ContrastRule getContrastRule()Description copied from class:ThemeReturns contrast rule for the theme.- Overrides:
getContrastRulein classTheme- Returns:
- the contrast rule.
-
loadIconTheme
public void loadIconTheme(Properties properties, UIDefaults currentDefaults, com.github.weisj.darklaf.properties.icons.IconResolver iconResolver) Description copied from class:ThemeLoad 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 useTheme.loadWithClass(String, Class)instead ofTheme.load(String).- Overrides:
loadIconThemein classTheme- Parameters:
properties- the properties to load the value into.currentDefaults- the current ui defaults.iconResolver- the icon resolver.
-
customizeUIProperties
public void customizeUIProperties(Properties properties, UIDefaults currentDefaults, com.github.weisj.darklaf.properties.icons.IconResolver iconResolver) Description copied from class:ThemeCustomize the ui defaults.Note: When overwriting a theme you should use
Theme.loadWithClass(String, Class)instead ofTheme.load(String).- Overrides:
customizeUIPropertiesin classTheme- Parameters:
properties- the properties to load the values into.currentDefaults- the current ui defaults.
-
customizePlatformProperties
public void customizePlatformProperties(Properties properties, UIDefaults currentDefaults, com.github.weisj.darklaf.properties.icons.IconResolver iconResolver) Description copied from class:ThemeCustomize the platform defaults.Note: When overwriting a theme you should use
Theme.loadWithClass(String, Class)instead ofTheme.load(String).- Overrides:
customizePlatformPropertiesin classTheme- Parameters:
properties- the properties to load the values into.currentDefaults- the current ui defaults.
-