- All Known Implementing Classes:
CupertinoDark,CupertinoLight,Dracula,NordDark,NordLight,PrimerDark,PrimerLight
public interface Theme
The basic theme interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns theme name.Returns the path to the theme user-agent stylesheet.@Nullable StringReturns the path to the theme user-agent stylesheet in binary (BSS) format.booleanSignifies whether the theme uses a light font on a dark background or vise versa.default booleanReturns whether the theme is a standard theme provided by the OpenJFX or a custom theme.static ThemeA simple factory method for instantiating a new theme.
-
Method Details
-
getName
String getName()Returns theme name. -
getUserAgentStylesheet
String getUserAgentStylesheet()Returns the path to the theme user-agent stylesheet. SeeApplication.setUserAgentStylesheet(String)for more info. -
getUserAgentStylesheetBSS
Returns the path to the theme user-agent stylesheet in binary (BSS) format. SeeApplication.setUserAgentStylesheet(String)for more info. All built-in themes are available in BSS format, but custom themes may not, hence the method may return null value. -
isDarkMode
boolean isDarkMode()Signifies whether the theme uses a light font on a dark background or vise versa. -
of
A simple factory method for instantiating a new theme. -
isDefault
default boolean isDefault()Returns whether the theme is a standard theme provided by the OpenJFX or a custom theme.
-