Class JNIThemeInfoWindows
- java.lang.Object
-
- com.github.weisj.darklaf.platform.windows.JNIThemeInfoWindows
-
public class JNIThemeInfoWindows extends Object
-
-
Constructor Summary
Constructors Constructor Description JNIThemeInfoWindows()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcreateEventHandler(Runnable callback)Create a monitor event handler.static voiddeleteEventHandler(long handle)Deletes the event handler.static intgetAccentColor()Returns the currently used accent color.static longgetFontScaleFactor()Returns the font scaling factor in percent i.e.static booleanisDarkThemeEnabled()Returns whether dark mode is enabled.static booleanisHighContrastEnabled()Returns whether high contrast mode is enabled.
-
-
-
Method Detail
-
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
public static long createEventHandler(Runnable callback)
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.
-
-