V1 Widgets¶
Note
The blocks and standard modules a v1 shell needs, traced to the surfaces and modules in V1 Scope. The word "widget" is no longer a key or a category: there are building blocks (called with block:) and modules (called by name) (Building Blocks, decided 2026-10-26). The note keeps its name so links hold. The rule from ADR-0007 Shell UI Layer stands: add one only when a module or surface needs it. The properties, parts, states and events of each standard module are in Standard Modules; the accessibility rules every widget follows are in Accessibility.
Blocks Needed for V1¶
| Block | Needed by |
|---|---|
| Box, FlexBox | Every surface and module |
| ScrollBox | List (Applications results, Tasks, Tray overflow) |
| Text | Clock, Workspaces, Tasks, Battery, Network, Media, Applications, TextBox, Marquee text |
| TextField | TextInput, TextEditor (its multi-line form) |
| Bitmap, SVG | Tray, Audio, Network, Battery, Media, Tasks, Applications (icons and artwork) |
| Shapes (Rectangle, Circle, Ring, Path) | Frame ring and corners, Panel joins (Path), Toggle, Badge |
Standard Modules Needed for V1¶
| Module | Needed by |
|---|---|
| Label | Clock, Workspaces, Tasks, Battery, Network |
| TextInput | Applications (launcher search) |
| Icon | Tray, Audio, Network, Battery, Media, Tasks, Applications |
| Image | Media (artwork) |
| Button | Workspaces, Tasks, Tray, Audio (mute), Media (controls), Applications |
| Slider | Audio (volume), Media (seek) |
| ProgressBar | Battery |
| List | Applications (results), Tasks, Tray overflow |
| Menu, MenuItem | Tray menus, Audio (device list), Network (network list) |
| Spacer | Bar layout (left, centre and right groups) |
| Expander | A must have (maintainer, 2026-10-26; renamed from Revealer 2026-11-01): hover-to-reveal and auto-hide |
| TextBox | V1 by the maintainer's decision, 2026-11-08: multi-line text, not editable |
| TextEditor | V1 by the maintainer's decision, 2026-11-08: multi-line text, editable (TextField, multi-line) |
| Badge | V1 by the maintainer's decision, 2026-11-08: a count or dot on an icon |
| Tooltip | V1 by the maintainer's decision, 2026-11-08: hover text (the hover popup is built through Popup) |
| Toggle | V1 by the maintainer's decision, 2026-11-08: a switch |
| Checkbox | V1 by the maintainer's decision, 2026-11-08: a check box, separate from Toggle (an on or off value shown as a box and a check) |
| Marquee text | V1 by the maintainer's decision, 2026-11-08: a long text scrolling in a small space |
Not yet v1 or needed: none of the maintainer's standard set remains outside v1 after his decision of 2026-11-08 (Checkbox was added the same day). The multi-line TextField is V1, with the wrapping options in Block Reference > TextField. Grid, Terminal and Canvas are blocks with no v1 use yet.
Notes¶
- Shadows, elevation, transparency, animation and borders are style properties of containers and shapes, not blocks (Surface Types).
- Accessibility roles, labels and states are set on every block and module; the shell passes them to tre (TRE-REQ-001 Layer Surface Window > Delivered (tre #195 closed)).
- tre provides the nodes these are made from; it provides no widgets itself (Vault Reference > The projects).
Open Questions¶
- Which of TextBox, TextEditor, Badge, Tooltip, Toggle, Marquee text and Checkbox are v1: all of them (maintainer, 2026-11-08).
- Which text-input behaviour TextField needs for v1: single-line and multi-line (maintainer, 2026-11-08). Wrapping:
Wrapmeans word wrapping for now and character wrapping comes later; a single-line field has horizontal scroll or an ellipsis, because wrapping a single line makes no sense; a multi-line field wraps by word or does not. The key names are proposed in M4 Brief W3. - The properties and states of each: Block Reference; proposals R1 to R11 decided 2026-11-01. The v1 block set is R11.
Questions After Testing¶
- Do composition and input methods work with a real input method on layer surfaces? The check was not performed and the maintainer does not care about it (2026-11-11); it stays untested.
- Does tre's
text_inputsupport each text-input behaviour (single-line scroll or ellipsis, multi-line word wrap or none)? Yes with tre 0.6.6 (TRE-REQ-016, verified headless by the code session, not repeated in the vault), and the maintainer's KWin check of the fields passed (M4a rows 15 to 20, 2026-11-11).