ThemeAppearance
ConsoleMonster.Styling
The style part of a theme, beside its colours: the frame drawn around panels, tables and inputs, how statuses are marked, spacing, and the background the theme is made for. A widget that names its own frame (a BoxStyle other than BoxStyle.Rounded) keeps it; the Border, Density and StatusMarkers settings override the theme's choice.
Inheritance
- object
- ThemeAppearance
Usage
Explore 5 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 2
- Property Theme.Appearance
- Property ThemeAppearance.Default
Accepted by parameters 3
- Constructor Theme.Theme
- Method Theme.WithAppearance
- Method ThemeAppearance.Equals
Constructors
public ThemeAppearance(BoxStyle border = Rounded, StatusMarkerStyle statusMarkers = Symbols, ThemeBackground background = Dark) #Creates a style.
Parameters
- border ConsoleMonster.Glyphs.BoxStyle = Rounded
- The frame for panels, tables and inputs that use the default (rounded) frame.
- statusMarkers ConsoleMonster.Styling.StatusMarkerStyle = Symbols
- How statuses are marked.
- background ConsoleMonster.Styling.ThemeBackground = Dark
- The background the theme is made for.
public ThemeAppearance(ThemeDensity density, BoxStyle border = Rounded, StatusMarkerStyle statusMarkers = Symbols, ThemeBackground background = Dark) #Creates a style with a spacing density.
Parameters
- density ConsoleMonster.Styling.ThemeDensity
- Spacing for widgets whose padding or gaps have not been set.
- border ConsoleMonster.Glyphs.BoxStyle = Rounded
- The default frame.
- statusMarkers ConsoleMonster.Styling.StatusMarkerStyle = Symbols
- How statuses are marked.
- background ConsoleMonster.Styling.ThemeBackground = Dark
- The intended page background.
Methods
public bool Equals(ThemeAppearance? other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other ConsoleMonster.Styling.ThemeAppearance?
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Determines whether the specified object is equal to the current object.
Parameters
- obj object?
- The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.public override int GetHashCode() #Serves as the default hash function.
Returns
int A hash code for the current object.Inherited Methods
Properties
public static ThemeAppearance Default { get; } #Rounded frames, symbols and a dark background.
public BoxStyle Border { get; } #The frame for panels, tables and inputs that use the default (rounded) frame.
public ThemeBackground Background { get; } #The background the theme is made for; exports use it for the page.
public ThemeDensity Density { get; } #Spacing used when a widget's padding or gaps have not been set.