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
BorderFocused
Borders of focused blocks.
public Style BorderFocused { get; init; }
Property Value
Button
An unfocused button.
public Style Button { get; init; }
Property Value
ButtonFocused
A focused button.
public Style ButtonFocused { get; init; }
Property Value
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
Current
The theme widgets draw with: the running app's theme on its UI thread, otherwise Default.
public static Theme Current { get; }
Property Value
Cursor
The cursor cell of a focused input.
public Style Cursor { get; init; }
Property Value
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
Default
The default colors.
public static Theme Default { get; }
Property Value
Error
Errors.
public Style Error { get; init; }
Property Value
GaugeEmpty
The empty part of a gauge.
public Style GaugeEmpty { get; init; }
Property Value
GaugeFilled
The filled part of a gauge.
public Style GaugeFilled { get; init; }
Property Value
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
Info
Informational messages.
public Style Info { get; init; }
Property Value
Input
Text in an unfocused input.
public Style Input { get; init; }
Property Value
InputFocused
Text in a focused input.
public Style InputFocused { get; init; }
Property Value
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
ModalBorder
Modal and dialog borders.
public Style ModalBorder { get; init; }
Property Value
ModalTitle
Modal and dialog titles.
public Style ModalTitle { get; init; }
Property Value
Monochrome
No colors, only modifiers. Used automatically when the terminal has no colors (NO_COLOR).
public static Theme Monochrome { get; }
Property Value
Prompt
The prompt of a command line.
public Style Prompt { get; init; }
Property Value
ScrollbarThumb
The scrollbar thumb.
public Style ScrollbarThumb { get; init; }
Property Value
ScrollbarTrack
The scrollbar track.
public Style ScrollbarTrack { get; init; }
Property Value
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
Selection
The selected row of a focused list or table.
public Style Selection { get; init; }
Property Value
SelectionUnfocused
The selected row of an unfocused list or table.
public Style SelectionUnfocused { get; init; }
Property Value
StatusBar
The status bar row.
public Style StatusBar { get; init; }
Property Value
Success
Success messages and healthy values.
public Style Success { get; init; }
Property Value
TabActive
The selected tab of a focused tab bar.
public Style TabActive { get; init; }
Property Value
TabActiveUnfocused
The selected tab of an unfocused tab bar.
public Style TabActiveUnfocused { get; init; }
Property Value
TabInactive
Tabs that aren't selected.
public Style TabInactive { get; init; }
Property Value
TableHeader
Table header cells.
public Style TableHeader { get; init; }
Property Value
Text
Plain text.
public Style Text { get; init; }
Property Value
TextMuted
Secondary text, such as placeholders and footers.
public Style TextMuted { get; init; }
Property Value
Title
Titles of unfocused blocks.
public Style Title { get; init; }
Property Value
TitleFocused
Titles of focused blocks.
public Style TitleFocused { get; init; }
Property Value
Warning
Warnings.
public Style Warning { get; init; }