class

Egui::Terminal::Theme

Inherits Reference < Object

Palette + UI colors for one terminal. Colors are plain data — swap any of them at runtime.

Constants

ANSI16 = { {0, 0, 0}, {205, 58, 58}, {12, 168, 120}, {208, 160, 80}, {37, 104, 208}, {171, 94, 171}, {43, 170, 170}, {224, 224, 224}, {127, 127, 127}, {255, 119, 119}, {93, 255, 176}, {255, 209, 135}, {119, 153, 255}, {226, 130, 226}, {102, 221, 221}, {255, 255, 255} }

The xterm 16-color palette (dim 0-7, bright 8-15).

DEFAULT_BG_HEX = "#16161e"

The default terminal background as "#rrggbb" — shared with the config Profile defaults so a fresh profile matches the built-in look exactly.

Constructors

Instance methods

ansi256(index : Int32) : Color32

Colors 16-255: the 6x6x6 cube and the 24-step grayscale ramp, with xterm's exact component levels.

Source
background
Source
background=(background : Color32)
Source
cursor
Source
cursor=(cursor : Color32)
Source
foreground
Source
foreground=(foreground : Color32)
Source
palette
Source
palette=(palette : Array(Color32))
Source
scrollbar
Source
scrollbar=(scrollbar : Color32)
Source
scrollbar_active

The scrollbar thumb while hovered/dragged (brighter than the resting #scrollbar, the classic grab affordance).

Source
scrollbar_active=(scrollbar_active : Color32)

The scrollbar thumb while hovered/dragged (brighter than the resting #scrollbar, the classic grab affordance).

Source
selection_bg
Source
selection_bg=(selection_bg : Color32)
Source
selection_overlay

Selection dims the covered text instead of repainting it.

Source
selection_overlay=(selection_overlay : Color32)

Selection dims the covered text instead of repainting it.

Source
twin(background : Color32 | Nil = nil, foreground : Color32 | Nil = nil, cursor : Color32 | Nil = nil, selection_overlay : Color32 | Nil = nil, scrollbar : Color32 | Nil = nil, scrollbar_active : Color32 | Nil = nil) : Theme

A copy with any of the base colors overridden (nil = keep this theme's value), sharing the ANSI palette array. The terminal widget builds one per frame when terminal { … } class rules (or per-element inspector edits) override its colors — the SGR space resolves through it exactly like through the theme.

Source