Skip to content
ConsoleMonster
Class

ThemeAppearance

ConsoleMonster.Styling

Namespace
ConsoleMonster.Styling
Assembly
ConsoleMonster
Implements
IEquatable<ThemeAppearance>
Modifiers
sealed

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

Accepted by parameters 3

Constructors

ThemeAppearance 2 overloads
public ThemeAppearance(BoxStyle border = Rounded, StatusMarkerStyle statusMarkers = Symbols, ThemeBackground background = Dark) #

Creates a style.

Parameters

border ConsoleMonster.Glyphs.BoxStyle = Rounded optional
The frame for panels, tables and inputs that use the default (rounded) frame.
statusMarkers ConsoleMonster.Styling.StatusMarkerStyle = Symbols optional
How statuses are marked.
background ConsoleMonster.Styling.ThemeBackground = Dark optional
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 required
Spacing for widgets whose padding or gaps have not been set.
border ConsoleMonster.Glyphs.BoxStyle = Rounded optional
The default frame.
statusMarkers ConsoleMonster.Styling.StatusMarkerStyle = Symbols optional
How statuses are marked.
background ConsoleMonster.Styling.ThemeBackground = Dark optional
The intended page background.

Methods

Equals 2 overloads
public bool Equals(ThemeAppearance? other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other ConsoleMonster.Styling.ThemeAppearance? required
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? required
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.

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 StatusMarkerStyle StatusMarkers { get; } #

How statuses are marked.

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.