Table of Contents

Class Theme

Namespace
MiniTui
Assembly
MiniTui.dll

The styles widgets draw with (§8.1). Backgrounds are left to the terminal except for bars, buttons and selections, so light and custom terminal themes show through.

public sealed record Theme : IEquatable<Theme>
Inheritance
Theme
Implements
Inherited Members

Remarks

Change a few slots with Theme.Default with { Selection = ... }, and apply a theme with WithTheme(Theme).

Properties

Border

Borders of unfocused blocks.

public Style Border { get; init; }

Property Value

Style

BorderFocused

Borders of focused blocks.

public Style BorderFocused { get; init; }

Property Value

Style

Button

An unfocused button.

public Style Button { get; init; }

Property Value

Style

ButtonFocused

A focused button.

public Style ButtonFocused { get; init; }

Property Value

Style

ChartSeries

The styles of chart datasets without their own, in order, wrapping around (1.x spec §8.2). Default: cyan, yellow, magenta, green, blue, red.

public IReadOnlyList<Style> ChartSeries { get; init; }

Property Value

IReadOnlyList<Style>

Current

The theme widgets draw with: the running app's theme on its UI thread, otherwise Default.

public static Theme Current { get; }

Property Value

Theme

Cursor

The cursor cell of a focused input.

public Style Cursor { get; init; }

Property Value

Style

Dark

A dark theme with its own colors (1.x spec §12.4): the same in every terminal, whatever its palette. It sets the text and background colors too, and the app fills the screen with them.

public static Theme Dark { get; }

Property Value

Theme

Default

The default colors.

public static Theme Default { get; }

Property Value

Theme

Error

Errors.

public Style Error { get; init; }

Property Value

Style

GaugeEmpty

The empty part of a gauge.

public Style GaugeEmpty { get; init; }

Property Value

Style

GaugeFilled

The filled part of a gauge.

public Style GaugeFilled { get; init; }

Property Value

Style

Hover

What's under the pointer, with hover on: rows, buttons, checkboxes and tabs (1.x spec §17.6).

public Style Hover { get; init; }

Property Value

Style

Info

Informational messages.

public Style Info { get; init; }

Property Value

Style

Input

Text in an unfocused input.

public Style Input { get; init; }

Property Value

Style

InputFocused

Text in a focused input.

public Style InputFocused { get; init; }

Property Value

Style

Light

A light theme with its own colors (1.x spec §12.4): the same in every terminal, whatever its palette. It sets the text and background colors too, and the app fills the screen with them.

public static Theme Light { get; }

Property Value

Theme

ModalBorder

Modal and dialog borders.

public Style ModalBorder { get; init; }

Property Value

Style

ModalTitle

Modal and dialog titles.

public Style ModalTitle { get; init; }

Property Value

Style

Monochrome

No colors, only modifiers. Used automatically when the terminal has no colors (NO_COLOR).

public static Theme Monochrome { get; }

Property Value

Theme

Prompt

The prompt of a command line.

public Style Prompt { get; init; }

Property Value

Style

ScrollbarThumb

The scrollbar thumb.

public Style ScrollbarThumb { get; init; }

Property Value

Style

ScrollbarTrack

The scrollbar track.

public Style ScrollbarTrack { get; init; }

Property Value

Style

SearchMatch

Matches of a text area's find text other than the current one, which is the selection (1.x spec §16.5).

public Style SearchMatch { get; init; }

Property Value

Style

Selection

The selected row of a focused list or table.

public Style Selection { get; init; }

Property Value

Style

SelectionUnfocused

The selected row of an unfocused list or table.

public Style SelectionUnfocused { get; init; }

Property Value

Style

StatusBar

The status bar row.

public Style StatusBar { get; init; }

Property Value

Style

Success

Success messages and healthy values.

public Style Success { get; init; }

Property Value

Style

TabActive

The selected tab of a focused tab bar.

public Style TabActive { get; init; }

Property Value

Style

TabActiveUnfocused

The selected tab of an unfocused tab bar.

public Style TabActiveUnfocused { get; init; }

Property Value

Style

TabInactive

Tabs that aren't selected.

public Style TabInactive { get; init; }

Property Value

Style

TableHeader

Table header cells.

public Style TableHeader { get; init; }

Property Value

Style

Text

Plain text.

public Style Text { get; init; }

Property Value

Style

TextMuted

Secondary text, such as placeholders and footers.

public Style TextMuted { get; init; }

Property Value

Style

Title

Titles of unfocused blocks.

public Style Title { get; init; }

Property Value

Style

TitleFocused

Titles of focused blocks.

public Style TitleFocused { get; init; }

Property Value

Style

Warning

Warnings.

public Style Warning { get; init; }

Property Value

Style