Class ConfigColorScheme
java.lang.Object
net.ixdarklord.coolcatcore.api.config.ConfigColorScheme
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.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigColorSchemeDark glassy panels, light text, a cyan accent.static final ConfigColorSchemeFrosted white panels, dark text, a blue accent. -
Method Summary
Modifier and TypeMethodDescriptionintaccent()Highlights, toggles, sliders, the main button.intbackdrop()Laid over the panorama, world or texture behind the screen; its strength is the theme's dim.intbar()The top and bottom bars.static ConfigColorScheme.Builderbuilder()intbutton()intintinterror()intfield()Text fields.intintknob()Switch and slider knobs.intmodified()Unsaved changes.intpanel()intintpopup()Popups: the color picker, presets, confirmations.introwHover()intsuccess()inttext()inttextDim()Descriptions and secondary text.intDisabled and placeholder text.static ConfigColorSchemetinted(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.static ConfigColorSchemetinted(ConfigColorScheme base, int accent, float strength) A scheme with its neutral colors shaded toward the accent bystrength(0 to 1).static ConfigColorSchemetintedLight(int accent) The light scheme in a mod's own colors: the accent, with the panels faintly shaded toward it.intA switch's track while off.intwarning()Restart notices and server-side edits.
-
Field Details
-
DARK
Dark glassy panels, light text, a cyan accent. -
LIGHT
Frosted white panels, dark text, a blue accent.
-
-
Method Details
-
tinted
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
The light scheme in a mod's own colors: the accent, with the panels faintly shaded toward it. -
tinted
A scheme with its neutral colors shaded toward the accent bystrength(0 to 1). -
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
-