Skip to content

Block Reference

Note

The properties, events, accessibility defaults and tre mapping of every building block. The set of blocks is decided (Building Blocks). The maintainer decided proposals R1 to R11 on 2026-11-01 ("as recommended", with R7 changed); the decisions are in "Decisions of 2026-11-01" below. Anything marked Open or Proposed is not decided. Visual keys (fill, border, text styling, shadow, motion, states) are style keys and live in Style Schema; this note covers what a block is, holds, does and reports. Written 2026-11-01 from tre's documentation (properties, paint, events, accessibility, building a widget, read 2026-11-01). Where tre's page does not document a default or a value set, the cell says so and the claim is #needs-verification.

How to Read the Tables

Warning

Checked against tre 0.5.10 (2026-11-03); 0.6.0 only renames the package A four-sided value is four tre properties (padding_top and so on), not one padding; colours are (r, g, b, a) tuples of 0 to 255 integers, not strings; a box's background is fill, its border stroke_color and stroke_width. Details and the other forms are in Render Binder Design > What tre Accepts (Tested 2026-11-03). The "tre" columns below are being checked against tre by a test at M1.

  • Keys follow TDL Language > Names and the Registry: Capitalised words joined by _, enum values in upper case. A key that has a tre property keeps tre's name where the shell has not chosen another (Min_Width for min_width), and the tre column names it.
  • A block is called by its head (Text { }). The properties below go inside it. Default none means the key is not set.
  • A key that is also a style key (Padding, Margin, Spacing, Opacity) is a shorthand: writing it on a block is the same as writing it in that block's inline Style, with the priority of inline style (proposed rule R2 below).
  • tre's defaults mostly are not documented; the tre defaults named here are the ones the page states.

What tre Offers (Read 2026-11-01)

Fact Consequence for the blocks
Node kinds: box, text, text_input, image, svg, path, canvas, scroll_view, virtual_list, terminal. Every block maps to one kind or to a composition of kinds. Two kinds, scroll_view and virtual_list, have no block yet (see R3).
Every node with children is a flex container by default (display is "flex"); display: "grid" gives a grid with grid_template_columns, grid_template_rows, row_gap, column_gap, grid_auto_flow. FlexBox and Grid are direct. Grid is supported; the open item "Grid against tre's layout" is closed.
disabled does not block focus, clicks or keys; the widget must do it. The shell's Enabled key is implemented by the block, not by tre.
tre has no hover or pressed state; it gives pointer_enter, pointer_leave, pointer_down, pointer_up, focus, unfocus and focus_visible. The shell tracks Hovered, Pressed and Focused itself and applies the style states.
Input that does the same thing arrives as one click (mouse, Space or Enter on a focused node, assistive activation). A block exposes one On_Click for all three.
node.on(event, handler) replaces an earlier listener for that event on the node. The shell owns the single listener per event and multiplexes to the module.
A canvas's draw runs on creation, when set and on redraw(), not every frame. A Canvas fits "Python runs only in callbacks".

Common Properties

Every block has these.

Identity and Style

Key Values Default tre Meaning
Name An identifier (TDL Language, D28) none none The unique name; gives the block a path (RootShell.DP1.Top_Bar.Title)
Class One class name, or a list none none Style classes (Style, Theme and Stylesheet Files > Classes)
Style A style file, or an inline Style { } block none none Style, Theme and Stylesheet Files > Rules
Tooltip A Popup file, or an inline Popup { } block none none Available on every block and module (decided 2026-10-28, Popup > Tooltips (decided 2026-10-28))

State

