Theme
Struct · namespace System.Ui · Since 0.32
struct ThemeThe colors of a Ui: Theme.Light (the default) or Theme.Dark, or your own.
Fields
Section titled “Fields”| Name | Description |
|---|---|
Background |
The window. |
Panel |
Panels. |
Border |
The lines around controls and panels. |
Text |
Text. |
TextMuted |
Text that is less important (titles of panels, disabled things). |
Control |
Buttons, the tracks of sliders and progress bars. |
ControlHover |
Buttons and the like under the mouse. |
ControlPressed |
Buttons and the like while they are pressed. |
Accent |
Checked boxes, the filled part of sliders and progress bars, the selected item of a list. |
AccentText |
Text and marks on the accent color. |
Input |
The background of text boxes and scroll areas. |
Focus |
The outline of the control that has the keyboard focus. |
Selection |
Selected text, and list items under the mouse. |
Background
Section titled “Background”Color BackgroundThe window.
Color PanelPanels.
Border
Section titled “Border”Color BorderThe lines around controls and panels.
Color TextText.
TextMuted
Section titled “TextMuted”Color TextMutedText that is less important (titles of panels, disabled things).
Control
Section titled “Control”Color ControlButtons, the tracks of sliders and progress bars.
ControlHover
Section titled “ControlHover”Color ControlHoverButtons and the like under the mouse.
ControlPressed
Section titled “ControlPressed”Color ControlPressedButtons and the like while they are pressed.
Accent
Section titled “Accent”Color AccentChecked boxes, the filled part of sliders and progress bars, the selected item of a list.
AccentText
Section titled “AccentText”Color AccentTextText and marks on the accent color.
Color InputThe background of text boxes and scroll areas.
Color FocusThe outline of the control that has the keyboard focus.
Selection
Section titled “Selection”Color SelectionSelected text, and list items under the mouse.
Static methods
Section titled “Static methods”| Name | Description |
|---|---|
Light |
Dark text on light gray (the default). |
Dark |
Light text on dark gray. |
static Theme Light()Dark text on light gray (the default).
static Theme Dark()Light text on dark gray.