Interface IColorRoleableControl
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
A control whose colors can be driven by a semantic ColorRole instead of being set individually. The role's colors are derived from the active theme's palette. Controls that have no themable surface simply do not implement this interface.
public interface IColorRoleableControl
- Extension Methods
Properties
ColorRole
The semantic color role. Default = no role (normal resolution).
ColorRole ColorRole { get; set; }
Property Value
ColorRoleMode
Optional ThemeMode override for role-colour derivation. When non-null, the role's dark/light seed colours are resolved as if the theme were in this mode, regardless of the theme's own Mode. When null (the default), the active theme's mode is used.
ThemeMode? ColorRoleMode { get; set; }
Property Value
Outline
When true and a role is set, renders outline style (role color on text + border, surface fill).
bool Outline { get; set; }