Class JNIThemeInfoWindows


  • public class JNIThemeInfoWindows
    extends Object
    • Constructor Detail

      • JNIThemeInfoWindows

        public JNIThemeInfoWindows()
    • 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.