Class MacApplicationUiAppearance


  • public class MacApplicationUiAppearance
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setToAqua()
      Sets the current appearance to aqua (light mode).
      boolean setToDarkAqua()
      Sets the current appearance to dark aqua (dark mode).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setToAqua

        public void setToAqua()
        Sets the current appearance to aqua (light mode).
      • setToDarkAqua

        public boolean setToDarkAqua()
        Sets the current appearance to dark aqua (dark mode). Requires at least macOS 10.14.
        Returns:
        true if the appearance successfully changed to dark aqua, false if the macOS minimum requirement has not been met.