Class ConfigColorScheme

java.lang.Object
net.ixdarklord.coolcatcore.api.config.ConfigColorScheme

public final class ConfigColorScheme extends Object
Every color of a mod's config screens (ARGB). Start from a preset and change what you like:

 ConfigColorScheme.tinted(0xFF7E57C2)                 // the dark look, its greys shaded toward purple
 ConfigColorScheme.LIGHT.toBuilder().accent(0xFF2E7D32).build()
 ConfigColorScheme.DARK.toBuilder().panel(0xC0101820).text(0xFFF0F0F0).build()
 
and hand it to ConfigTheme.Builder.colors. Translucent panel and bar colors let the background show through.
  • Field Details

    • DARK

      public static final ConfigColorScheme DARK
      Dark glassy panels, light text, a cyan accent.
    • LIGHT

      public static final ConfigColorScheme LIGHT
      Frosted white panels, dark text, a blue accent.
    • COOLCATLIB

      public static final ConfigColorScheme COOLCATLIB
      CoolCatLib's own look, in its logo's colors: warm brown panels, cream text and an orange accent.
    • COOLCATLIB_LIGHT

      public static final ConfigColorScheme COOLCATLIB_LIGHT
      COOLCATLIB in light mode: cream panels, brown text and a deeper orange accent.
  • Method Details

    • tinted

      public static ConfigColorScheme tinted(int accent)
      The dark scheme in a mod's own colors: the accent, with the panels, buttons and fields shaded toward it, so each mod's screens feel distinct with one color.
    • tintedLight

      public static ConfigColorScheme tintedLight(int accent)
      The light scheme in a mod's own colors: the accent, with the panels faintly shaded toward it.
    • tinted

      public static ConfigColorScheme tinted(ConfigColorScheme base, int accent, float strength)
      A scheme with its neutral colors shaded toward the accent by strength (0 to 1).
    • builder

      public static ConfigColorScheme.Builder builder()
    • accent

      public int accent()
      Highlights, toggles, sliders, the main button.
    • backdrop

      public int backdrop()
      Laid over the panorama, world or texture behind the screen; its strength is the theme's dim.
    • panel

      public int panel()
    • panelBorder

      public int panelBorder()
    • bar

      public int bar()
      The top and bottom bars.
    • popup

      public int popup()
      Popups: the color picker, presets, confirmations.
    • rowHover

      public int rowHover()
    • field

      public int field()
      Text fields.
    • fieldBorder

      public int fieldBorder()
    • button

      public int button()
    • buttonHover

      public int buttonHover()
    • buttonDisabled

      public int buttonDisabled()
    • toggleOff

      public int toggleOff()
      A switch's track while off.
    • knob

      public int knob()
      Switch and slider knobs.
    • text

      public int text()
    • textDim

      public int textDim()
      Descriptions and secondary text.
    • textMuted

      public int textMuted()
      Disabled and placeholder text.
    • modified

      public int modified()
      Unsaved changes.
    • error

      public int error()
    • success

      public int success()
    • warning

      public int warning()
      Restart notices and server-side edits.
    • toBuilder

      public ConfigColorScheme.Builder toBuilder()