Class ScyllaEditorColors
Theme-aware color definitions for the Scylla editor toolset. Automatically adjusts colors based on Unity's Light or Dark theme preference.
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public static class ScyllaEditorColors
Remarks
All colors are lazily initialized on first access and cached for the lifetime of the editor session. If the editor theme changes at runtime, call Reinitialize() to flush the cache and recompute colors for the new theme.
Colors are organized into logical groups: status colors (success, warning, error, info), module state colors (enabled, disabled, error, initializing), UI element colors (header/section/foldout backgrounds, separators), text colors (primary, secondary, muted), accent colors (primary and secondary Scylla blue), and graph colors used by dependency-graph visualizations.
Use WithAlpha(Color, float) to create alpha-modified variants of any color, and Lerp(Color, Color, float) to interpolate between two colors for state-transition effects.
Properties
AccentPrimary
Primary accent color for highlighting and selection.
Declaration
public static Color AccentPrimary { get; }
Property Value
| Type | Description |
|---|---|
| Color |
AccentSecondary
Secondary accent color for subtle highlighting.
Declaration
public static Color AccentSecondary { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ConfigurationFoldoutBackground
Background color for foldout headers of configuration property sections. Applied directly via EditorGUI.DrawRect for the foldout header bar.
Declaration
public static Color ConfigurationFoldoutBackground { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Error
Color for error states and negative feedback (red).
Declaration
public static Color Error { get; }
Property Value
| Type | Description |
|---|---|
| Color |
FoldoutBackground
Background color for foldout headers.
Declaration
public static Color FoldoutBackground { get; }
Property Value
| Type | Description |
|---|---|
| Color |
GraphConnection
Color for graph connection lines.
Declaration
public static Color GraphConnection { get; }
Property Value
| Type | Description |
|---|---|
| Color |
GraphConnectionHighlight
Highlight color for selected graph connections.
Declaration
public static Color GraphConnectionHighlight { get; }
Property Value
| Type | Description |
|---|---|
| Color |
GraphNodeBackground
Background color for graph nodes.
Declaration
public static Color GraphNodeBackground { get; }
Property Value
| Type | Description |
|---|---|
| Color |
GraphNodeBorder
Border color for graph nodes.
Declaration
public static Color GraphNodeBorder { get; }
Property Value
| Type | Description |
|---|---|
| Color |
HeaderBackground
Background color for section headers.
Declaration
public static Color HeaderBackground { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Info
Color for informational states and neutral feedback (blue).
Declaration
public static Color Info { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ModuleDisabled
Color for disabled/inactive module state.
Declaration
public static Color ModuleDisabled { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ModuleEnabled
Color for enabled/active module state.
Declaration
public static Color ModuleEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ModuleError
Color for module error state.
Declaration
public static Color ModuleError { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ModuleInitializing
Color for module initializing/transitioning state.
Declaration
public static Color ModuleInitializing { get; }
Property Value
| Type | Description |
|---|---|
| Color |
SectionBackground
Background color for content sections.
Declaration
public static Color SectionBackground { get; }
Property Value
| Type | Description |
|---|---|
| Color |
SeparatorLine
Color for horizontal separator lines.
Declaration
public static Color SeparatorLine { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Success
Color for success states and positive feedback (green).
Declaration
public static Color Success { get; }
Property Value
| Type | Description |
|---|---|
| Color |
TextMuted
Muted text color for hints and disabled text.
Declaration
public static Color TextMuted { get; }
Property Value
| Type | Description |
|---|---|
| Color |
TextPrimary
Primary text color for important labels.
Declaration
public static Color TextPrimary { get; }
Property Value
| Type | Description |
|---|---|
| Color |
TextSecondary
Secondary text color for less important labels.
Declaration
public static Color TextSecondary { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Warning
Color for warning states and caution feedback (yellow/orange).
Declaration
public static Color Warning { get; }
Property Value
| Type | Description |
|---|---|
| Color |
WizardSidebarBackground
Background color for the wizard sidebar panel.
Declaration
public static Color WizardSidebarBackground { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Methods
Lerp(Color, Color, float)
Linearly interpolates between from and to
using the clamped parameter t.
Declaration
public static Color Lerp(Color from, Color to, float t)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | from | The color returned when |
| Color | to | The color returned when |
| float | t | Interpolation factor. Values are clamped to [0, 1] before use, preventing overshoot beyond the two endpoint colors. |
Returns
| Type | Description |
|---|---|
| Color | The interpolated UnityEngine.Color. Equivalent to |
Reinitialize()
Forces reinitialization of all cached colors, then re-populates them for the currently active Unity editor theme (Light or Dark).
Declaration
public static void Reinitialize()
Remarks
Call this method after the user switches between Unity's Light and Dark themes
mid-session, or after any ScyllaEditorColors consumer detects a
theme change via EditorGUIUtility.isProSkin. The next property access
after this call will trigger a full re-initialization of every cached color.
WithAlpha(Color, float)
Returns a copy of color with its alpha channel replaced by
alpha, leaving the red, green, and blue channels unchanged.
Declaration
public static Color WithAlpha(Color color, float alpha)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color | The base color whose RGB values are preserved. |
| float | alpha | The desired alpha value in the range [0, 1], where |
Returns
| Type | Description |
|---|---|
| Color | A new UnityEngine.Color with the same RGB channels as |