tui.variant
tui.variant ID [NAME]
Picks the design a widget draws with, so several progress bars, checkboxes, selects or lists can look different side by side. Markup: variant="NAME".
Parameters
ID- a progress bar, checkbox, select, list, table or textarea, or a scrolling pane (its scrollbars).NAME- a design from the theme. An empty or missingNAMEgoes back to the base look.
Notes
- A variant is a
.type.NAMErule:.progress.thin { fill: "━"; empty: "━"; }. Slots it leaves out come from the base.typerule, then the built-in default. A name the active theme does not define draws the base look, so switching themes never breaks a page. - A progress bar’s colours follow the same rule:
.progress.NAMEand.progress_fill.NAMEoverride the base fields they set. - Built-in designs (
share/defaults/glyphs/variants.css): progressthin dots squares ascii, checkboxround plain, selectplain angle, scroll indicators of lists, tables and textareasthin block dot, scrollbars of scrolling panesblock dot line.
Example
tui.variant eta_bar thin
