Class ColorScheme

java.lang.Object
net.mcreator.ui.laf.themes.ColorScheme

public class ColorScheme extends Object

A ColorScheme is an object defining the look of MCreator in general. This object contains only the 5 main colors used by the software. However, A ColorScheme can also defines the style and colors of BlocklyPanel and RSyntaxTextAreaStyler if it is defined inside a plugin.

  • Field Details

    • MAIN_TINT_DEFAULT

      public static final Color MAIN_TINT_DEFAULT
  • Constructor Details

    • ColorScheme

      public ColorScheme()
  • Method Details

    • init

      protected void init()
    • getBackgroundColor

      public Color getBackgroundColor()
      Returns:
      Background of UI panels
    • getAltBackgroundColor

      public Color getAltBackgroundColor()
      Returns:
      Background of components (e.g. text fields, checkboxes and sound selectors)
    • getSecondAltBackgroundColor

      public Color getSecondAltBackgroundColor()
      Returns:
      Second background color used (e.g. workspace background)
    • getAltForegroundColor

      public Color getAltForegroundColor()
      Returns:

      Secondary text color

    • getForegroundColor

      public Color getForegroundColor()
      Returns:

      Color used for most of texts

    • getInterfaceAccentColor

      public Color getInterfaceAccentColor()
      Returns:

      Returns the interfaceAccentColor if defined by theme, otherwise the one defined by the user in PreferencesData