D.A.B.Tv0.0.17 Tutorial API DABT Tools ↗ GitHub ↗

tui.get.class.style

tui.get.class.style CLASS FIELD [STATE]

Prints one field of a theme class, without a pane or widget.

Parameters

  • CLASS: class name without the dot.
  • FIELD: fg, bg or mods.
  • STATE: normal (default) or a pseudo-state such as focus; falls back to the plain class.

Returns: 2 for an invalid FIELD.

Example

accent=$(tui.get.class.style brand fg)

See also: tui.class.style (fork-free)