Skip to content

Components ​

the application chrome. The ui-gallery page Components, painted with no terminal and no window at each of the documented profiles:

bash
ui-gallery --render --page components --profile full|enhanced|baseline

The numeric slider specimens use the same control as generated settings: an integral weight domain and a fractional negative slant domain. The touch specimen keeps a three-cell hit target around its compact track. Settings surfaces share drag capture, preview transactions and release-to-commit behavior through SettingsSections; keyboard stepping remains available.

 sparkles:ui the application chrome                                                 tokyo-night 
   Welcome           ▕ Components · application chrome                                         █
   Primitives        ▕                                                                         █
   Layout            ▕                                                                         █
   Tracks            ▕ Every one of these is a pure view: it appends a subtree and returns its █
   Text              ▕ root. Behaviour lives in the state machines beside them, so the same    █
   Themes            ▕ component serves a terminal and a window with no second copy.           █
   Slots             ▕                                                                         █
   Decoration        ▕ ┌─────────────────────────────────────────────────────────────────────┐ █
   Effects           ▕ │ slider — runtime numeric domains                                    │ █
   Grid              ▕ │ Weight 400 · 100–900                                                │ ░
 ▸ Components        ▕ │ ──────◆─────────                                                    │ ░
   Tree              ▕ │ Slant -6.5 · -12.5–0 · touch target                                 │ ░
   Property tree     ▕ │                                                                     │ ░
   Table             ▕ │ ───────◆────────                                                    │ ░
   Scrolling         ▕ │                                                                     │ ░
   State             ▕ └─────────────────────────────────────────────────────────────────────┘ ░
   Split             ▕                                                                         ░
   Dock              ▕ ┌─────────────────────────────────────────────────────────────────────┐ ░
   Overlays          ▕ │ headerBar — leading · centre · trailing                             │ ░
   Terminal          ▕ │  hue                         file.d                         q quit  │ ░
                     ▕ │                                                                     │ ░
                     ▕ │  focused pane                                                       │ ░
                     ▕ └─────────────────────────────────────────────────────────────────────┘ ░
                     ▕                                                                         ░
                     ▕ The groups are separated by grow spacers — the spelling the layout      ░
                     ▕ engine prescribes for distribution, since there is no margin and no     ░
                     ▕ space-between.                                                          ░
                     ▕                                                                         ░
                     ▕ ┌─────────────────────────────────────────────────────────────────────┐ ░
                     ▕                                                                          
 pages ← prev tab → next tab 1-4 action row n scroll down p scroll up           ? keys   q quit 
 sparkles:ui the application chrome                                                 tokyo-night 
   Welcome           ▕ Components · application chrome                                         █
   Primitives        ▕                                                                         █
   Layout            ▕                                                                         █
   Tracks            ▕ Every one of these is a pure view: it appends a subtree and returns its █
   Text              ▕ root. Behaviour lives in the state machines beside them, so the same    █
   Themes            ▕ component serves a terminal and a window with no second copy.           █
   Slots             ▕                                                                         █
   Decoration        ▕ ┌─────────────────────────────────────────────────────────────────────┐ █
   Effects           ▕ │ slider — runtime numeric domains                                    │ █
   Grid              ▕ │ Weight 400 · 100–900                                                │ ░
 ▸ Components        ▕ │ ──────◆─────────                                                    │ ░
   Tree              ▕ │ Slant -6.5 · -12.5–0 · touch target                                 │ ░
   Property tree     ▕ │                                                                     │ ░
   Table             ▕ │ ───────◆────────                                                    │ ░
   Scrolling         ▕ │                                                                     │ ░
   State             ▕ └─────────────────────────────────────────────────────────────────────┘ ░
   Split             ▕                                                                         ░
   Dock              ▕ ┌─────────────────────────────────────────────────────────────────────┐ ░
   Overlays          ▕ │ headerBar — leading · centre · trailing                             │ ░
   Terminal          ▕ │  hue                         file.d                         q quit  │ ░
                     ▕ │                                                                     │ ░
                     ▕ │  focused pane                                                       │ ░
                     ▕ └─────────────────────────────────────────────────────────────────────┘ ░
                     ▕                                                                         ░
                     ▕ The groups are separated by grow spacers — the spelling the layout      ░
                     ▕ engine prescribes for distribution, since there is no margin and no     ░
                     ▕ space-between.                                                          ░
                     ▕                                                                         ░
                     ▕ ┌─────────────────────────────────────────────────────────────────────┐ ░
                     ▕                                                                          
 pages ← prev tab → next tab 1-4 action row n scroll down p scroll up           ? keys   q quit 
 sparkles:ui the application chrome                                                 tokyo-night 
   Welcome           | Components * application chrome                                         #
   Primitives        |                                                                         #
   Layout            |                                                                         #
   Tracks            | Every one of these is a pure view: it appends a subtree and returns its #
   Text              | root. Behaviour lives in the state machines beside them, so the same    #
   Themes            | component serves a terminal and a window with no second copy.           #
   Slots             |                                                                         #
   Decoration        | +---------------------------------------------------------------------+ #
   Effects           | | slider - runtime numeric domains                                    | #
   Grid              | | Weight 400 * 100-900                                                | |
 > Components        | | ------*---------                                                    | |
   Tree              | | Slant -6.5 * -12.5-0 * touch target                                 | |
   Property tree     | |                                                                     | |
   Table             | | -------*--------                                                    | |
   Scrolling         | |                                                                     | |
   State             | +---------------------------------------------------------------------+ |
   Split             |                                                                         |
   Dock              | +---------------------------------------------------------------------+ |
   Overlays          | | headerBar - leading * centre * trailing                             | |
   Terminal          | |  hue                         file.d                         q quit  | |
                     | |                                                                     | |
                     | |  focused pane                                                       | |
                     | +---------------------------------------------------------------------+ |
                     |                                                                         |
                     | The groups are separated by grow spacers - the spelling the layout      |
                     | engine prescribes for distribution, since there is no margin and no     |
                     | space-between.                                                          |
                     |                                                                         |
                     | +---------------------------------------------------------------------+ |
                     |                                                                          
 pages < prev tab > next tab 1-4 action row n scroll down p scroll up           ? keys   q quit 

What each profile gives up ​

The frame's degradation report: one line per substitution, and the capability the target lacked. full is empty when the page asks for nothing a terminal cannot do.

text
alpha-flattened ×5 (alpha)
text
color-folded ×82 (colorDepth)
alpha-flattened ×5 (alpha)
text
color-dropped ×82 (colorDepth)
ascii-border ×4 (unicode)
ascii-scrollbar ×1 (unicode)
ascii-glyph ×13 (unicode)
alpha-flattened ×5 (alpha)

These are the files dub test :ui-gallery compares every render against, so a change to this page that is not re-blessed fails CI.