Struct
ThemeStyle
ConsoleMonster.Styling
The definition of one theme token: optional foreground and background theme colours plus decorations.
Inheritance
- ValueType
- ThemeStyle
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method Theme.Get
Accepted by parameters 2
- Constructor Theme.Theme
- Method Theme.With
Constructors
public ThemeStyle(ThemeColor? color, ThemeColor? backgroundColor = null, TextDecoration decoration = None) #Creates a theme style.
Parameters
- color ConsoleMonster.Styling.ThemeColor?
- Foreground, or null for the terminal default.
- backgroundColor ConsoleMonster.Styling.ThemeColor? = null
- Background, or null for the terminal default.
- decoration ConsoleMonster.Styling.TextDecoration = None
- Decorations.
Methods
public Style Resolve(ColorDepth depth) #Resolves to a concrete style for a colour depth.
Parameters
- depth ConsoleMonster.Capabilities.ColorDepth
- The depth.
Inherited Methods
Properties
public ThemeColor? BackgroundColor { get; } #Background, or null for the terminal default.