Skip to content
Version 2.11.0
↓ Get the launcher

IColorRegistry.Register method (1 of 2)

Registers a color slot whose default is the same defaultAll for every theme preset. Convenience over the per-preset dictionary overload.

public IColorSlot Register(string key, string label, ColorRgba defaultAll)

Registers a color slot with per-preset defaults.

public IColorSlot Register(string key, string label,
IReadOnlyDictionary<ThemePreset, ColorRgba> defaults)