Package com.github.weisj.darklaf.theme
Class DarculaTheme
java.lang.Object
com.github.weisj.darklaf.theme.Theme
com.github.weisj.darklaf.theme.DarculaTheme
- All Implemented Interfaces:
Serializable,Comparable<Theme>,Comparator<Theme>
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the style rule for this 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)Load the general properties file for the icon themes.booleanReturns whether this theme supports custom accent colors.booleanReturns whether this theme supports custom selection colors.Methods inherited from class com.github.weisj.darklaf.theme.Theme
appearsEqualTo, baseThemeOf, compare, compareTo, copy, customizeGlobals, customizeIconTheme, customizePlatformProperties, customizeUIProperties, derive, equals, getAccentColorRule, getContrastRule, getDisplayName, getFontSizeRule, getPropertyFilePath, getThemeClass, hashCode, isDark, isHighContrast, load, loadAccentProperties, loadCustomProperties, loadDefaults, loadPropertyFile, loadPropertyFile, loadStyleSheet, loadWithClass, toString, useCustomDecorations, withDisplayNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DarculaTheme
public DarculaTheme()
-
-
Method Details
-
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
-
getPrefix
Description copied from class:ThemeGet the prefix for resource loading. -
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
Description copied from class:ThemeReturns the style rule for this theme.- Specified by:
getColorToneRulein classTheme- Returns:
- the style rule.
-
getPresetIconRule
Description copied from class:ThemeThe preset icon theme.- Specified by:
getPresetIconRulein classTheme- Returns:
- the icon theme.
-
supportsCustomAccentColor
public boolean supportsCustomAccentColor()Description copied from class:ThemeReturns whether this theme supports custom accent colors.- Overrides:
supportsCustomAccentColorin classTheme- Returns:
- true if supported.
-
supportsCustomSelectionColor
public boolean supportsCustomSelectionColor()Description copied from class:ThemeReturns whether this theme supports custom selection colors.- Overrides:
supportsCustomSelectionColorin classTheme- Returns:
- true if supported.
-
loadIconTheme
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.
-