Table of Contents

Enum ColorRole

Namespace
SharpConsoleUI.Themes
Assembly
SharpConsoleUI.dll

Semantic colour role a control can adopt. Default means the control uses its normal colour-resolution path (no role); the other values map to theme seed colours and are resolved to a coordinated colour set by ColorRoleResolver.

public enum ColorRole
Extension Methods

Fields

Danger = 7

Danger / error (red).

Default = 0

No role — the control resolves colours as it normally would.

Info = 4

Informational (cyan/blue).

Primary = 1

The main accent role (borders, primary buttons).

Secondary = 2

A secondary accent (e.g. cancel buttons).

Success = 5

Success (green).

Tertiary = 3

A tertiary accent.

Warning = 6

Warning (amber).