Skip to content
Version 2.11.0
↓ Get the launcher

INamedTheme interface

User-facing theme controls — preset selector + global font scale. The concrete implementation persists selections to config and tints every plugin’s rendered chrome / text on the next OnGUI pass.

public interface INamedTheme
name description
Active { get; } Currently active built-in theme preset (base preset when a custom theme is active).
ActiveCustomName { get; } Name of the active custom theme, or null when a built-in preset is active. When non-null, Active reports the custom theme’s base preset (so existing preset-based readers keep working).
FontScale { get; } Global text-size multiplier in the range [0.8, 1.4]. Applied to all plugin window text.
event ActiveChanged Fired when Active or FontScale changes.
NotifyColorsChanged() Raise ActiveChanged without changing the active theme — used by the colour editor after a custom-theme override edit so renderers that bake textures from theme colours rebuild.
SetActive(…) Switches to the built-in preset and persists the selection.
SetActiveCustom(…) Activate a custom theme by name, recording its base preset.
SetFontScale(…) Clamped to [0.8, 1.4] by the implementation.