Key Values Default tre Meaning
Visible true, false true visible False hides the block from everyone, including assistive technology, and takes no space
Enabled true, false true disabled False sets the accessibility state disabled, applies the style state Disabled and makes the block ignore input; tre does not do this
Part A name (a word) none none On a block in a module's layout: declares a part of the module that a stylesheet can address as Module::part; unique per module; an error outside a module or a duplicate (maintainer, 2026-11-13, as recommended)
Tooltip_When_Disabled true, false false none Lets a disabled block open its tooltip; without it a disabled block opens none, except a disabled Marquee text whose text is cut (Standard Modules > As Built in M4 and Decided 2026-11-13; the code session's key, kept by the maintainer 2026-11-13)
Focusable true, false true on interactive blocks, false otherwise focusable Joins the Tab order
Tab_Index An integer 0 to 2 147 483 647 none none The place in the focus order; the order is held in memory by the shell (Focus and Keyboard > Tab Order: Tab_Index; decided 2026-11-10)
Shortcut_Mode true, false false none On a surface: whether it is in shortcut mode; at most one is true at a time (Focus and Keyboard > Shortcut Mode (the maintainer's design, 2026-11-10); decided 2026-11-10)
Cursor An enum none cursor The pointer shape while over the block. tre's examples use cursor="pointer"; its page does not list the values #needs-verification

Size, Placement and Order

Key Values Default tre Meaning
Width, Height A length (pixels or 50%), AUTO, EXPAND AUTO width, height (number, "auto", percentage) AUTO fits the content. EXPAND takes the free space: it is flex_grow: 1 along the parent's main axis and align_self: stretch across it (proposed mapping)
Min_Width, Min_Height, Max_Width, Max_Height A length none min_width and so on Bounds on a resolved size
Aspect_Ratio A number none aspect_ratio Width over height
Position RELATIVE, ABSOLUTE RELATIVE position ABSOLUTE takes the block out of the layout and places it by Left, Top, Right, Bottom
Left, Top, Right, Bottom A length none left, top, right, bottom Insets of an absolute block
Z_Index A whole number 0 z_index Paint order among siblings
Margin Four-sided, left, top, right, bottom 0 margin_top, margin_right, margin_bottom, margin_left Transparent space around the block. Also a style key

As a Child

Key Values Default tre Applies in
Flex_Grow, Flex_Shrink, Flex_Basis Numbers, and a length or AUTO for the basis 0, 1, AUTO flex_grow, flex_shrink, flex_basis A FlexBox
Align_Self START, CENTER, END, STRETCH by the parent align_self A FlexBox, a Grid, a Box
Grid_Column, Grid_Row A start line, or [start, span] auto grid_column, grid_row A Grid, a Box
Justify_Self START, CENTER, END, STRETCH by the parent justify_self A Grid, a Box

The value sets of the align and justify keys are CSS-like and tre's page does not list them #needs-verification.

Transform and Clip

Key Values Default tre Meaning
Translate_X, Translate_Y A number (pixels) 0 translate_x, translate_y Moves the painted block without changing layout; animatable
Scale A number 1.0 scale Scales the painted block; animatable
Rotation A number (degrees) 0 rotation_deg Rotates the painted block; animatable
Clip_Children true, false false clip_children Clips the children, not the block's own paint

Accessibility

Key Values Default tre Meaning
Role BUTTON, CHECKBOX, SWITCH, SLIDER, TEXTBOX, MENU, MENUITEM, DIALOG, TAB, HEADING, LIST, LISTITEM (tre's page lists more) by block, below role What assistive technology announces
Label A string none label The name read aloud. A text node's words are not exposed alone, so the block that shows text carries the label
Live POLITE, ASSERTIVE none live Announces changes
A11y_Hidden true, false by block, below a11y_hidden Hides the block from assistive technology while it stays visible

State flags (checked, selected, expanded, pressed, value, value_min, value_max, value_step) are set by the block that has them, not written by the author.

Events

Note

Event vocabulary (2026-11-04) The twelve v1 events, their timing and the later additions are defined in Events and Actions. The table below is the older draft; the names in it that are not among the twelve stay until the two lists are reconciled.

An event key is On_ plus the event name. The On_ prefix is reserved for events (maintainer, 2026-11-01, R5): the events in the table below are the first set, and event names are added here as blocks need them. An unknown On_ key is an error that names the closest events.

An action is what the shell does when the event happens. It is a method of the module's Python class marked @action, or a built-in shell action (Module Contract > The Class (Proposed); decided 2026-10-26 that nothing else can be called from a shell file). Arguments may be TEL expressions, evaluated when the event fires (ADR-0007 Shell UI Layer > Events and Module Reload (2026-10-26)).

Value form (decided by the maintainer, 2026-11-01):

On_Click: toggle_mute

On_Changed {
    Action: set_volume
    value: <| event.value |>
}
  • A bare name is an action with no arguments.
  • The block form has an Action: key, which is syntax (Capitalised), and the action's arguments. Argument keys are written as the Python parameters are, like a module's params (D18); their values are literals or slots.
  • event is a name in the scope of those slots, with the fields of tre's event (for example value on change).
  • A name resolves first among the module's @action methods, then among the built-in shell actions. The list of built-in actions is open.
  • One action per event key. A sequence is a method that calls others: Python owns intent.
Key tre event On which blocks
On_Click click (mouse, Space or Enter, assistive activation) Every block; the interactive ones by default
On_Secondary_Click secondary_click Every block
On_Pointer_Enter, On_Pointer_Leave pointer_enter, pointer_leave (do not bubble) Every block
On_Pointer_Down, On_Pointer_Move, On_Pointer_Up, On_Pointer_Cancel pointer_down, pointer_move, pointer_up, pointer_cancel Every block
On_Wheel wheel (delta_x, delta_y) Every block
On_Key_Down, On_Key_Up key_down, key_up Focusable blocks
On_Focus, On_Unfocus focus, unfocus (focus_visible on focus) Focusable blocks

Block-specific events are listed with the block. tre has no double-click and no drag event; a drag is pointer_down plus pointer_move with pointer capture.

Containers

Box

Tip

How a Box differs from a FlexBox (decided 2026-11-01, R1) The maintainer defined a Box as a basic container with no auto-stacking, invisible when unstyled and a panel of its own when fully styled. In tre every node with children lays them out as flex. Decided (R1): a Box is a one-cell grid. All children occupy the same cell and overlap; the Box is as large as its largest child unless sized; each child can align itself with Align_Self and Justify_Self. Nothing is stacked automatically, and the Stack module becomes a Box.

Key Values Default tre Meaning
Padding Four-sided 0 padding_top, padding_right, padding_bottom, padding_left Transparent space between the children and the four sides (D42)
Children A block of blocks none children The contents

Maps to a tre box with display: "grid", one column and one row, and every child placed in cell (1, 1). Role none; A11y_Hidden false.

FlexBox

Key Values Default tre Meaning
Flex HORIZONTAL, VERTICAL HORIZONTAL flex_direction How the children are stacked (D35). NONE is an error on a FlexBox
Wrap true, false false flex_wrap Wraps children onto further lines
Align_Items START, CENTER, END, STRETCH STRETCH align_items Placement across the stacking direction
Justify_Content START, CENTER, END, SPACE_BETWEEN, SPACE_AROUND, SPACE_EVENLY START justify_content Placement along the stacking direction
Spacing A number (pixels) 0 gap Space between the children (D49). Also a style key
Padding Four-sided 0 padding_top, padding_right, padding_bottom, padding_left Space between the children and the four sides

A vertical Bar is a FlexBox with Flex: VERTICAL (decided 2026-10-27). The defaults of the align and justify keys are CSS-like and tre's page does not state them #needs-verification.

Spacer

Key Values Default tre Meaning
(common keys only) a box with flex_grow 1 Takes the free space between its siblings in a flex container; Flex_Grow overrides the 1. Decided 2026-11-04

Grid

Key Values Default tre Meaning
Columns, Rows A whole number (that many equal tracks), or a list of track sizes one track grid_template_columns, grid_template_rows A track size is a length, AUTO or EXPAND (a share of the free space); a number N is N EXPAND tracks
Spacing A number 0 row_gap, column_gap Space between tracks on both axes
Column_Spacing, Row_Spacing A number Spacing column_gap, row_gap One axis
Auto_Flow ROW, COLUMN ROW grid_auto_flow Where an unplaced child goes
Auto_Columns, Auto_Rows A track size AUTO grid_auto_columns, grid_auto_rows The size of tracks the template did not define
Justify_Items, Align_Items, Align_Content START, CENTER, END, STRETCH STRETCH justify_items, align_items, align_content Placement of items and of the tracks
Padding Four-sided 0 padding_top, padding_right, padding_bottom, padding_left Space between the tracks and the four sides

The exact text form of tre's grid_template_columns is not on the page; the shell builds it from the list above #needs-verification. A child sets its cell with Grid_Column and Grid_Row.

ScrollBox (Decided 2026-11-01, R3)

The decided block set has no scrolling block, yet the List module needs one: tre's scrolling is a node kind of its own (scroll_view). Decided: ScrollBox is added to the block set.

Key Values Default tre Meaning
Orientation VERTICAL, HORIZONTAL VERTICAL orientation The scrolling direction
Scroll_Snap NONE, START, CENTER, END NONE scroll_snap Snap points
Scroll_Offset A number (pixels) 0 scroll_offset The current offset; animatable
Padding Four-sided 0 padding_top, padding_right, padding_bottom, padding_left Inside space
On_Scroll event none scroll Fires when the offset changes (old_value, new_value)

VirtualList (Later, R3)

For long lists (launcher results, tasks) where only visible entries are built. Maps to tre's virtual_list: item_count, item_extent (or size_hint), materialize, scroll_offset. The properties would be Item_Count, Item_Extent, Scroll_Offset, and an item template. How an item template is written in TDL, and how it meets the For repeater (TEL reconciles by key), is open; recommendation: leave VirtualList until a module needs more entries than a ScrollBox can build.

Typography

Text

Key Values Default tre Meaning
Text A string; may hold slots empty text The words. Text: Battery <\| battery.percent \|>%
Wrap WORD, NONE WORD wrap NONE keeps one line
Max_Lines A whole number none max_lines Truncates after this many lines
Selectable true, false false selectable (default false) Lets the user select the text
Padding Four-sided 0 padding_top, padding_right, padding_bottom, padding_left Inset around the words (R6)
On_Link event none link (href) A press and release on a link span

A Text's Width and Height default to fit-content, because tre lays out an unset width at 0 and two texts in a row would overlap (found at the M2 KWin check, tess-shell 4e08b54, 2026-11-04; a bridge until tre measures an unset width). Style keys: Font_Family, Font_Size, Font_Weight, Line_Height, Text_Align, Overflow, Foreground (Style Schema > Style Keys). Text_Align takes START, CENTER or END; Overflow takes CLIP or ELLIPSIS; Font_Weight is a number from 1 to 1000 (the sets tre accepts, tested 2026-11-04). A Text with no Foreground is drawn invisibly on the default background: no default colour is specified (see M1 Brief > Decisions Raised by the Build (2026-11-04)). tre also has font_style, letter_spacing, spans (rich text) and fill; the shell has no key for font_style and letter_spacing yet, and rich text is post-v1 (R10). Width: AUTO is tre's "fit-content" for text. Role none; the block that shows the text carries the label. Label is a Text with Wrap: NONE; TextBox is a Text with Wrap: WORD.

TextField

tre's advice is a text_input inside a box that paints the background and border (Building Blocks > What Tre Offers, building a widget). The block is that composition.

Key Values Default tre Meaning
Text A string empty text The value. Data goes in through this key; edits come out through On_Changed (R6)
Placeholder A string none placeholder (only in an example, not in a property table) Shown while empty #needs-verification; otherwise a Text drawn by the composition
Multiline true, false false multiline A multi-line field. The TextEditor module is a TextField with this set
Selection [start, end] (byte offsets) none selection The selection
Show_Whitespace true, false false show_whitespace Draws whitespace marks (a code editor)
Padding Four-sided by theme the box's padding Inset of the text inside the field
On_Changed event none change (old_value, new_value, user edits only) Fires on every change the user makes to the text (each keystroke, paste or deletion). It does not fire when the module sets the text
On_Submit event none submit Enter in a single-line field
On_Text_Commit event none input (text) Fires for committed text, for example an input-method composition; with On_Changed it covers input methods (compose_start, compose_update, compose_end are handled inside the block)

tre 0.6.5 has read_only, max_length and obscured (password masking) on text_input, found by the code session's probe on 2026-11-08 (earlier text here said tre had none, from its documentation page; not checked in the vault); the shell does not offer them as keys yet (Standard Modules open question 7). syntax_spans and folded_ranges exist in tre for code editing and are post-v1. Role TEXTBOX, focusable. Input methods work on layer surfaces in tre 0.5.8; no real input method was tested (V1 Widgets > Open Questions). tre refuses wrap and overflow on a text_input, and a default single-line input wraps by word while multiline=True does not wrap (TRE-REQ-016 Text Input Wrap and Overflow).

V1 forms (maintainer, 2026-11-08). Text input is v1 as single-line and as multi-line (Multiline). Wrap means word wrapping at this time, and character wrapping is added later. A single-line field does not wrap ("makes no sense"): it has horizontal scroll or an ellipsis. A multi-line field wraps by word or does not wrap. TextInput is the single-line module and TextEditor the multi-line one (Building Blocks). Decided with no new key (maintainer, 2026-11-08, as recommended): a multi-line TextField takes the block key Wrap: WORD | NONE that Text has (NONE scrolls horizontally; CHAR later), and a single-line TextField takes the style key Overflow (Style Schema > Style Keys), which gains the value SCROLL for a TextField and defaults to it; ELLIPSIS shows while the field is not edited, and while it is edited the text scrolls to keep the caret visible. tre 0.6.5 cannot select these today: it refuses wrap and overflow on a text_input and does the inverse by default, so the behaviour waits on TRE-REQ-016 Text Input Wrap and Overflow or a shell-side workaround, which the maintainer chooses (M4 Brief, question 9). #needs-verification

Graphics

Bitmap

Key Values Default tre Meaning
Source A file path, relative to the file that names it none rgba, pixel_width, pixel_height The image. The shell reads and decodes the file and gives tre the pixels (data in, not files, Vault Reference > Layering principle)
Fit FILL, CONTAIN, COVER CONTAIN fit How the image fits the block

A side is at most 8192 pixels (tre). Decoding png, jpeg, gif and webp needs an image library in the shell, and an animated gif needs frame stepping through repeated set(rgba=...); both are open (R8). A tint is not documented in tre; an icon that must take the theme colour is an SVG. Role none; A11y_Hidden true unless Label is set.

SVG

Key Values Default tre Meaning
Source A file path, relative to the file that names it none svg (str or bytes, gzip allowed) The document, read by the shell and given to tre. A malformed document is an error with the file position
Icon An icon name, mdi:account (a prefix selects a set; no prefix looks in mdi first) none svg Exactly one of Source and Icon. Icon sets are Iconify-style JSON read from the config Icons folder, then Directories { Icons }; no set shipped in M2b (D26); mdi ships in the package from M3 (maintainer, 2026-11-05; M3 Brief); an unknown icon is an error at its value naming the nearest names; Color tints it
Color A colour none svg_color What currentColor resolves to; the Foreground style key sets it, so a themed icon follows the theme

tre fits an SVG uniformly and centres it (xMidYMid meet), so Fit is not offered. svg_images (pixels for an <image> inside the document) is not exposed. Width and Height default to the document's size #needs-verification. Role none; A11y_Hidden true unless Label is set.

Shapes

All shapes are drawn as a tre path (SVG path data), except a Rectangle, which M1 builds as a rounded tre box (fill, corner_radius, stroke_*) because its Width and Height may be AUTO or EXPAND, which a path cannot take (decided 2026-11-04) and take the style keys Fill (the interior) and Border_Color, Border_Width (the stroke, centred on the outline). A shape's default hit shape is PAINTED (decided 2026-10-27); Hit_Shape can set BOX (Hit Testing for Concave Corners; tre's hit_shape is "box" by default and "painted"). Shapes have no Children, so no Padding. Role none; A11y_Hidden true.

Block Own keys Notes
Rectangle Corner_Radius (one number, or four from the top-left corner clockwise) Width, Height
Square Side (a length), Corner_Radius A Rectangle with equal sides
Circle Diameter (a length) A circle fits its box
Ellipse Width, Height A Circle with two sizes
Ring Diameter; the ring's thickness is Border_Width A Circle with no fill and a border
Triangle Direction (UP, DOWN, LEFT, RIGHT; default UP) An isosceles triangle in its box
Hexagon Orientation (POINTY, FLAT; default POINTY) A regular hexagon in its box
Path Data (SVG path syntax), View_Box ([min_x, min_y, width, height]), Trim_Start, Trim_End tre's path: data, view_box, trim_start, trim_end (0.0 to 1.0). Used for the Frame's concave corners and Panel joins. Caps and joins are round and not settable in tre

Differences from a Box: a Box's Border takes layout space (2026-11-02), so its content and children sit inside the border; tre's box stroke (stroke_color, stroke_width) is drawn inside the box without changing layout, so the shell adds the border width to the box's space (proposed mapping, #needs-verification); a path's stroke is centred on the outline and is the same width whatever the view box. The shape blocks are generated path data, so the shell computes them from Width and Height. Triangle and Hexagon have no corner rounding in v1.

Other

Terminal

Key Values Default tre Meaning
Columns, Rows 1 to 1000 80, 24 (the shell's choice) #needs-verification cols, rows The terminal's size in character cells
Scrollback_Lines A whole number tre's default scrollback_lines (creation only) History kept
Selection Four numbers none selection The selection

Style keys: Font_Size, and a Terminal_Palette block for palette (ansi, foreground, background, cursor, selection). Role TEXTBOX.

Caution

A Terminal starts a process tre's shell argument is set at creation and runs a program. TDL is data from a configuration file and must not start processes. Decided (R4): TDL has no Command key. A Terminal is attached by a module's Python, which supplies the process. A shell file can place a Terminal block but cannot make it run anything. Recorded in Risk Register as R-22. Post-v1.

Canvas

Key Values Default tre Meaning
Draw A module method none draw Called with tre's painter when the Canvas is created, when Draw is set and when the module calls redraw (tre painter reference)

The drawing is Python, so a Canvas is for a module that ships its own .py. Role none; A11y_Hidden true unless Label is set. Post-v1.

Accessibility Defaults

Block or module Role (Role) Focusable Notes
Box, FlexBox, Grid, ScrollBox none no A container with a role of its own (a LIST, a MENU) takes it from its module
Text none no The block that shows text carries the Label
TextField TEXTBOX yes Enter submits a single-line field
Bitmap, SVG, shapes, Canvas none no A11y_Hidden true unless Label is set: a decorative image is not announced
Terminal TEXTBOX yes
Button (module) BUTTON yes On_Click runs on mouse, Space and Enter alike, and on the assistive activate action
Toggle (module) SWITCH, state checked yes
Checkbox (module) CHECKBOX, state checked yes
Slider (module) SLIDER, value, value_min, value_max, value_step yes Arrow keys step it; a11y_action handles increment, decrement and set_value
Menu, MenuItem (modules) MENU, MENUITEM yes expanded on a menu with a submenu
List (module) LIST, LISTITEM yes selected on the chosen entry

A focus ring appears only for keyboard focus (focus_visible), as a non-blurred shadow with spread so it does not shift layout (tre's building-a-widget guide). The style state Focused therefore means keyboard focus. Reduced motion and high contrast are the theme's job (Goals and Non-Goals G7).

Decisions of 2026-11-01

Proposals R1 to R11 were decided by the maintainer in chat ("As recommended"), except R7, which the maintainer changed. R12 to R14 record the maintainer's other answers of the same day.

# Topic Decision
R1 What is a Box? A one-cell grid: children overlap, the Box sizes to the largest, children align themselves.
R2 Property or style? Layout and behaviour are properties; visual keys are style keys. Every style key of a block may be written directly on the block as a shorthand for inline Style (maintainer, 2026-11-04, D13); Padding, Margin, Spacing and Opacity are the usual ones. Writing the same key both as a property and inside Style { } is an error naming both places (maintainer, 2026-11-04), so there is no precedence rule.
R3 Scrolling blocks ScrollBox is added to the block set. VirtualList waits until a module needs it.
R4 Terminal No Command key in TDL; a module's Python attaches the process. Post-v1.
R5 Event values On_ is reserved for events; event names are added as blocks need them. An action is an @action method or a built-in shell action. The value form under Events is a proposal.
R6 Input state and Padding Data in through Text, edits out through On_Changed; no two-way binding. Padding is on every block with Children and also on Text and TextField (this decides D59 of ADR-0014 Shell File Language).
R7 Icons Changed by the maintainer. Lookup order: (1) a shipped set of SVG icons in a JSON file, (2) the desktop's freedesktop icon theme, (3) the Icons folder in the shell's config directory, (4) the locations a developer lists in settings.tdl. See "Icons" below. The maintainer provides the JSON file.
R8 Image decoding The shell decodes png, jpeg, gif and webp with an image library (Pillow, chosen by the maintainer on 2026-11-03; the decoding helper lives in tess_utils, ADR-0017 Shared Utilities). An animated gif is stepped by the shell. Post-v1 for animation.
R9 A block handle for Python A module can reach a block it names and call focus(), capture_pointer(), release_pointer(), redraw() and read layout_width and layout_height. To be written into Module Context.
R10 Rich text tre's spans become repeated Span blocks inside a Text. Post-v1.
R11 v1 block set Box, FlexBox, Grid, Text, TextField (single line), Bitmap, SVG, Rectangle, Circle, Ring, Path and ScrollBox. The rest follow when a module needs them (V1 Widgets).
R12 Custom blocks A module author can add a block, in Python, shipped with the module. The mechanism (accepted 2026-11-01) is under "Custom Blocks" below.
R13 Revealer renamed The module Revealer is now Expander, the familiar name (maintainer, 2026-11-01).
R14 Stack The maintainer asked what separates a Stack from a FlexBox. A FlexBox places children side by side or one under another. A Stack puts them on top of each other in one cell. With R1 a Box already does that, so the Stack module has nothing left to add. Decided (maintainer, 2026-11-01): Stack is dropped; use a Box.

Icons (R7)

The Icon module finds an icon by name in this order; the first hit wins. A file path (relative to the file that names it) skips the lookup.

Order Source Notes
1 The shipped set: SVG icons in JSON files that ship with the shell The maintainer's Iconify-style JSON files (see "The Icon Set Files"); v1 ships mdi only (decided 2026-11-01). The shell reads them on first use and gives tre an SVG document built from each icon's body
2 The desktop's freedesktop icon theme Icon Theme Specification; the current theme comes from the desktop settings #needs-verification
3 The Icons folder in the shell's config directory $HOME/.config/tesserae-shell/Icons/ (Settings File)
4 The locations a developer lists in settings.tdl Under Directories { Icons: [...] }, searched in order (proposed key; Settings File)

The maintainer provided the icon set as JSON files (2026-11-01); they are described under "The Icon Set Files" below.

Settings key (decided by the maintainer, 2026-11-01): Directories { Icons: [...] }, the same key as the other file types, one path or a list searched in order. The config Icons/ folder (row 3) comes first and the listed paths follow, as the maintainer set the order; this is the one place where a listed path is searched after the default folder, because the Settings File note proposes the opposite for the other types (Settings File).

Consequences to confirm: because the shipped set is first, a file in Icons/ or the desktop theme cannot replace a shipped icon of the same name; to use another battery-full a user names the file by path or uses another name. Open: how the JSON file is versioned and updated, and the Icon module's parameter for the name (not Name, which is the unique name). The icon set's licence goes into the delivery notes.

The Icon Set Files (2026-11-01)

The maintainer's files are in ~/Projects/pyDev/projects/tess-icons/icon-sets/Material-Design-Icons/ (his tess-icons project). He re-exported them on 2026-11-01 as two files, each with a set name, author, URL and licence. Read-only inspection of the re-export:

File Set Prefix Author and URL Licence (as the file states it) Icons Size Content
material-design-icons.json Material Design Icons mdi Pictogrammers, github.com/Templarian/MaterialDesign Apache 2.0 7,447 2.7 MB Static, 24 by 24; every body uses currentColor (7,447 of 7,447) and none uses #fff
material-line-icons.json Material Line Icons mli Vjacheslav Trushkin, github.com/cyberalien/line-md MIT 1,218 1.5 MB Animated with SMIL (<animate> in 1,216, <set> or <animateTransform> in 343); 164 names end in -loop; all bodies use currentColor
  • Format. Iconify-style: top keys name, author, license, prefix, icons, width, height (24); each icon has only body, the markup inside the <svg> element. No aliases and no per-icon viewBox.
  • Names. 207 names exist in both sets, 7,240 only in mdi and 1,011 only in mli.
  • Cost. Loading took 7.8 ms and 2.6 ms (Block Reference > The Icon Set Files (2026-11-01) earlier measurement for the first export: 4.5 MB and 1.6 MB of memory; the new files are the same size within 3 percent).
  • Hard-coded colours. The line set still has #fff or #000 in 464 bodies. All 464 are inside a <mask>, where black and white are the mask's own values and must stay. The recolouring check in the icon tests therefore ignores <mask> and <clipPath> content and fails on a hard-coded colour anywhere else.
  • The earlier findings that changed. The duplicate no-anim file is gone. The recolouring is done in the data (currentColor), so the shell does none. The animated set's source and licence are stated in the file: it is the Material Line Icons set by Vjacheslav Trushkin, MIT.

Recommendations (the agent's; not decided):

  1. Prefixes (accepted 2026-11-01). An icon name may carry its set prefix, mli:account-alert-loop, which always selects that set. A name with no prefix looks in mdi first. The Icon module's Animated parameter (false by default) looks in mli first and falls back to mdi; in v1 only mdi ships, so Animated has no effect until mli does. This settles the 207 shared names.
  2. Load lazily. Read a file on the first lookup that needs it and keep the dictionary. The animated file is read only when something asks for it.
  3. Animated icons in tre (tested 2026-11-01). tre draws a SMIL icon as one static frame and does not play it. The test rendered offscreen with Window.snapshot() (no display) from the local tre source tree (0.5.9, git 0fd1e7e): mdi account and battery-charging, and mli account, alert-circle-loop, beer, beer-alt and beer-alt-filled, each at the start, after advance(500), at snapshot(time=2.0) and after advance(2500). The painted pixels were identical at every time for all seven, and the images are the same. The mli account icon, whose strokes start hidden by stroke-dashoffset and are meant to draw on, shows only its torso arc, without the head, at the start and after three seconds. So an animated icon shown today looks unfinished. Masks work: the beer icon, which has a <mask> and an <animate>, draws its cup; 462 of the 1,218 line icons have both. #needs-verification on whether an icon that sets values only in the end frame (a fill="freeze" intro) would look right frozen at its end state.
  4. Licences travel with the files (done in the folder, 2026-11-01). The folder now holds MDI-LICENSE.txt (Pictogrammers, Apache 2.0) and MLI-LICENSE.txt (MIT, with the copyright line of Vjacheslav Trushkin), and the spdx fields read Apache-2.0 and MIT. Still to do in delivery: ship both texts in the package. Pictogrammers' note that "some of the icons are redistributed under their respective licenses" may need a per-icon list. Risk Register R-23.
  5. Names. Shipped names are kebab-case (account-alert); freedesktop names differ (audio-volume-high), so the theme lookup (row 2) serves the names neither set has.

Options for the animated set, given item 3. Decided by the maintainer on 2026-11-01: A (ship only mdi in v1) and C (an engine request, written as TRE-REQ-008 SMIL Animation in SVG Nodes; the maintainer gave tre the go-ahead, tre scoped it as issue #245 and built it on a local branch on 2026-11-02, unreleased). B stays a possible later addition. mli can ship once a tre release carries the request and the TRE: pin names it.

Option Cost Recommendation
A. Ship only mdi in v1; leave mli out until tre plays SMIL None. The shell works with 7,447 static icons. Recommended for v1
B. Export a static mli: each icon in its end state, with the animation tags removed A change in the tess-icons export (the earlier "no-anim" idea). It gives a second, line-style family that tre can draw correctly. Recommended as a later addition
C. An engine request to tre for SMIL (<animate>, <set>, <animateTransform>) A request to tre (Vault Reference > Requests between projects); not needed to ship v1; the shell cannot play SMIL itself (Python never runs per frame). Write it only if you want animated icons

An Icon Chosen at Run Time (Built in M5b)

As built by the code session (f71b491, reported 2026-11-12, not run in the vault; the maintainer's yes is relayed by it):

  • Icon: <| expr |> on an SVG block, and as the icon param of a module call (Icon, Button, MenuItem), also inside If and For. A change of the name swaps the document in the same node.
  • An unknown name at run time shows image-broken-variant with one warning per name, as a static unknown name does; an empty name shows nothing; text that starts with <svg is used as it is.
  • Limits: a file path arriving at run time is not resolved; the slot is not available in a shell-file layout, because a slot outside a module has no scope.
  • A name from the desktop's icon theme (a tray item, a task) goes through ctx.icons.theme_icon (Tray Module > Icons (G8)), not through this slot's mdi lookup.

Custom Blocks (R12)

The maintainer decided that a module author can add a block, in Python, shipped with the module. The mechanism below was accepted on 2026-11-01.

  • A block is a Python class in the module's <Name>_Module.py, derived from a shell Block base. It declares its properties (type, default, choices, doc), parts, states and events the way a built-in does, so the schema and the error messages cover it (Style Schema, JSON Schema and Editor Support).
  • It is built from tre nodes: a tree of the existing node kinds. It cannot add a new tre node kind.
  • It is registered by name in the one registry when the module loads, and removed when the module is unloaded or reloaded (Hot Reload). A name used twice is a load error, except that a user module overrides a shipped one.
  • Once the module has loaded, any file can use the block by its name, like any other.
  • It runs the module's Python in the shell's process, so the unwritten security model for user Python applies (Risk Register R-19).
  • API (decided by the maintainer, 2026-11-01): v1 custom blocks are leaf blocks, with no Children, because composition is what modules are for. A name needs no prefix: a name used twice is a load error that names both places. The class sketch is under "Custom Block API (Decided)" and is mirrored in Module Contract > Custom Blocks (Decided).

Custom Block API (Decided)

The API is decided; the sketch is an illustration, and the import path and the final class and helper names are not:

# Modules/Meter/Meter_Module.py
from tess_shell import Module, Block, Prop

class Meter(Block):
    name = "Meter"                               # the head used in TDL
    properties = {
        "Value": Prop(float, default=0.0, doc="0.0 to 1.0"),
        "Segments": Prop(int, default=10, doc="Number of bars"),
    }
    parts = ("track", "fill")                    # a style can address them
    states = ("hovered", "disabled")             # a style can target them
    events = ("On_Click",)                       # event keys it offers

    def build(self, ctx, props):                 # once, on the loop thread
        ...                                      # returns a tree of tre nodes

    def update(self, ctx, props, changed):       # when a property changes
        ...
  • build and update are callbacks that return fast; neither runs per frame. A Canvas is redrawn on a change, not every frame.
  • The shell validates the properties from the declaration (type, default, doc) and puts the block in the project schema (JSON Schema and Editor Support).
  • A file holds one Module class and any number of Block classes.
  • The shell's own node builder wraps tre's node kinds; the exact calls are not decided, and no tre API is invented here.

Open

  • The list of built-in shell actions.
  • Shipping the licence texts in the package. The animated set is settled for v1 (option A) and the engine request TRE-REQ-008 SMIL Animation in SVG Nodes is written, not filed.
  • The value sets and defaults of the align, justify and cursor keys, and the text form of grid tracks (#needs-verification against tre's source or a test).
  • The default sizes of an SVG and of a Terminal (#needs-verification).
  • The event and action vocabulary and the value form of an On_ key.
  • Which style keys have no tre property yet (font_style, letter_spacing) and whether the shell offers them.
  • Does Width include padding and border? Recommendation: yes (border-box, as CSS box-sizing: border-box and most UI toolkits).

Acceptance Criteria

  • Every block in the decided set has a table here, and every key has a type, a default or none, and the tre property it maps to, or none.
  • An unknown key on a block is an error that names the closest keys (Common Keys and Conventions).
  • Flex: NONE on a FlexBox is an error that says so.
  • A Box with two children lays them in one cell, and sizes to the larger.
  • Enabled: false stops On_Click, sets the accessibility state disabled and applies the style state Disabled.
  • A Bitmap or SVG with no Label is hidden from assistive technology.
  • A Terminal in a TDL file does not start a process.
  • A TextField reports a user edit through On_Changed and does not report a value the module set.