Table of Contents

Class TigerThemeConfiguration

Namespace
ItTiger.TigerCli.Tui.Themes
Assembly
ItTiger.TigerCli.dll
App-scoped theme, style, and colour-alias policy configured through the app builder's ConfigureThemes block. The application owns this policy: framework themes are available by default, custom themes and styles are added explicitly, library packages register through this object (referencing a library never mutates TigerCli), and apps may disable framework themes they do not want. Everything configured here is applied to the active TigerConsole appearance for the run; nothing is registered merely because a type or library is referenced.
public sealed class TigerThemeConfiguration
Inheritance
TigerThemeConfiguration
Inherited Members

Properties

ColorAliases

The app's raw colour aliases (empty by default — no built-in aliases).
public TigerColorAliasRegistry ColorAliases { get; }

Property Value

TigerColorAliasRegistry

CustomStyles

The app's custom semantic styles (empty by default).
public TigerCustomStyleRegistry CustomStyles { get; }

Property Value

TigerCustomStyleRegistry

Methods

AddTheme(ITheme)

Registers a custom theme by its Name. The name must not be a framework theme name or the reserved "default" alias (validated when applied to the run).
public TigerThemeConfiguration AddTheme(ITheme theme)

Parameters

theme ITheme

Returns

TigerThemeConfiguration

DisableTheme(string)

Disables a registered theme for this app. A disabled theme behaves like an unknown theme: --theme and TIGERCLI_THEME reject it and it is omitted from help. Disabling a name that is not registered is a harmless no-op.
public TigerThemeConfiguration DisableTheme(string name)

Parameters

name string

Returns

TigerThemeConfiguration

RegisterColorAlias(string, CliColor)

Registers a raw colour alias (see Register(string, CliColor)).
public TigerThemeConfiguration RegisterColorAlias(string alias, CliColor color)

Parameters

alias string
color CliColor

Returns

TigerThemeConfiguration

RegisterCustomStyle(string, ThemeStyle, CliCellStyle?, CliCellStyle?)

Registers a custom semantic style (see Register(string, ThemeStyle, CliCellStyle?, CliCellStyle?)).
public TigerThemeConfiguration RegisterCustomStyle(string name, ThemeStyle baseStyle, CliCellStyle? darkStyle = null, CliCellStyle? lightStyle = null)

Parameters

name string
baseStyle ThemeStyle
darkStyle CliCellStyle
lightStyle CliCellStyle

Returns

TigerThemeConfiguration

RegisterCustomStyleForTheme(string, string, CliCellStyle)

Registers an exact theme-name override for a custom style (see RegisterForTheme(string, string, CliCellStyle)). The custom style must already be registered via RegisterCustomStyle(string, ThemeStyle, CliCellStyle?, CliCellStyle?).
public TigerThemeConfiguration RegisterCustomStyleForTheme(string styleName, string themeName, CliCellStyle style)

Parameters

styleName string
themeName string
style CliCellStyle

Returns

TigerThemeConfiguration