Class TigerThemeConfiguration
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
CustomStyles
The app's custom semantic styles (empty by default).
public TigerCustomStyleRegistry CustomStyles { get; }
Property Value
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
themeITheme
Returns
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
namestring
Returns
RegisterColorAlias(string, CliColor)
Registers a raw colour alias (see Register(string, CliColor)).
public TigerThemeConfiguration RegisterColorAlias(string alias, CliColor color)
Parameters
Returns
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
namestringbaseStyleThemeStyledarkStyleCliCellStylelightStyleCliCellStyle
Returns
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
styleNamestringthemeNamestringstyleCliCellStyle