API Reference
Struct
ThemeStyle
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? foreground, ThemeColor? background = null, TextDecoration decoration = None) #Creates a theme style.
Parameters
- foreground ConsoleMonster.Styling.ThemeColor?
- Foreground, or null for the terminal default.
- background ConsoleMonster.Styling.ThemeColor? = null
- Background, or null for the terminal default.
- decoration ConsoleMonster.Styling.TextDecoration = None
- Decorations.
Methods
public Style Resolve(ColorDepth depth) #Returns:
StyleResolves to a concrete style for a colour depth.
Parameters
- depth ConsoleMonster.Capabilities.ColorDepth
- The depth.
Returns
The style.
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?