Class JNIThemeInfoWindows
java.lang.Object
com.github.weisj.darklaf.platform.windows.JNIThemeInfoWindows
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcreateEventHandler(Runnable callback)Create a monitor event handler.static voiddeleteEventHandler(long handle)Deletes the event handler.static intReturns the currently used accent color.static longReturns the font scaling factor in percent i.e.static booleanReturns whether dark mode is enabled.static booleanReturns whether high contrast mode is enabled.
-
Constructor Details
-
JNIThemeInfoWindows
public JNIThemeInfoWindows()
-
-
Method Details
-
isDarkThemeEnabled
public static boolean isDarkThemeEnabled()Returns whether dark mode is enabled.- Returns:
- true if enabled.
-
isHighContrastEnabled
public static boolean isHighContrastEnabled()Returns whether high contrast mode is enabled.- Returns:
- true if enabled.
-
getFontScaleFactor
public static long getFontScaleFactor()Returns the font scaling factor in percent i.e. 100 is original size and 200 is twice as big.- Returns:
- the font scale factor.
-
getAccentColor
public static int getAccentColor()Returns the currently used accent color.- Returns:
- the accent color in the format 0xAARRGGBB.
-
createEventHandler
Create a monitor event handler.- Parameters:
callback- the event callback.- Returns:
- the event handler pointer.
-
deleteEventHandler
public static void deleteEventHandler(long handle)Deletes the event handler.- Parameters:
handle- the event handler pointer.
-