tesserae-shell 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tesserae_shell-0.1.0/.gitignore +21 -0
- tesserae_shell-0.1.0/CHANGELOG.md +262 -0
- tesserae_shell-0.1.0/LICENSE +21 -0
- tesserae_shell-0.1.0/PKG-INFO +185 -0
- tesserae_shell-0.1.0/README.md +161 -0
- tesserae_shell-0.1.0/hatch_build.py +24 -0
- tesserae_shell-0.1.0/pyproject.toml +92 -0
- tesserae_shell-0.1.0/src/tess_shell/__init__.py +22 -0
- tesserae_shell-0.1.0/src/tess_shell/__main__.py +3 -0
- tesserae_shell-0.1.0/src/tess_shell/_vendor/VENDORED.json +10 -0
- tesserae_shell-0.1.0/src/tess_shell/_vendor/__init__.py +7 -0
- tesserae_shell-0.1.0/src/tess_shell/_vendor/tess_utils.cpython-314-x86_64-linux-gnu.so +0 -0
- tesserae_shell-0.1.0/src/tess_shell/_vendor/tess_utils.pyi +15 -0
- tesserae_shell-0.1.0/src/tess_shell/app.py +509 -0
- tesserae_shell-0.1.0/src/tess_shell/appearance.py +27 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/__init__.py +5 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/build.py +1423 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/controls.py +724 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/convert.py +471 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/defaults.py +154 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/focus.py +70 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/images.py +165 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/marquee.py +192 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/model.py +361 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/motion.py +185 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/rebuild.py +202 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/shadow.py +87 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/shapes.py +70 -0
- tesserae_shell-0.1.0/src/tess_shell/binder/tables.py +441 -0
- tesserae_shell-0.1.0/src/tess_shell/cli.py +163 -0
- tesserae_shell-0.1.0/src/tess_shell/client.py +236 -0
- tesserae_shell-0.1.0/src/tess_shell/commands.py +154 -0
- tesserae_shell-0.1.0/src/tess_shell/config/__init__.py +1 -0
- tesserae_shell-0.1.0/src/tess_shell/config/discovery.py +49 -0
- tesserae_shell-0.1.0/src/tess_shell/config/lock.py +55 -0
- tesserae_shell-0.1.0/src/tess_shell/config/paths.py +82 -0
- tesserae_shell-0.1.0/src/tess_shell/config/registry.py +163 -0
- tesserae_shell-0.1.0/src/tess_shell/config/settings.py +597 -0
- tesserae_shell-0.1.0/src/tess_shell/config/uids.py +104 -0
- tesserae_shell-0.1.0/src/tess_shell/exit_codes.py +35 -0
- tesserae_shell-0.1.0/src/tess_shell/files/__init__.py +1 -0
- tesserae_shell-0.1.0/src/tess_shell/files/header.py +63 -0
- tesserae_shell-0.1.0/src/tess_shell/files/icons.py +108 -0
- tesserae_shell-0.1.0/src/tess_shell/files/loader.py +205 -0
- tesserae_shell-0.1.0/src/tess_shell/logging.py +280 -0
- tesserae_shell-0.1.0/src/tess_shell/model/__init__.py +5 -0
- tesserae_shell-0.1.0/src/tess_shell/model/args.py +170 -0
- tesserae_shell-0.1.0/src/tess_shell/model/expand.py +528 -0
- tesserae_shell-0.1.0/src/tess_shell/model/field.py +215 -0
- tesserae_shell-0.1.0/src/tess_shell/model/icons.py +42 -0
- tesserae_shell-0.1.0/src/tess_shell/model/live.py +596 -0
- tesserae_shell-0.1.0/src/tess_shell/model/look.py +505 -0
- tesserae_shell-0.1.0/src/tess_shell/model/marquee.py +69 -0
- tesserae_shell-0.1.0/src/tess_shell/model/store.py +148 -0
- tesserae_shell-0.1.0/src/tess_shell/model/uses.py +104 -0
- tesserae_shell-0.1.0/src/tess_shell/module.py +86 -0
- tesserae_shell-0.1.0/src/tess_shell/modules/__init__.py +1 -0
- tesserae_shell-0.1.0/src/tess_shell/modules/context.py +322 -0
- tesserae_shell-0.1.0/src/tess_shell/modules/host.py +783 -0
- tesserae_shell-0.1.0/src/tess_shell/modules/ticks.py +117 -0
- tesserae_shell-0.1.0/src/tess_shell/options.py +12 -0
- tesserae_shell-0.1.0/src/tess_shell/py.typed +0 -0
- tesserae_shell-0.1.0/src/tess_shell/reloader.py +317 -0
- tesserae_shell-0.1.0/src/tess_shell/scanner.py +317 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/__init__.py +1 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/blocks.py +687 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/default_popups.py +118 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/docs.py +1087 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/export.py +1514 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/findings.py +76 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/graph.py +64 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/keys.py +253 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/look.py +340 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/model.py +323 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/ranges.py +125 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/shell.py +2946 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/style.py +68 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/tree.py +93 -0
- tesserae_shell-0.1.0/src/tess_shell/schema/values.py +569 -0
- tesserae_shell-0.1.0/src/tess_shell/services/__init__.py +0 -0
- tesserae_shell-0.1.0/src/tess_shell/services/api.py +384 -0
- tesserae_shell-0.1.0/src/tess_shell/services/audio.py +576 -0
- tesserae_shell-0.1.0/src/tess_shell/services/bus.py +820 -0
- tesserae_shell-0.1.0/src/tess_shell/services/control.py +416 -0
- tesserae_shell-0.1.0/src/tess_shell/services/icons.py +503 -0
- tesserae_shell-0.1.0/src/tess_shell/services/layer.py +762 -0
- tesserae_shell-0.1.0/src/tess_shell/services/portal.py +264 -0
- tesserae_shell-0.1.0/src/tess_shell/services/pulse_native.py +512 -0
- tesserae_shell-0.1.0/src/tess_shell/services/shortcuts.py +482 -0
- tesserae_shell-0.1.0/src/tess_shell/services/tray.py +216 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Audio/Audio_Module.py +236 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Audio/Audio_Module.tdl +124 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Audio/Audio_Style.tdl +15 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Audio_Outputs/Audio_Outputs_Module.py +18 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Audio_Outputs/Audio_Outputs_Module.tdl +36 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Badge/Badge_Module.py +9 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Badge/Badge_Module.tdl +42 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Battery/Battery_Module.py +174 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Battery/Battery_Module.tdl +139 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Battery/Battery_Style.tdl +15 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Button/Button_Module.py +23 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Button/Button_Module.tdl +58 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Checkbox/Checkbox_Module.py +10 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Checkbox/Checkbox_Module.tdl +59 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Clock/Clock_Module.py +138 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Clock/Clock_Module.tdl +57 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Clock/Clock_Style.tdl +16 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Expander/Expander_Module.py +20 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Expander/Expander_Module.tdl +50 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Handles/NOTICE.txt +5 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Handles/tess_shell_bar.svg +3 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Handles/tess_shell_chevron.svg +3 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Handles/tess_shell_dots.svg +5 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Icon/Icon_Module.py +17 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Icon/Icon_Module.tdl +36 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Icons/MDI-LICENSE.txt +20 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Icons/NOTICE.txt +9 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Icons/mdi.json +22357 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Image/Image_Module.py +18 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Image/Image_Module.tdl +48 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Images/error.png +0 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Label/Label_Module.py +9 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Label/Label_Module.tdl +22 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/List/List_Module.py +22 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/List/List_Module.tdl +48 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Marquee_Text/Marquee_Text_Module.py +22 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Marquee_Text/Marquee_Text_Module.tdl +35 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Media/Media_Module.py +503 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Media/Media_Module.tdl +112 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Menu/Menu_Module.py +10 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Menu/Menu_Module.tdl +32 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/MenuItem/MenuItem_Module.py +20 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/MenuItem/MenuItem_Module.tdl +88 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Network/Network_Module.py +416 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Network/Network_Module.tdl +164 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Network/Network_Style.tdl +15 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/ProgressBar/ProgressBar_Module.py +17 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/ProgressBar/ProgressBar_Module.tdl +39 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Slider/Slider_Module.py +24 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Slider/Slider_Module.tdl +70 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Stylesheets/Default_Stylesheet.tdl +127 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/TextBox/TextBox_Module.py +19 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/TextBox/TextBox_Module.tdl +26 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/TextEditor/TextEditor_Module.py +27 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/TextEditor/TextEditor_Module.tdl +41 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/TextInput/TextInput_Module.py +18 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/TextInput/TextInput_Module.tdl +39 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Themes/Default_Theme.tdl +100 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Toggle/Toggle_Module.py +10 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Toggle/Toggle_Module.tdl +47 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray/Tray_Module.py +655 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray/Tray_Module.tdl +59 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray_Item/Tray_Item_Module.py +9 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray_Item/Tray_Item_Module.tdl +71 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray_Item/Tray_Item_Style.tdl +15 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray_Menu/Tray_Menu_Module.py +52 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Tray_Menu/Tray_Menu_Module.tdl +57 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Workspaces/Workspaces_Module.py +168 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Workspaces/Workspaces_Module.tdl +54 -0
- tesserae_shell-0.1.0/src/tess_shell/shipped/Workspaces/Workspaces_Style.tdl +20 -0
- tesserae_shell-0.1.0/src/tess_shell/shortcuts.py +265 -0
- tesserae_shell-0.1.0/src/tess_shell/signals.py +147 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/__init__.py +1 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/bar.py +264 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/focus.py +53 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/frame.py +2044 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/frame_shader.py +569 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/handle.py +243 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/hotplug.py +199 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/join.py +234 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/join_concave.py +218 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/join_param.py +152 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/join_shader.py +235 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/join_structure.py +96 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/manager.py +1705 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/mode.py +231 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/mode_driver.py +390 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/outline.py +240 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/panel.py +156 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/popup.py +1245 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/popup_measure.py +256 -0
- tesserae_shell-0.1.0/src/tess_shell/surfaces/ring.py +679 -0
- tesserae_shell-0.1.0/src/tess_shell/watch.py +184 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Editors
|
|
2
|
+
.vscode/
|
|
3
|
+
.idea/
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.py[cod]
|
|
8
|
+
.venv/
|
|
9
|
+
.pytest_cache/
|
|
10
|
+
.mypy_cache/
|
|
11
|
+
.ruff_cache/
|
|
12
|
+
build/
|
|
13
|
+
dist/
|
|
14
|
+
*.egg-info/
|
|
15
|
+
.coverage
|
|
16
|
+
htmlcov/
|
|
17
|
+
|
|
18
|
+
# Agent harness (plans, scratch) and the local code graph built by `graphify update .`
|
|
19
|
+
.omp/
|
|
20
|
+
.pi/
|
|
21
|
+
graphify-out/
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 - 2026-11-15
|
|
4
|
+
|
|
5
|
+
- Moved to tesserae-dl 0.2.0 (floor `>=0.2.0,<0.3`; language TDL 0.2): a slot is written `<| expression |>` and `{{ }}` is refused by the parser (`tdl-unexpected-text`, with the hint `Write <| expression |>`); every shipped `.tdl` file, fixture, example, hint, doc line and the README use the new form and the header `TDL: 0.2` (`Shell: 0.1` is the shell's own version and stays). `tess_dl` accepts any version of its own major number, so the shell checks the `TDL:` key itself: a file written for TDL 0.1 is an error `tdl-old-version` at the key (and a newer one a `version-pin`), also for `settings.tdl`, and the UID write skips such a file. `tdl-double-close` no longer exists (`}}` is two closing braces).
|
|
6
|
+
- `For` with several loop variables (`For i, item In <| enumerate(items) |> Key <| item.id |> { ... }`, new in TDL 0.2): `ForNode.variables` (a tuple; `variable` is gone) carries every name written, and `model/live.py` gives them to tess-el's `compile_repeater_parts` as written, which unpacks each item of the list over the names (an item that is not a list or tuple with one value per name is reported at the `For` as a TEL error and the entries are left out). Every name is readable in the entry's slots, in `Key`, in a handler's argument slots and in a Popup's content; the nodes are kept by key as before. A duplicate or invalid name is the language's own finding (`tdl-duplicate-variable`, "A For needs a variable name").
|
|
7
|
+
- Package skeleton: `pyproject.toml`, `src/tess_shell`, tooling (ruff, mypy, pytest).
|
|
8
|
+
- Command line `tesserae-shell` with `version`; `run` and `check` are wired in later tasks; the other subcommands report "not implemented in M0".
|
|
9
|
+
- Config directory lookup (`--config-dir`, `$XDG_CONFIG_HOME`, `~/.config`) and `settings.tdl` reading: every key of the Settings File note, one finding per problem with `file:line:column`.
|
|
10
|
+
- Loguru setup: console sink and a daily `log_YYYY-MM-DD.log` (directory 0o700, file 0o600), JSON option, midnight file swap, retention, console-only fallback.
|
|
11
|
+
- Instance lock (`flock` on `$XDG_RUNTIME_DIR/tesserae-shell/lock`, exit 4 naming the holder's pid) and `$XDG_RUNTIME_DIR` checks (exit 2).
|
|
12
|
+
- `tesserae-shell run`: pre-flight, settings, logging, instance lock, registry (`registry.json`, created and saved atomically), then the engine loop with `keep_alive`; SIGTERM and SIGINT stop it cleanly (exit 0), a second signal forces exit 130. Steps 7 to 12 of the start sequence that need later milestones are logged as not built.
|
|
13
|
+
- `tesserae-shell check`: settings, then a syntax check of every `*_Shell.tdl`, `*_Module.tdl`, `*_Style.tdl`, `*_Theme.tdl` and `*_Stylesheet.tdl` under the search directories, with `file:line:column`, `--json`, exit 0, 1 or 2. `run` step 7 does the same scan.
|
|
14
|
+
- Idle measurement script `tests/perf/measure_idle.py` and its first result (`tests/perf/idle-results.md`): 0.000 % of one core and about 3 wake-ups per second over 60 s, within the budgets.
|
|
15
|
+
- Import rules of the package layout are enforced by `tests/test_imports.py`.
|
|
16
|
+
- M1 binder (`tess_shell.binder`): the typed tree and `BindError` (`model.py`).
|
|
17
|
+
- M1 binder converters (`convert.py`): length, bound, number, whole, positive, bool, text, color, enum, wrap flag, sides, radius, font family, plus a colour parser; table-driven tests.
|
|
18
|
+
- M1 binder tables (`tables.py`) for `Box`, `FlexBox`, `Text`, `Rectangle`, `Spacer` and `SVG`, guarded by a test that builds a node for every row on a headless tre window; `build.py` binds a typed tree through `Window.build`, collects every error with its `file:line:column`, translates tre's errors back to the key, refuses `If` and `For`, and returns a `View` with `dispose`.
|
|
19
|
+
- M1 Bar geometry (`surfaces/bar.py`): `bar_geometry(spec, output, content)` computes tre's `anchor`, `size`, `margin`, `exclusive_zone` and `exclusive_edge` as a pure function; every row of the worked-examples table is a test, with `ZeroSize` for a Bar that is not created.
|
|
20
|
+
- Text `Width`/`Height` `AUTO` becomes tre's `"fit-content"`; a test pins that a headless `LayerWindow` accepts the Bar geometry of every worked example.
|
|
21
|
+
- Binder: a key written both in a block and in its Style is an error naming both places (D2); a Font_Family list is joined with ", " (D5).
|
|
22
|
+
- M1 schema (`tess_shell.schema`): `read_shell` checks a parsed `*_Shell.tdl` against the `Shell`, `Monitor`, `Bar` and block key declarations and types it into the binder's model; unknown keys with nearest names, wrong types, missing keys, duplicate names and monitors, `style-duplicate`, `bad-sides`, `Border { }` flattened, forms not built in M1 refused (`not-built`; Bar keys M1 does not build are warnings). `tree.py` moved from `files` to `schema`.
|
|
23
|
+
- M1 files: stage 3 header checks (`version-pin`, `shell-root-suffix`); `check` and `run` step 7 now type every `*_Shell.tdl`, print warnings without failing, and a test pins that the schema's key declaration matches the binder tables.
|
|
24
|
+
- M1 surfaces (`surfaces/manager.py`): `assign` matches `Monitor` blocks to outputs (Connector, then Description, then Index; `Index: default` takes the rest), `SurfaceManager` opens one `LayerWindow` per Bar (namespace `tesserae-shell.bar.<name>`, geometry from `bar_geometry`, inline `Fill`), binds its children and logs every bind error while leaving that Bar empty; `run` steps 10 and 11 call it. Tests on a private headless sway: the Bar is configured at 1280x32, the output's usable area shrinks by the reserved zone and is restored when the shell stops.
|
|
25
|
+
- M1 measurements: `tests/perf/measure_bind.py` (`bind-results.md`) and `measure_idle.py --bar` (`idle-results-bar.md`): 3,101 nodes bind in about 12.6 ms, the example in 0.03 ms; idle with the Bar shown is 0.000 % of one core and about 2.7 wake-ups per second.
|
|
26
|
+
- A Monitor block that names an output an earlier block already took logs a warning naming both blocks at start; the first wins (D11).
|
|
27
|
+
- A reference image of the M1 example (`tests/snapshots/m1_example.png`, 400x32) compared with a tolerance of 0.2 % of the pixels (a recoloured icon fails it); `UPDATE_SNAPSHOTS=1` regenerates it, written by `tess_re.snapshot.write_png`. The sample SVG now uses `currentColor`, so its `Color` is visible.
|
|
28
|
+
- M2a binder: `SlotValue`, `SlotPart` and `UseNode` in the typed tree (the binder refuses them unevaluated), and `View.update` sets new typed values on named nodes through one `Window.apply`, skipping values a node already has.
|
|
29
|
+
- M2a schema: `read_module` types a `*_Module.tdl` (`Module { Params { } Children { } }` or one layout block; param types string, number, boolean with defaults), a `{{ }}` slot in a value becomes a `SlotValue` whose parts carry the origin of the slot text, and a block headed by a module's call name is a `UseNode` with typed params (unknown param with nearest names, missing param without default, slot in a param refused). `Style`, `Import` in a module are refused until M2b.
|
|
30
|
+
- M2a model: `model/store.py` (thread-safe `ValueStore`: queued sends, one wake per turn, latest value per use and key, plain-data check), `model/expand.py` (a module call becomes the module's layout with per-use node ids), `model/live.py` (slots compiled with their origin, evaluated in the use's scope, links re-evaluated only when a read path is touched; an error keeps the last value and logs `file:line:column`).
|
|
31
|
+
- M2a modules: `from tess_shell import Module, action`; `modules/host.py` imports `<Name>_Module.py`, finds exactly one `Module` class, sets `ctx` before `start()`, validates each use, and isolates failures (missing `.py`, no or two classes, import error, `start()` raising: a finding naming the files and the line; other modules keep running); `modules/ticks.py` is the shared wall-clock source (one thread, woken only at a subscribed second or minute, no drift, a clock moved back is handled).
|
|
32
|
+
- M2a Clock: `shipped/Clock/Clock_Module.tdl` and `.py` (`format`, `hour_cycle`, `timezone`; `--:--` fallback); a user module of the same name overrides a shipped one. `run` steps 10 to 12 expand the module calls, load and start the modules, build the Bars from their first values and update only the changed node properties, one `Window.apply` per Bar per turn.
|
|
33
|
+
- M2a files: a module call may sit anywhere in a Bar or a module's layout, `Import: <path>_Module.tdl` (one file or a list, relative to the importing file) embeds a module at that position, modules are read in two passes so the order of files does not matter, and a circle of calls or imports is an error naming the chain (`import-cycle`). A module's `UID` is written into its metadata (and the shell file's) on first registration, after a backup under `$XDG_STATE_HOME/tesserae-shell/backups`, and kept in the registry as `file:<path>`.
|
|
34
|
+
- M2a measurement: idle with the Clock shown is about 2 wake-ups per second between ticks (tre's own thread); the tick adds a burst from tre's software renderer (`tests/perf/idle-results-clock.md`).
|
|
35
|
+
- M2b binder: `View.rebuild(nodes)` compares a new typed tree with what is built by key (the `Name`, else block word and position), keeps matching nodes, sends the changed properties in one `Window.apply`, builds new subtrees with `Window.build`, reorders with `set_children` and frees removed nodes; a changed block word or a property the new tree no longer sets is a replacement; a bad value changes nothing.
|
|
36
|
+
- M2b `If`/`Else` and `For` in a module's layout (B1): the schema types them, `model/live.py` evaluates the condition and the repeater with TEL (`select_tracked`, `compile_repeater_parts`, `reconcile_tracked`, `RepeaterState` kept between resolves, entry names `<name>_0001` never reused), and a use with structure is resolved again and handed to `View.rebuild` when anything its slots, conditions or headers read changes; a key nothing reads causes no rebuild. A module call or `Import` inside `If`/`For`, and `If`/`For` outside a module, are not built yet.
|
|
37
|
+
- M2b module style files (B4): `Style: <Name>_Style.tdl` (relative to the module file) or an inline `Style { }` in a module, with `Classes { name { Kind: Text, ... } }` and per-type defaults; `Class: name` (one or a list) on a block; priority is the file's type default, then its classes, then the block's inline `Style`, then keys written on the block. A missing class, a class of another block type, a missing or bad style file are errors at their own file and line. The shipped Clock now takes its look from `Clock_Style.tdl`.
|
|
38
|
+
- M2b icon sets (B5): `SVG { Icon: "mdi:account" }` (or a bare name) is resolved from Iconify-style JSON sets in the config `Icons` folder, then `Directories { Icons: [...] }`, read on the first lookup (the real 7,447-icon `mdi` file: 5 ms), a prefix selects a set and no prefix looks in `mdi` first; the body draws with `currentColor`, so `Color` tints it; an unknown icon is an error at its value with the nearest names; an SVG needs `Source` or `Icon`, not both. No set ships in the package (the licence texts travel with the files).
|
|
39
|
+
- M2b file watcher (B2): `watch.py` blocks in `select` on one inotify descriptor (`inotify_simple`), listens for close-write, moved-to, moved-from and delete, ignores dot files, `~`, `.swp`, `.tmp`, `.bak` and the `schemas`, `logs`, `backups` folders, watches folders created later, and calls back once with the changed paths after 200 ms of quiet; the shell's own writes are recognised by content hash and dropped; a watch that cannot be added (the limit) turns `ok` off with a warning.
|
|
40
|
+
- M2b hot reload (B3): `reloader.py` validates a change on the watcher thread exactly as at start (settings and every shell file) and queues the apply onto the loop only if there is no error; an error changes nothing and is reported with `file:line:column`. The apply brings the modules to the new definition (`ModuleHost.sync`: a module no longer used is stopped, a new one is loaded, a changed `.py` is imported first and replaces the instance only if the import works, a changed module or style TDL file calls `reload()` and keeps the instance, uses are added and removed with `use_added`/`use_removed`), then each Bar is kept (tree rebuilt by the keyed diff, geometry set live in one `set()`) or closed or opened. `SIGHUP` reloads everything (also with `Hot_Reload: false`); `Hot_Reload` and `Reload_Debounce` are settings; a change to `Directories`, `Registry` or `Main_Shell` is reported as needing a restart and `Logging` applies at once. Module code is compiled from source on every load, never from a bytecode cache. The shell's own UID writes are recognised by content hash (one use, five seconds) and dropped. `scanner.py` holds what `check`, `run` and a reload share.
|
|
41
|
+
- M2b measurements: `tests/perf/measure_reload.py` (`reload-results.md`): a saved `Height` is applied a median of 206 ms after the save (200 ms debounce plus about 5 ms to validate, diff and set); `idle-results-clock.md` is re-measured with the watcher thread running: no change in wake-ups attributable to it.
|
|
42
|
+
- Binder: a `Text` with no `Width` is sized to its content (`fit-content`); tre laid such a text out at width 0, so two texts in a row (two Clocks) overlapped. M1's single text hid it.
|
|
43
|
+
- Reload: the log line says `reloaded with errors (...)` when a module's Python or layout failed to import and the old instance was kept.
|
|
44
|
+
- M3a: `Elevation: N%` and `Shadows { Shadow { Color, X, Y, Blur, Spread } }` on FlexBox, Box and Rectangle (and in an inline Style); the default `Max` reaches 64 px, and `binder/shadow.py` computes the transparent margin a shadow needs (measured against tre 0.6.1: blur + spread +/- offset, plus one pixel).
|
|
45
|
+
- M3a: the Settings portal reader (`services/portal.py`) on a `dbus` service thread (`services/bus.py`, dbus-fast): one `ReadAll` at start, then `SettingChanged` only; settings.tdl gains `Appearance { Theme, Stylesheets, Follow_Desktop }`.
|
|
46
|
+
- M3a: a Bar with `Elevation`, `Shadows` or `Shadow_Bleed` in its `Style` is drawn as a body inside a larger transparent surface (ADR-0010): the surface grows by the shadow margin, the exclusive zone grows by the same amount on the Edge side so the reserved space is unchanged, and a reload that changes the elevation only sets properties. Every Bar now has a body node that holds its fill.
|
|
47
|
+
- M3a themes (A1): `Themes/<Name>_Theme.tdl` with the token groups `Color`, `Type`, `Shape`, `Space`, `Elevation` and `Motion` and `Modes { Light, Dark, High_Contrast, Reduced_Motion }`; a style value `$group.name` (any key of a block or an inline `Style`) is a reference, read as the kind of the key that names it, resolved just before binding; a missing token or one of the wrong kind is an error at its line with the nearest names, in `check` as well as at run time. The shell ships a `Default` theme (dark base, light and high-contrast modes, `Accent: DESKTOP` follows the desktop) and a `Default` stylesheet (text and icons take the theme's colours); `Appearance { Theme: <Name>, Stylesheets: [<Name>, ...] }` in settings.tdl names the ones in use, and a reload applies a change.
|
|
48
|
+
- M3a stylesheets (A2): `Stylesheets/<Name>_Stylesheet.tdl` with `Rule { Selector: "Text" | ".class" | "#name", <style keys> }`, a name beating a class beating a type and the later rule winning a tie; the block's own style and keys beat a rule, and a key the block does not take is skipped. Selectors with a `:state` or `::part` are read and skipped with a warning (the events layer, M3b).
|
|
49
|
+
- M3a portal (A3): the desktop's colour scheme, accent, contrast and reduced-motion settings pick the theme's mode (`Light`, `Dark`, `High_Contrast`, `Reduced_Motion`, durations to 0) and a change rebuilds the Bars by the keyed diff, 1 to 2 ms after the `SettingChanged` signal; `Appearance { Follow_Desktop: false }` never calls the portal; no portal gives the defaults and one warning.
|
|
50
|
+
- Tests that start the shell no longer see the real session bus (`DBUS_SESSION_BUS_ADDRESS` is dropped from the private compositor's environment); the portal tests run a private `dbus-daemon` with a fake Settings portal.
|
|
51
|
+
- M3a measurement: `tests/perf/measure_shadow.py` (`shadow-results.md`): a 100 % elevation on the example Bar grows its surface from 32 to 97 px and the process by 0.8 MiB.
|
|
52
|
+
- M3b events (B1, first part): `On_Click: action_name` or `On_Click { Action: name, Arg: value }` on a `FlexBox`, `Box`, `Rectangle`, `Spacer` or `SVG` in a module's layout calls the module's `@action` method on the loop thread with a `tess_shell.Event` (`name`, `use`, `args`, `time`, pointer `x`/`y`, `button`); all twelve event keys are known (an unknown one names the nearest, one a block cannot raise says so, the shell's built-in actions `Show`, `Hide`, `Toggle`, `Close`, `Call` are `not-built` until the Panel); a handler naming a method that is not an `@action` fails the module's load with the action list; a handler that raises is logged with the module, event and position and the shell keeps running; a handler over 50 ms is logged as slow; a reload replaces a handler without a second listener. A `Text` takes no listener in tre 0.6.1, so it raises nothing: put the handler on the box around it.
|
|
53
|
+
- A theme that lacks a token falls back to the `Default` theme's value for it, token by token, in the current light/dark look (D42); a token neither defines is still an error.
|
|
54
|
+
|
|
55
|
+
- M3b B1 (first part): `On_Click: action_name` or `On_Click { Action: name, Arg: value }` on a `Box`, `FlexBox`, `Rectangle`, `Spacer` or `SVG` in a module's layout calls the module's `@action` method on the loop thread with a `tess_shell.Event` (`name`, `use`, `args`, `time`, pointer `x`, `y`, `button`). An unknown `On_` key names the nearest of the twelve v1 events, an event a block does not raise, a built-in action (`Show`, `Hide`, `Toggle`, `Close`, `Call`; built with the Panel) and a bare name in a shell file are load errors, a handler naming a method that is not an `@action` fails the module's load with the module's actions listed, and a handler that raises is logged with its module, event and position without stopping the shell. A reload replaces a handler without a second listener. tre 0.6.1 delivers a click to a text node's parent and not to the text's own listener, so a `Text` raises nothing: put the handler on the box around it.
|
|
56
|
+
- A partial theme falls back to the `Default` theme's value for any token it lacks, token by token, in the Default's current light or dark look (maintainer, D42); a token neither defines is still an error.
|
|
57
|
+
- A rule with a module's name as its selector (`Selector: "Clock"`) styles the module's root blocks at every use; inner blocks are styled by a type, class or `#name` rule (D40).
|
|
58
|
+
- The `mdi` icon set (Material Design Icons, Pictogrammers, 7,447 icons) ships in the package as `shipped/Icons/mdi.json` with its licence text (`MDI-LICENSE.txt`) and a `NOTICE.txt`; it is searched after the user's `Icons` folders, so `SVG { Icon: "mdi:account" }` works with no setup and a user set of the same prefix wins.
|
|
59
|
+
- Fix: a Bar's shadow margin no longer takes pointer input. The surface's `input_region` is the body (ADR-0010; Panel > Input region) when there is a margin, and the whole surface when there is none; a reload that adds or removes the shadow sets it live. Before this the transparent area below a shadowed Bar blocked clicks on the windows under it (found on KWin).
|
|
60
|
+
- M3b Panel (B2, first part): `Panel { Name, Layer, Anchor, Inset, Width, Height, Keyboard, Input_Region, Visible, Hide_After, Style, Children }` in a Monitor's `Children`; an anchored Panel is placed by `Inset` (left, top, right, bottom, reordered to tre's margin), a Panel with no `Anchor` is centred by the compositor, a size of 0 stretches between two opposite anchors; a shadow grows the surface and the body keeps its place, and the input region is the body (`Input_Region: []` passes clicks through, `AUTO` is the drawn shapes). `Visible: false` opens hidden; `Hide_After: 1500` hides it after that many milliseconds and showing it again resets the timer; Escape hides a Panel that takes the keyboard. **Hiding (D44, revised 2026-11-05):** a hidden Panel has no window; showing makes a new one from the same Panel record and builds its tree again from the current values. `On_Click { Action: Show | Hide | Toggle, Target: <Panel Name> }` on a block, in a shell file or a module's layout, runs the shell action; a `Target` that names no Panel is an error with the nearest names. Not built yet: `Attach_To`/`Attach`/`Alignment`/`Gap`, `Movable` and saved positions, `Animation`, `Exclusive_Zone`, `Input_Region` rectangles, `AUTO` size, `Meld`, and the Panel's own `On_Open`, `On_Visible` and the other surface events.
|
|
61
|
+
- Tests: the live reload test no longer reads the workspace top after the Bar may already have reserved its zone (a race that made it fail one run in five).
|
|
62
|
+
|
|
63
|
+
- A Panel's `Style` takes `Corner_Radius`, `Border_Width` and `Border_Color` (applied to its body) as well as `Background`, `Elevation`, `Shadows` and `Shadow_Bleed`; a Bar's `Style` does not.
|
|
64
|
+
- Panel: hiding now closes the window and showing makes a new one (D44, revised). The first version kept a transparent surface mapped; on KWin a hidden Panel kept showing and a shown one sometimes stayed empty (the maintainer's check), and clicks felt late. A `Visible: false` Panel never has a surface until it is shown, so there is nothing to go stale and no first-show flash. At DEBUG the shell logs each pointer press and release per surface, each dispatched action, and the time of a new Panel's first frame.
|
|
65
|
+
- A handler stops its click at the first listener (as Material 3 and Tesserae UI do): a clickable inside a clickable takes its click alone.
|
|
66
|
+
- The `Default` theme is now a dark blue-grey with steel blue as its Primary (`#5B97C9`, 5.8:1 on the surface) and `#4682B4` as its Accent; its light variant uses `#2F6B9A`, its high-contrast variant black and white with a light blue (maintainer, D33). `Accent: DESKTOP` still follows the desktop's accent.
|
|
67
|
+
- `settings.tdl` `Debug { Panel_Hide: CLOSE | KEEP }` (a restart applies it): CLOSE, the default, hides a Panel by closing its window; KEEP is the first version, which keeps the surface mapped and draws nothing, kept to find why it was not repainted on KWin (D44). At DEBUG the shell logs the first frames a Panel draws after each show or hide, and the frame count 250 ms later, in both modes.
|
|
68
|
+
- The surface manager wakes tre's loop (a queued no-op) after it changes a window: a Panel shown or hidden, a reload, a theme change, a value update. tre 0.6.1 does not request a frame for a window whose node was changed during a callback of another window, so the change waited for some other wake (measured on a private sway with `tests/kwin/probe_hide.py`: a child node's fill changed from another window's timer was not drawn in 500 ms, and was drawn in 1 to 2 ms when followed by `call_soon`). This is the likely cause of the first hide route failing on KWin (the KWin log shows no frame after a show until the 250 ms debug timer).
|
|
69
|
+
- The default way to hide a Panel is now the kept surface (maintainer, 2026-11-06): the surface stays mapped and draws nothing, so a hidden Panel keeps its tree and state; `Debug { Panel_Hide: CLOSE }` selects the window-closing route. The kept surface works because the shell wakes tre's loop after each change it makes to a window; the maintainer checked it on KWin. The underlying fault is tre's and is written up as TRE-REQ-012 (`tests/kwin/TRE-REQ-012.md`, with `repro_cross_window_redraw.py` and `probe_hide.py`).
|
|
70
|
+
- `Attach_To` on a Panel (M3b): `Attach_To: <Name>`, `Attach: LEFT | RIGHT | TOP | BOTTOM`, `Gap` (pixels) and `Alignment: START | CENTER | END` (default `CENTER`) place a Panel against a Bar, another Panel (a chain) or a module used in a Bar (`Clock { Name: Clock_One }`). The module's rectangle is where tre laid out its first root block; the Panel meets the Bar's edge, not the module's, so it never covers the Bar, and it slides along the module. A target has one attached Panel; an unknown name, another Monitor, itself, a circle and `Anchor`/`Inset` beside `Attach_To` are errors at load. An attached Panel opens only while its target is open and hides with it. A body that would leave the output is moved back onto it, with a warning. A Panel on a module is placed again when it is shown, after the Bar is laid out and after a reload.
|
|
71
|
+
- A Panel now has `exclusive_zone` -1: with 0 the compositor measures its margins from the area the Bars leave free, so an `Inset` was shifted by a Bar's thickness. `Inset` is now from the output's edges, as Panel.md says.
|
|
72
|
+
- Stylesheet state selectors (M3b, D39): `Rule { Selector: "Button:hovered" }` and `":pressed"`, after a block word, `.class`, `#name` or a module name, give a block a look while the pointer is over it or a button is down on it. A state rule has the weight of its base selector (name over class over module over type, the later rule wins a tie) and is not held back by the block's own style: it is the look while the state holds. `$token` values in a state rule resolve like those in the base style. The binder listens to `pointer_enter`, `pointer_leave`, `pointer_down`, `pointer_up` and `pointer_cancel` on a block that has a state style, never stops the event (a click still reaches `On_Click` and the blocks around), applies the state's properties with the same conversion as the base, remembers the values they replace and puts them back exactly; pressed shows over hovered, and a leave ends both. A reload keeps a block in the state the pointer has it in with the new look. A `Text` takes no pointer event in tre, so a state rule that reaches one is a load-time warning (`state-never-applies`; put the rule on the box around the text). `:focused`, `:disabled` and `::part` are still read and skipped with a warning that says why: no block can take focus, none has an `Enabled` key and none has named parts yet. An unknown state name is an error naming the four states.
|
|
73
|
+
- Popup (M3b, B4): `Popup { Name, Attach, Alignment, Gap, Width, Height, Max_Width, Max_Height, Adjust, Focus, Style, Children }` as a Monitor child. A module opens one beside the use whose `@action` runs with `self.ctx.popup("Menu")` (the shell supplies the calling use; `ctx.popup(name, data=None, use=...)` outside an action takes `use`); calling the open Popup closes it, and opening another closes the first. `self.ctx.close_popup(name=None)` closes it. The built-in action `On_Click: Close` (no `Target`) closes the Popup that holds the block. A Popup is built when it opens: the content is measured in a headless window (`Width: AUTO`, `Height: AUTO`, clamped to `Max_Width` 300 and `Max_Height` 400; taller content scrolls), a tre `PopupWindow` of that size is placed beside the caller's rectangle (the use's first root block) by the spec's `Attach`/`Alignment` table, `Gap` is the distance from the anchor to the visible body whatever the shadow margin, and the content is bound into it. The shell chooses the side itself: under a bottom Bar a Popup opens upward with no setting. It does not leave that to the compositor's `flip_y` because sway and wlroots flip the anchor and the gravity but not the offset, so a gap and a margin that the offset puts right on one side land wrong on the other (measured: a 6 px `Gap` became 6 px of overlap); `Adjust` (default `[FLIP_Y, SLIDE_X]`) is still passed on. `Focus` (default true) is tre's grab: an outside click or Escape closes it, a click on one of the shell's own surfaces closes it (and is not a call to open it again), and a Popup dismissed within 150 ms of opening is logged as a probable denied grab. Not built: `Attach_To` and `Animation` on a Popup, percentages for `Width` and `Height`, submenus, `caller.data` in expressions (`data` is accepted and warned about), and `Call`.
|
|
74
|
+
- Tooltips (M3b, B5): `Tooltip: true` on a Popup (no focus, `Open_On_Enter`, `Close_On_Exit`; `Enter_Delay` 500 ms, `Exit_Delay` 200 ms, each key overridable) and, on a block or a module use, `Tooltip: <Popup Name>` or an inline `Tooltip { Children { ... } }`. The pointer must stay on the block for `Enter_Delay`; leaving it, or leaving the tooltip, closes the tooltip after `Exit_Delay`, and crossing from the block into the tooltip keeps it open. A tooltip never opens while a focused Popup is open. An inline tooltip is expanded in the scope of the use that holds it, so `{{ tooltip }}` in it reads that use's values. A `Text` takes no pointer events, so the `Tooltip` goes on the box around it. `Tooltip: Name.tdl` (a Popup in a file) is not built. A `Text` in a Popup with `AUTO` size needs `Height: AUTO` (tre lays out a text with no height at 0).
|
|
75
|
+
- Clock: `locale` (for example `de_DE`) names the month and day names, through the C library's `LC_TIME` set around each format and put back at once; a locale the system lacks (`locale -a`) is warned about once and the default names are used. `tooltip_format` (default `%A, %d %B %Y`) is the text of the tooltip the shipped layout opens on the clock (`{{ tooltip }}`); the Clock sends it with the time.
|
|
76
|
+
- A Panel's `Animation { Type: SLIDE | FADE | NONE, Duration }` (M3b): `FADE` runs the surface's opacity, `SLIDE` also moves its margin 24 px toward the edge it grows from (its target, or its anchored edge) so it never covers a neighbour; tre runs both in the engine. A Panel that is hidden while it leaves turns round from where it is; a leaving Panel takes no pointer at once; with the desktop's reduced-motion setting nothing moves. A Panel that does not name an `Animation` does not animate.
|
|
77
|
+
- A Panel's own events (M3b): `On_Open` and `On_Close` run when the request is made, `On_Visible` and `On_Hidden` when it has happened (after the animation), `On_Toggle` on a Toggle, `On_Anim_Start` and `On_Anim_End`. A shell file's handlers are the shell's actions (`Show`, `Hide`, `Toggle` with a `Target`); a handler loop is stopped after eight turns and logged.
|
|
78
|
+
- `Movable: true` on a Panel (M3b): the whole body is a drag handle (tre moves the margins of the anchored edges, clamped to the output, with no Python in the loop); when the button goes up the position is saved in `registry.json` as an `Inset` and used at the next start. A floating Movable Panel is anchored top and left and starts centred. A saved position is kept on the output. `Movable` with `Attach_To` is an error.
|
|
79
|
+
- A Panel attached to a module follows it: tre's `layout` event on the module's root block places the Panel again when the module is laid out or changes size.
|
|
80
|
+
- A Popup draws no shadow for now (KWin check, 2026-11-06): its transparent shadow margin made KWin place a popup about 30 px from the screen edge and off the caller's edge, and took clicks, because tre cannot yet say which part of a popup is its body (TRE-REQ-007). An `Elevation` or `Shadows` on a Popup is ignored with one warning. An Escape key handler now closes a focused Popup, since tre's grab did not on KWin.
|
|
81
|
+
|
|
82
|
+
- Monitor hot-plug (M3c, C4): the shell listens to tre's `output_added`, `output_removed` and `output_updated`. Each one plans the shell again for the new list of outputs (the same monitor matcher as at start, so an output another `Monitor` took stays taken) and compares it with what is running by key and output: a surface of another monitor is not touched; one on a removed output (Bars, Panels, a Popup or tooltip open on them, their timers) is closed and dropped; one on a new output is opened as at start (a Panel's `Visible` start state, a Movable Panel's saved position clamped to the output); one whose output changed size or scale gets its geometry set live with no new window, and a Popup open on it closes. The modules are brought to the new set of uses by the reload path (`use_removed` and `use_added`, a module with no use left is stopped and started again when one returns). `Index` is evaluated again on every change, so a `Monitor { Index: 1 }` follows whichever screen is second. A `Monitor { Index: default }` now always carries the output in its surfaces' paths (`Main@HDMI-A-1`), so a second screen does not rename, and recreate, the first one's; a UID registered for the old path form is registered again. `tests/kwin/prepare_m3c_hotplug.py` writes the KWin checklist setup.
|
|
83
|
+
|
|
84
|
+
- `Frame` (M3c, C1 and C2): a `Frame { }` block in a `Monitor` (one per Monitor) draws a ring around the output and reserves its sides. One painter `LayerWindow` per output (`top` layer, all four anchors, `exclusive_zone` -1, `input_region="auto"`) draws three `path` nodes with `hit_shape="painted"` (outer border band, fill band, inner border band; each an outer contour and an inner one wound the other way, so the opening is a hole that takes no clicks); one 1 px reserver per side with a thickness has that side's total (thickness, both borders and margin) as `exclusive_zone` and takes no input. Keys: `Thickness` and `Margin` (a number, four sides or named sides), `Corner_Radius` (outer, default 0) and `Inner_Radius` (one number or four corners), `Inner_Border` and `Outer_Border { Width, Color }`, `Style { Background, Opacity, Border { Width, Color } }`, `Visible`, `Layer: TOP`. A radius the ring cannot hold is reduced with a warning naming the key; a side of 0 is open (no band, border, margin or reserver). Reload sets the zones, redraws the ring and adds or closes a reserver without making the painter again; `set_look` re-reads the tokens; `Show`, `Hide` and `Toggle` with `Target: <Frame name>` close and reopen all of a Frame's windows (its zones are released and restored). `Edges`, `Children`, `Border_Tile`, `Meld`, gradients, shadows and a Panel `Attach_To` a Frame are load errors (not built). `tests/kwin/measure_frame.py` and `tests/kwin/prepare_m3c_frame.py` measure the Frame's cost and write the KWin checklist.
|
|
85
|
+
|
|
86
|
+
- Frame strips and melded Panels (M3c, C3): `Edges { Left | Top | Right | Bottom { Thickness, Padding, Children { ... } } }` and a Frame-level `Padding` (the space between a strip's children and its sides; an edge's own wins, an edge's `Thickness` replaces the Frame's for its side, both inside the side's reserved total). A strip is hosted in the Frame's painter (Option A): a box placed in the side's band (top and bottom strips own the corner squares and run the full width; left and right strips run between them and lay their children out vertically; text is not rotated). Strip content is bound like a Bar's tree and is a `Surface` whose window is the painter: module uses in it start with the shell's other uses and get live values, hot reload and hot-plug rebuild it by the keyed diff (the painter and the strip nodes are kept), a new look re-resolves its tokens, and Popups and tooltips open beside its blocks. `Panel { Meld: true, Attach_To: <Frame>, Attach, Alignment, Depth, Length, Style { Corner_Radius } }` (`Depth` is the extent away from the Frame's edge, `Length` the extent along it; `Width` and `Height` on a melded Panel, and `Depth` or `Length` on any other Panel, are errors) is drawn in the same surface: the ring and every melded body are one `path` contour with a fillet at each join that uses the Frame's `Inner_Radius` (by quadrant), the body's own two corners take its `Corner_Radius`, the inner border follows the contour, and the reserved zones do not change. A body flush with a corner replaces that corner of the opening; one larger than the opening is clamped; one that overlaps an earlier one, or sits on a side with no thickness, is not drawn (a warning). `Show`, `Hide` and `Toggle` with `Target: <Panel>` take the body out of the contour and back (no animation); `Visible: false` starts it hidden. A `Margin` on a melded Panel stops the meld (an error); `Hide_After`, `Movable`, `Keyboard`, `Input_Region`, `Animation` and `On_*` events on one, a Panel attached to a Frame without `Meld`, a melded Bar, strip expand, contract and peek stay load errors (not built). The painter's keyboard is `on_demand` when a hosted tree holds a text input and `none` otherwise (v1 has no text-input block, so it is always `none`). `tests/kwin/measure_frame.py --melds=N` measures the one-contour path; `tests/kwin/prepare_m3c_strips.py` writes the KWin check.
|
|
87
|
+
|
|
88
|
+
- Melded Panel animation, events and `Hide_After`; `Keyboard` on the Frame (M3c): a melded Panel takes `Animation { Type: SLIDE | FADE | NONE, Duration }`, `Hide_After` and the Panel's events with the same semantics as a window Panel (`SurfaceManager._fire`, the generation guard, a timer of the painter window). SLIDE: while it animates, the ring nodes are drawn without the body (at alpha 1, so they keep the ring's click shape) and an `svg` node draws the ring with the body in it: the document holds the contour at depth 0 and at full depth with the same commands (lines and cubic Béziers, a degenerate cubic where a fillet has radius 0, every coordinate linear in the depth), an `<animate attributeName="d">` between them is sampled by tre's own clock (`animate("svg_time", ...)`, eased in the engine, no Python per frame), so the body grows out of the band edge with its joins growing with it, and its content translates on the same clock; when it ends the ring nodes take the body back and the svg is hidden (the two renderings are pixel-identical at scale 1, 1.25 and 1.5, tested). FADE draws the ring without the body and the ring with it in the svg, faded in or out. The svg takes no input (`hit_testable=False`); the ring and strips are drawn above/below it by `z_index` (ring, morph svg, strip and body content), so a strip's blocks are never covered by a body that animates beneath them. A show during a hide (and the reverse) turns round from the current value; `Show`, `Hide` and `Toggle` are idempotent; reduced motion and `Type: NONE` are instant; the sliding layer is `hit_testable=False`, so the part that is out takes no click until it has arrived (the Panel's box and its content do). Animating the path's `data` is not used: tre resamples both contours by length into polylines of 96 points a subpath (corners chamfer at once, the notch smears; `tests/kwin/repro_path_morph_resample.py`). The join spikes are `tests/kwin/spike_join_{a_svg_morph,b_pieces_morph,c_scaled_pieces}.py`. `Frame { Keyboard: NONE | ON_DEMAND }` (default `NONE`, `EXCLUSIVE` is an error: it would take every key of the desktop) sets the painter's keyboard mode, live on reload with the same painter window, together with the rule that a strip holding a text input also asks for `on_demand`; the keys the painter receives are logged at DEBUG. `Movable`, `Keyboard` and `Input_Region` on a melded Panel stay load errors.
|
|
89
|
+
|
|
90
|
+
- Smoother joins and corners, and demo fixes (M3c, KWin review): the ring's fill and an opaque inner or outer border now overlap (the fill runs 1 px under the border) so the two anti-aliased edges that used to meet on one line no longer let the desktop through as a hairline along the curves (seam pixels were about 75 % opaque, now opaque; a translucent border or a translucent Frame keeps the old abutting edges); a ring with a melded body is written as cubic Béziers (kappa) instead of arcs, with a test that a fillet's midpoint lies on the arc and not on the chord. `tests/kwin/prepare_m3c_hotplug.py`'s check script ignores the shell's own `closed (stopped)` at exit and now fails a run with no unplug; the Menu_Button demo and the Dock centre their text with `Align_Items`/`Justify_Content: CENTER` and `Width`/`Height: AUTO` on the Text.
|
|
91
|
+
- Moved to tesserae-engine 0.6.3 (lock only; the range `>=0.6.0,<0.7` already allowed it). 1220 tests pass on it. 0.6.3 adds `PopupWindow(geometry=)` for TRE-REQ-007, which the shell does not use yet.
|
|
92
|
+
- Two bridges removed on tre 0.6.2/0.6.3: the binder's `Text` width default of `fit-content` (tre now measures an unsized text) and the shell's wake after every change to a window (tre #264, TRE-REQ-012). One wake stays, `SurfaceManager.start_wake`, after an animation is started from a timer: a window whose own timer starts an animation still draws nothing until the loop wakes (measured on 0.6.3: the live Frame slide test failed 8 of 8 without it). The cross-window wake is untested on KWin: see the M3 Build Log retest.
|
|
93
|
+
- Popups draw their shadow again, on tre 0.6.3's `PopupWindow(geometry=)` (TRE-REQ-007): the popup proper is handed to the compositor as the geometry, so it places, flips and slides the body, not the transparent shadow margin. The margin arithmetic in the placement is gone. `Elevation` and `Shadows` on a Popup work as on a Panel. Whether KWin also stops the margin taking clicks is for the KWin retest.
|
|
94
|
+
- Moved to tesserae-engine 0.6.4 and raised the floor to `>=0.6.4,<0.7` (the shell uses `PopupWindow(geometry=)` from 0.6.3). 0.6.4 also fixes an animation started by a window's own timer drawing no frames, so the last wake (`start_wake`) is gone: the shell no longer wakes tre's loop anywhere (the live slide tests passed 8 of 8 without it; 0 of 8 on 0.6.3). 0.6.4 brings the four TRE-REQ-013 mechanisms (transform origin and concave corners, shader animation, structure morph, parametric paths), not used yet.
|
|
95
|
+
- The melded Panel's join, five ways behind one switch (M3c, Frame > Comparing the Join Options): `settings.tdl` `Debug { Frame_Join: SMIL | CONCAVE | SHADER | STRUCTURE | PARAM }` (default `SMIL`, a restart applies it and a reload warns, as for `Panel_Hide`) chooses how the join of a melded Panel is drawn while its body slides or fades, so the maintainer can compare the five mechanisms tre 0.6.4 offers; nothing else changes and the default build is the SMIL morph as before. The Frame calls one small interface (`surfaces/join.py`: `Join.begin/play/stop/destroy`, `JoinRun`, `ghost`) and each option is its own module: `SmilJoin` (the svg morph, moved out of `frame.py` unchanged), `join_concave.py` (boxes with `corner_style="concave"`, `transform_origin`, `scale`, `translate` and `corner_radius`; a flush end gets a constant fillet that travels with the far edge), `join_shader.py` (one shader node with `sd_round_union` and a `Shader.animate`d uniform `s`, `hit_path` of the final shape, analytic edges at any `frame.scale`), `join_structure.py` (path `data` with `morph="structure"`) and `join_param.py` (the contour as a path template `{c0 + d*c1 + r*c2}` with `animate_param` on the depth `d` and the fillet radius `r`). `Ring` gained `geometry` (`BodyGeo`: a body as pieces, with its flush ends) and `morph(s, radius)` takes the fillets' fraction apart from the depth's. SMIL, STRUCTURE and PARAM draw the same frames; CONCAVE and SHADER draw over the ring (which is not ghosted) and differ by the anti-aliasing of the edge and, in CONCAVE, a thinner border along a fillet in the first frames. A body as deep as the opening cannot be drawn by CONCAVE or SHADER: the Frame says so and shows or hides it at once. Tests: `tests/test_frame_anim.py` now runs every test for each option, `tests/test_frame_join.py` (pop at the start and the end at scale 1.0 and 1.5, turn-round, the same frames as SMIL on all four sides and both flush and free ends, clicks through the contour and the notches, a body across the whole opening, nothing drawn after it), `tests/test_ring.py` (`BodyGeo`, the template equals the morph) and `tests/test_settings.py`. `tests/kwin/compare_join.py` prints the comparison on one table (PNG sheets at scale 1 and 1.5, pixel differences from SMIL, hits, code size, and with `--live` the frame cost, frames at idle and memory per option, on a private sway with `--sway` or on the compositor you are on); `tests/kwin/prepare_m3c_strips.py` writes `run-strips-join.sh OPTION`, `compare-join.sh` and a checklist section; `tests/kwin/repro_shader_animate_start.py` and `repro_concave_stroke.py` are repros of two tre limits.
|
|
96
|
+
- `Debug { Frame_Join }` now defaults to `PARAM` (the maintainer's choice after comparing the five on KWin: PARAM, SMIL, STRUCTURE, SHADER, CONCAVE); the other four stay selectable and none was removed. `DebugSettings.frame_join` and `SurfaceManager(join_mode=)` default to `PARAM`; README and the KWin generators say so. Border width on curves (maintainer: "the border looks slightly thinner while rounding"): measured, not changed. At rest the band is exactly `Inner_Border.Width` from its outer contour all the way round (max error 0.005 px, joins and corners included) and the coverage tre draws on every curve equals the exact band's to within 2 % at scales 1.0, 1.25 and 1.5 (live on a private sway as well), so the width is right; what is thinner is the look of an anti-aliased edge of a light line on a dark ground, which tre blends in sRGB (straight 2.00, curve 1.70 at scale 1 and 1.80 at 1.5 as summed linear-light brightness; `tests/kwin/repro_srgb_edge_blend.py`). `tests/test_border_width.py` pins the exact parts. While a join grows the border is up to 20 % thicker at the fillet (2.4 px at half way), never thinner; not changed.
|
|
97
|
+
|
|
98
|
+
- Peek (M3c, maintainer's request): `Peek { Size, Enter_Delay, Exit_Delay }` (defaults 24 px, 150 ms, 300 ms) as a block key of a melded Panel and of an `Edges` entry; `Name` on an `Edges` entry (the target of `Show`, `Hide` and `Toggle`, accepted with `Peek` only). A melded Panel with a Peek rests as a tab: the ring draws its body `Size` px deep (radii that do not fit the tab are reduced by the same rule as at full depth), the Panel's clip box is the tab and takes the pointer, its content is not shown. `pointer_enter` on the clip box for `Enter_Delay` ms starts the show (tab to full depth along the same contour, the fillets and the border following: the join blends the tab's contour with the body's, both with the same commands), `pointer_leave` for `Exit_Delay` ms the hide back to the tab; each waits on a timer of the painter and a quick in-out or out-in cancels it. `Show` is fully out, `Hide` and `Hide_After` back to the tab (a `Visible: false` Panel goes back to nothing), `Toggle` flips; events as for any melded Panel; `Hide_After` waits while the pointer is on the body; the body stays out while a Popup hanging off it is open; a FADE Panel peeks by the contour like SLIDE; reduced motion and `Type: NONE` switch at once. A strip with a Peek rests as a sliver of `Size` px (the side's thickness and reserved zone), its `Thickness` is the whole: the part beyond the sliver is a melded body that runs the whole side (the ring's contour, join and hit shape follow it), the children are laid out in the whole band, clipped to it and shown only while it is out, sliding with the contour, for 200 ms. The reserved zones never change with the peek. A peeking Panel needs a join that can start from a tab: PARAM, SMIL and STRUCTURE; SHADER and CONCAVE log one warning per option and a Panel that peeks is drawn with PARAM. Load errors: `Size` below 1 px, a negative delay, `Size` not below the Depth or the strip's Thickness (a percentage Depth is checked at planning), `Peek` on a Panel without `Meld`, `Peek` on a strip without Children, `Name` on a strip without `Peek`, unknown keys with the nearest names. Tests: `test_frame_peek.py`, `test_frame_peek_strip.py`, `test_frame_peek_schema.py`, `test_frame_peek_live.py`; the KWin checklist has a Peek section (variant C, `run-peek.sh`).
|
|
99
|
+
- Moved to tesserae-engine 0.6.5 (floor `>=0.6.5,<0.7`): `PopupWindow(input_region=)` (TRE-REQ-014). A shadowed Popup now gives the pointer to its body only (`input_region="geometry"`), so a click in the shadow margin reaches the window below. A margin click over the shell's own windows is still that window's, not a dismissal. Not yet looked at on KWin.
|
|
100
|
+
|
|
101
|
+
- Peek triggers and handles (M3c, Frame > Peek Triggers and Handles, decided 2026-11-07): `Peek { Trigger: HOVER | CLICK | DRAG, Handle: AUTO | NONE | DOTS | BAR | CHEVRON, Slide_From }` on melded Panels and `Edges` entries (strips take Trigger and Handle; Slide_From on a strip is an error). A list for Trigger or Handle is a not-built error; Enter_Delay and Exit_Delay with CLICK or DRAG are a load warning (they are ignored). CLICK: a click on the tab, or on the far strip of the open body where the handle is, toggles it. DRAG: pointer_down on the tab captures the pointer (`capture_pointer`), the first move past 4 px starts the join drawing the body and each pointer_move sets its progress (`Join.seek`: PARAM `set(params=)`, SMIL `svg_time`, STRUCTURE the blended path data; the content's translate and the handle with it), pointer_up finishes to the nearer end at 50 % from where it is, over a time in proportion to what is left; under 4 px is a click. SHADER and CONCAVE cannot be set at a progress, so a dragged host takes PARAM (one warning per reason). Events fire once at the release (On_Open or On_Close, On_Anim_Start, On_Anim_End, On_Visible or On_Hidden) and not at all if it ends where it began. The handle (`surfaces/handle.py`): the maintainer's three icons (made for Tesserae Shell; flattened copies ship in `shipped/Handles/`, with a NOTICE, and a test keeps their numbers equal to `handle.py`'s): `tess_shell_dots.svg` three filled 6 px circles centred 8 px apart in a 24 x 8 box (nodes), `tess_shell_bar.svg` one 22 x 4 px bar with elliptical corners 1.5 x 1.0 (a path, since a box's corner radius is circular), and the chevron (`tess_shell_chevron.svg`, flattened: a filled triangle 22 x 6.73 px, no stroke) as a path template with a parameter `p` (`animate_param`, on the slide's clock and easing; the triangle has no area at p = 0.5, so it shrinks to nothing and grows back the other way) that points away from the Frame at rest and towards it when out; in a holder that takes no input, placed at the middle of the tab and moved with the far edge by `translate`; the Frame's inner border colour (else outer, else light or dark by the fill), 60 % opaque and full while the pointer is on the tab. Not drawn (one DEBUG line) when the tab Size or the side is thinner than 8 px (dots, bar, chevron): named constants `MIN_THICKNESS`. `Slide_From` for a corner Panel (Alignment START or END) slides it out of the other edge it touches: the body is the same rectangle, its Length becomes the depth; an edge it does not touch is an error. Tests: `test_frame_handles.py` (59), schema tests in `test_frame_peek_schema.py`, a live handle test; the KWin peek demo has the four triggers and handles.
|
|
102
|
+
|
|
103
|
+
- Fix: a new desktop look (light or dark) arriving while a melded Panel or strip slides no longer leaves the join in the old colours until it ends: `set_look` settles a running slide at once (the ring then draws the body in the new look). Tests (`test_frame_peek_theme.py`) cover the Frame's fill and border, a peeking Panel's content and text, a strip's content and the handle colour across a switch from dark to light and back at the tab, out and mid-slide, and that a button in an open body runs its own action without toggling the peek. The KWin peek demo now uses theme tokens (`$color.surface`, `$color.primary`, `$color.on_surface`, ...) and `Follow_Desktop: true`, has a labelled button in the Dock, Notes and Tray bodies, and `toggle-thin.sh` (every Peek Size 7).
|
|
104
|
+
- M3 (more surfaces) is complete and accepted by the maintainer after a final KWin pass (2026-11-08). Not built, waiting on specs: handle opacity and content fade, keyboard-only access, a Bar melded to a Frame, strip expand and contract.
|
|
105
|
+
- The shell's shared converters now come from `tess_utils`, the compiled file of the private tess-utils repository (v0.1.1), carried in `src/tess_shell/_vendor/` with its type stub and `VENDORED.json` (tag, version, SHA-256 of each file). `binder/convert.py` keeps the typed `Value`/`BindError` wrapping and hands the colour forms (now also `rgb()` and `transparent`), four-sided values and their order, corner radii and enum words to it. `tools/vendor_utils.py sync` copies a release in (the latest release, a tag, or a local build; it checks each file against the release stamp and the stamp against this Python), `check` is the drift check, and `tests/test_vendor.py` runs it. The wheel now carries a compiled file, so it is a platform wheel (`cp314-cp314-linux_x86_64`; a PyPI upload needs a manylinux tag, an M7 matter).
|
|
106
|
+
|
|
107
|
+
- The Frame's ring in linear light, `settings.tdl` `Debug { Frame_Blend: SRGB | LINEAR }` (default `SRGB`: the path build, unchanged and pixel-identical; parsed and applied like `Frame_Join`: a restart applies it and a reload warns; TRE-REQ-015, the maintainer's option 2, an interim before any engine change). tre blends the anti-aliased edge of a path in sRGB, so a light 2 px border on the dark ring is thinner to the eye on a curve (summed linear light 1.69 of 2.00 at 1x, 1.79 at 1.5x). `LINEAR` replaces the three path nodes by one `box` node painted by a WGSL fill shader (`surfaces/frame_shader.py`, `Ring.contours` for the numbers) that draws the outer border, the fill and the inner border as signed distance fields and composites them in linear light, writing the encoded result; the node is below the strips, the melded Panels' content and the handles as the paths were. Melded bodies are in the same field: the opening is the outside of its rounded rectangle with each body joined by `sd_round_union` (an exact fillet at the joins, and at a corner the body runs into, the fillet between its far edge and the side, with that corner's own radius taken off), the inner border and the seal under it are offsets of it, and a body is five uniforms with `s`, how far out it is, animated by `Shader.animate` with the join's easing (`LinearJoin`, the join of the shader ring, PARAM's shape, no nodes of its own; a peek tab is the body at its shallow depth, a drag is `seek`). `hit_path` is the painted contour, set for the body at its full size while it comes out. Measured (`tests/test_frame_linear.py`, `tests/test_frame_linear_live.py`): the border's outer edge loses 0.27 px of width at 1x with paths, 0.20 at 1.25x, 0.18 at 1.5x and 0.14 at 2x, and 0.00 with the shader; over a dark desktop the border reads 1.69, 1.79, 1.79 and 1.84 of 2.00 with paths and 1.88, 1.88, 1.93 and 1.94 with the shader, because its inner edge, against the opening, is blended by the compositor in sRGB (the private sway's screenshot gives 1.685 and 1.879 at 1x, 1.791 and 1.927 at 1.5x, the same as the composite the headless tests do). At rest every pixel not within 3 px of a curve is the paths' to 3 levels at 1x and 1.5x (a ring with margins, both borders, an open side, a fill only), a body in 26 places (four sides, either end, the middle, a whole side, a 6 px sliver, radius 0 and 12, an open side, an opening with 32 px corners) has the paths' contour up to anti-aliasing, a slide, a peek's tab and a strip's sliver follow PARAM's frames, the hit shape equals the paths' over a grid, and the reserved zones are the same. A Frame the shader cannot draw keeps the paths and logs one WARNING with the reason: a translucent colour, `Opacity` below 1, `Animation: FADE`, more than 8 melded bodies (strips that peek count), a `Frame_Join` other than PARAM, a painter above 8192 physical px; a body as deep as the opening is drawn with paths while it is there. Two findings about tre 0.6.5 that shaped it: a change of a shader's uniforms alone draws no frame in a window that is still (the ring writes to its node after a `set`; `tests/test_frame_linear_live.py` fails without it), and `Shader.animate(name, v, 0)` is applied but wakes nothing (a uniform moved while another body slides uses 1 ms). Cost on the private sway (software rendering, 1920 x 1080, a 300 ms slide looping): frame total 6.1 ms against 4.9 ms, draw 2.7 ms against 0.5 ms, video memory 18.3 MiB against 10.5, 0 frames at idle in both. KWin: `tests/kwin/prepare_m3c_strips.py` writes `run-strips-linear.sh [SRGB|LINEAR]` and `run-peek-linear.sh` and a checklist section; `tests/kwin/compare_join.py --blend=LINEAR` measures the cost; `tests/kwin/spike_linear_band.py` is the probe (a 2 px band at radius 16/14: 2.00 on the straight, 1.99 on the curve with the shader, 1.69 with a path).
|
|
108
|
+
- M4a `Enabled` and `:disabled` (A1): `Enabled: true|false` (a value or a slot) on every block is tre's `disabled` (inverted) and, because tre does not stop input, the shell's `Wire` blocks the pointer itself: a blocked block (disabled, or under a disabled one) takes no `hovered` or `pressed` state, runs none of its enter, leave, down or up hooks (so no tooltip opens over it) and swallows the click (its `On_Click` does not run and no block above or behind hears it; `pointer_down` and `pointer_up` still bubble, so a Popup is dismissed by a press on it). `:disabled` is a built style state, folded by the precedence of `:hovered` and `:pressed` and shown over both; a `Text` takes `:disabled` (and no pointer state). Disabling a hovered or pressed block clears the state and gives back the stored pre-state values, runs the `leave` and `up` hooks, and enabling restores the base; a reload or an `update` that flips or drops `Enabled` sets the node in place (every node is built with `disabled: false` for that). The D53 warning for `:disabled` is gone; `:focused` still warns (M6).
|
|
109
|
+
- M4a `::part` (A1): a block in a module's layout may declare `Part: track` (unique in the module; an error outside a module); a stylesheet rule `Module::part` (and `Module::part:hovered`, `:pressed`, `:disabled`) styles that block at every use of the module, folded with the other rules (specificity: a part rule 20, above a class (10) and a module root (5) and below a `#name` (100)); the module's parts are in `ModuleDef.parts`, `check_parts` reports a rule naming an undeclared part with the nearest names, and a part takes the module's `:disabled` when the module's root is disabled. `.class::part` and `#name::part` are skipped with a warning (not built); a part of something that is not a module is an error. The D53 warning for `::part` is gone.
|
|
110
|
+
- M4a `Call` (A3): `On_Click { Action: Call, Target: "Module.action", Key: value }` runs the module's `@action` with the other keys in `event.args`; `Target` must name a module the shell has (a load error with the nearest names otherwise), and the module host checks after loading that the module is loaded and has the action (`check_calls`, at start and on reload); an `@action` named like a built-in action (`Show`, `Hide`, `Toggle`, `Close`, `Call`) fails the module's load. An argument may be a `{{ }}` slot (`model/args.py`): compiled at load, evaluated when the event fires in a scope of `event`, the use's params and values, the `For` entries around the block and, in a Popup, `caller`; a slot that fails is logged at its position and the action does not run. `Data { }` on an action is a clear not-built error (M4c).
|
|
111
|
+
- M4a `caller.data` (A3): the Popup's content reads `caller` (`module`, `use.{key,uid,name,monitor,params}`, `rect`, `data`, `source`): a slot in a shell-file block of a Popup or an inline tooltip is allowed (elsewhere outside a module it is still an error), a module used in a Popup reads it in its layout (`UseScope`), `ctx.popup(name, data=...)` passes a plain copy (not plain data: an error and the Popup is not opened) and the D59 warning is gone; no data is an empty mapping and a missing key a runtime warning.
|
|
112
|
+
- M4a gallery skeleton (A4): `tests/kwin/prepare_m4a_gallery.py` writes `/tmp/tess-kwin-m4a` (`gallery/` config, `run.sh`, `check.sh`, `checklist-m4a.txt`): a Panel with Box, FlexBox, Rectangle, SVG, Text and Spacer in each state, a `Meter` module with `::track` and `::fill` parts, and a `Pad` module whose button runs `Call` with arguments and whose Popup reads `caller.data`; theme tokens only. Tests: `test_enabled.py`, `test_parts.py`, `test_call.py`, `test_caller_data.py`, `test_gallery.py` (headless) and `test_gallery_live.py` (private sway).
|
|
113
|
+
- **Text fields (M4a, A2, tesserae-engine 0.6.6):** the `TextField` block is a composition (a box that paints the background and border, a line box, a text that gives the field the height of its lines, and a tre `text_input` over it; `model/field.py` splits the block before binding). Keys: `Text` (data in: a module-set text raises no `On_Changed`), `Placeholder`, `Multiline`, `Selection: [start, end]`, `Show_Whitespace`, `Padding`, `Wrap: WORD | NONE` (multi-line, default `WORD`; `CHAR` is a not-built error), `Lines` (the height of a multi-line field, default 3), `Read_Only`, `Max_Length` (0 is no limit), `Password` (single-line), `Label`; style `Foreground`, `Font_*`, `Background`, `Border_*`, `Corner_Radius`, `Placeholder_Foreground` and `Overflow: SCROLL | ELLIPSIS | CLIP` (single-line, default `SCROLL`, so a single-line field is always one line; a stylesheet rule may set it). A key that means nothing to the form (`Wrap` on a single line, `Overflow` or `Password` on several) is a load warning and has no effect; `On_Submit` on a multi-line field too. With no look of its own a field takes the theme (raised surface, outline, text colour, body size; primary outline on hover, half opacity when disabled). Events `On_Changed` (`event.old`, `event.new`; user edits only), `On_Submit` (Enter, single-line), `On_Text_Commit` (`event.text`: typed, pasted or from an input method). A disabled field takes no pointer, no keys and gives up the focus; a press in its padding focuses it; a module that echoes the typed text back does not move the caret. A Bar or Panel that holds a field and has no keyboard mode takes `on_demand` (INFO log); `EXCLUSIVE` is only ever written.
|
|
114
|
+
- **TextInput and TextEditor (M4a):** shipped modules over `TextField` (no config needed): `TextInput { Text, Placeholder, Read_Only, Max_Length, Password, Enabled, Width }`, `TextEditor { Text, Placeholder, Read_Only, Max_Length, Wrap, Lines, Enabled, Width }`, with the part `::placeholder` (`Rule { Selector: "TextInput::placeholder", Foreground: ... }`). A module call may now carry `On_Changed`, `On_Submit` and `On_Text_Commit` (any `On_` key its root block raises): `TextInput { On_Changed { Action: Call, Target: "Search.typed" } }` in a shell file, or a bare action name in a module's layout; the handler runs in the module that holds the call. `Event` gained `old`, `new` and `text`.
|
|
115
|
+
- M4b display widgets (not committed; see /tmp/frame-review/M4B.md): the standard modules Label, TextBox, ProgressBar, Badge, Marquee_Text, Icon, Image and Expander (shipped, with the Default stylesheet's rules for their parts and their disabled look); a string `Tooltip: "text"` (a one-line tooltip Popup, also the block's accessible description); the blocks Bitmap, Circle, Ring and Path (tre paths, hit where painted) and Marquee; the common keys Position, Left/Top/Right/Bottom, Translate_X/Y, Scale, Rotation, Clip_Children, Role, Description, Live, and the accessibility state keys a module sets (Value, Value_Min, Value_Max, Value_Step, Checked, Selected, Expanded); the motion style keys `Transition`, `Duration` and `Easing` (an eased change of a listed key, also to AUTO and to a percentage; reduced motion makes every duration 0); module calls: params as `{{ }}` slots (evaluated in the caller's scope, followed live), `Children { }` content placed by a `Content { }` marker, common block keys forwarded to the module's root block, param types `path` and `icon`; module-root stylesheet keys the root does not take pass to its first inner block that does; Spacer takes no pointer unless it has an `On_Click`; decorative blocks are `A11y_Hidden` unless they have a `Label`. Image decoding: `tess_utils.image` 0.2.0 (carried into `_vendor`, Pillow lazily imported there; Pillow is a dependency of the shell and nothing here imports it), cached by path and modification time, 4096 x 4096 limit, an error image for a bad file. Gallery `tests/kwin/prepare_m4b_gallery.py`.
|
|
116
|
+
- M4c interactive widgets (not committed; see /tmp/frame-review/M4C.md): the standard modules Button, Toggle, Checkbox, Slider, List, Menu and MenuItem, and the block ScrollBox. Pointer only (focus, the focus ring and the keys are M6).
|
|
117
|
+
- **Controls (`binder/controls.py`)**: a block of a module's layout becomes a control by a key that gives tre nothing (written only in a module's layout, like the accessibility state keys): `Toggles: true` (a click flips tre's `checked` and raises `On_Changed`), `Selection_Mode: SINGLE` with `Chosen` (the block's children, or the children of the one child of a ScrollBox, are entries chosen by a click; an entry's `Key`, or the key of its `For` repeater, names it), `Slides: HORIZONTAL | VERTICAL` (a press jumps and a drag with the pointer captured moves `value` between `value_min` and `value_max` in steps of `value_step`; the parts `fill` and `handle` follow it) and `Menu_Item` with `Opens` (a menu row). Data in, edits out: the value a module sets (`checked`, `value`, `Chosen`) moves the control and raises nothing; the user's value stays until the module sets a different one, also across a rebuild of the surface. `On_Changed` carries `event.old`, `event.new` and `event.value` (`Event` gained `value`; `old` and `new` may be a bool or a number). `On_Changed` on a plain block, or on a module whose root is not a control, is an error.
|
|
118
|
+
- **Flag states**: `:checked` and `:selected` are built style states (the control sets them; a block with no control takes them from its `Checked` and `Selected`), weaker than `:hovered`, `:pressed` and `:disabled`; a part takes them from its module's root block, and a state now eases the properties the block lists in `Transition` (the Toggle's thumb slides, its track changes colour, under the theme's motion duration and at once under reduced motion). `Key` is a common block key (a `For` entry's root block gets its repeater key unless it writes one).
|
|
119
|
+
- **ScrollBox**: tre's `scroll_view` as a block (`Orientation: VERTICAL | HORIZONTAL`, `Scroll_Offset`); it scrolls its one child by the wheel (more than one child is an error), keys are not built, `Scroll_Snap` and `On_Scroll` are not built.
|
|
120
|
+
- **Button** (`Text`, `Icon`, `Icon_Position`, `Label`; parts `::icon`, `::label`; states hovered, pressed, disabled), **Toggle** and **Checkbox** (`Checked`, `Label`, `Text`; parts `::track`/`::thumb` and `::box`/`::mark`/`::label`), **Slider** (`Value`, `Min`, `Max`, `Step`, `Orientation`; parts `::track`, `::fill`, `::handle`), **List** (`Selected`, `Selection: NONE | SINGLE`; entries styled by a class, the Default stylesheet has `.list_item`), **Menu** and **MenuItem** (`Text`, `Icon`, `Shortcut_Text`, `Separator`, `Submenu`; parts `::icon`, `::label`, `::shortcut`, `::arrow`, `::rule`). Roles, names and state are set as the Accessibility note says. The look is in the Default stylesheet (theme tokens only).
|
|
121
|
+
- **Show, Toggle and Hide on a Popup**: `On_Click { Action: Show, Target: File_Menu, Data { Id: {{ item.id }} } }` opens the Popup of the Monitor beside the block that raised the event, with `Data` as `caller.data` (a literal or a `{{ }}` slot per key); `Toggle` closes it when it is open from there, `Hide` closes it. `Data` on any other action is an error.
|
|
122
|
+
- **Popup submenus**: a Popup opened from a block of an open Popup (a MenuItem with `Submenu: Name`, or `ctx.popup(name, use=<a use inside the Popup>)`) is its submenu: a tre `PopupWindow` whose parent is the open Popup's window, placed to the right of the row (flipped to the left by the compositor when there is no room), up to three levels. A submenu opens on a click on its row and after the pointer rests on it for 250 ms, closes when the pointer rests on another row of the same menu for 300 ms, with its parent (the shell closes it first: tre does not close a submenu with its parent), and on a click elsewhere. Only one submenu is open at a time per level and one root Popup at a time. A click on a row that opens nothing runs its action and then closes every level. Probed on a private sway first: three nested popups open, with the placement the protocol says.
|
|
123
|
+
- Gallery: `tests/kwin/prepare_m4c_gallery.py` writes `/tmp/tess-kwin-m4c-widgets` (config, `run.sh`, `check.sh`, `checklist-m4c.txt`); `tests/kwin/measure_m4c.py` measures the frames at rest (0 with the controls, a List and a Menu with two submenus on screen). Tests: `test_controls.py`, `test_menu.py`, `test_gallery_m4c.py`.
|
|
124
|
+
- `Tooltip_When_Disabled: true` (a common block key, default false; a module call forwards it like the other common keys): the block's tooltip opens although the block is disabled, after the Enter_Delay, as for an enabled one. Nothing else about the block changes: it still shows no `:hovered`, takes no click and runs none of its other hooks (the tooltip hook is registered as `always` on the wire). Without the key a disabled block opens no tooltip (M4a decision 4, unchanged). The shipped `Marquee_Text` sets it, so a disabled (or reduced-motion) Marquee cut with an ellipsis shows its whole text as a tooltip (KWin M4b row 5). Fix found on the way: the Marquee's tooltip was written `Tooltip: "{{ params.Text }}"` (a quoted string is literal text, so it would have shown `{{ params.Text }}`); it is now `Tooltip: {{ params.Text }}`.
|
|
125
|
+
- Moved to tesserae-engine 0.6.7 (floor `>=0.6.7,<0.7`; TRE-REQ-017): in a text input with a `wrap` set (every multi-line TextField sets one) Up/Down/Home/End/Page keys move by visual row and Shift extends the selection; every text input takes Ctrl+Left/Right/Backspace/Delete by word, Ctrl+Home/End to the start/end of the whole text, Insert for overwrite, a double click for a word and a triple click for the string up to the spaces. The 0.6.6 limit (arrow keys by logical line in a wrapped field) is gone. One test that sent End to reach the end of a wrapped paragraph now sends Ctrl+End. Untested on KWin and with an input method.
|
|
126
|
+
|
|
127
|
+
- Fix: with `Debug { Frame_Blend: LINEAR }` nothing peeked on KWin (hover, click and drag on a tab or a sliver did nothing). Cause: the painter's `input_region="auto"` is the union of the *drawn, hit-testable* nodes, and a shader node with no paint of its own is not one, whatever its `hit_path` says; the painter's input region was empty, so the compositor never delivered the pointer (a headless `Window.simulate` follows `hit_path` and passed, which hid it). The fill band's path node now holds the painted contour at alpha 1 under the shader (the shader is opaque over it; `hit_shape="painted"`), the way the ring nodes sit under a ghosting join; the shader node keeps `hit_path` so a click in the opening still falls through. Found and checked with a real virtual pointer on the private sway (tre's `wlr_pointer` helper in tre's environment, `tests/live_pointer.py`): `tests/test_frame_peek_live.py` runs one pointer script (HOVER with its delays and leaving, CLICK, DRAG of a tab, DRAG of a strip's sliver) under SRGB and LINEAR and fails for LINEAR without the fix; `tests/test_frame_linear.py` gained the same pointer scripts through `simulate` (hover, click on the tab and on the far strip, drag out and back, a strip's sliver by hover and by drag) with equal states under both blends. The shader build's idle and cost numbers are unchanged.
|
|
128
|
+
- `Debug { Frame_Blend }` now defaults to `LINEAR` (maintainer, 2026-11-12, after the KWin look: the border reads as wide on a curve as on a straight, on every variant). `SRGB` stays selectable. A Frame the shader cannot draw (a `Frame_Join` other than `PARAM`, a translucent colour or `Opacity` below 1, `Animation: FADE`, more than 8 bodies, a painter over 8192 px) still falls back to paths with one warning. The path-build tests now pin `blend_mode="SRGB"`; the live Frame tests run on the shader.
|
|
129
|
+
|
|
130
|
+
- Fix: with `Debug { Frame_Blend: LINEAR }` a DRAG of a peek did not follow the pointer smoothly on KWin (the content went up and the panel's contour lagged behind). Cause: `Join.seek` on every pointer move set the body's uniform with `Shader.animate(name, p, 1)`; an animation starts on the next tick and each pointer move asks again, so with moves faster than frames it never got to start (headless: after each move and a 16 ms frame the uniform stayed 0 while the drag was at 0.21 to 0.71) while the content, moved by plain node properties, followed at once. `RingShader.seek_body` now `set`s the uniforms in the call of the move and writes the node so the window draws that frame (the 1 ms `animate` stays only when another body is sliding, since `set` would stop it). `tests/test_frame_linear.py` checks the uniform equals the drag's progress and the contour's far edge equals the path build's after each frame (fails with the old seek); `tests/test_frame_peek_live.py` drags the Tray tab with a real virtual pointer at one move per 2 ms while grabbing the screen and checks contour and content stay together to 2 px under SRGB and LINEAR. On the private sway (software rendering, 60 Hz) I could not make the old code lag visibly (contour/content deviation 1.3 px old, 0.9 new): the stall shows headless; KWin's pointer rate is the difference.
|
|
131
|
+
|
|
132
|
+
- M5a A1 `services/bus.py`: one `Bus` per bus (session, system) on the one `dbus` thread: the system bus opens on first use only; a dropped connection is retried with a back-off of 1, 2, 4, 8, 16, then 30 s, puts every match rule back, reads every watched name's owner again and runs the `Bus.on_reconnect` hooks (where an owner of a bus name of the shell's own will ask for it again; the shell owns none yet). `ServiceThread.session` is now the session `Bus` (it was a coroutine returning the connection).
|
|
133
|
+
- M5a A2 `ctx.dbus` (`services/api.py`, `services/layer.py`): `session()` and `system()` give a bus with `proxy(name, path, interface)`: `get` (from a cache), `call` (default 5 s timeout; `ServiceTimeout`, `ServiceUnavailable`, `ServiceError`), `on_property_changed`, `on_signal`; `Bus.run` (a future, any thread) and `Bus.run_blocking` (raises `BlockingCallError` on the loop thread and on the `dbus` thread). At most one warning a minute per service for timeouts and for a service with no owner.
|
|
134
|
+
- M5a A3 one match rule per (sender, path, interface, member, arg0) however many modules subscribe, removed with the last subscriber (checked on the daemon with a monitor connection).
|
|
135
|
+
- M5a A4 `NameOwnerChanged` watching: a service that leaves is `UNAVAILABLE` and gives `on_service_lost(name)`; one that returns is read again (`GetAll` once, then `PropertiesChanged` only) and gives `on_service_found(name)`; both hooks reach the loop thread through `call_soon`. `Module` has the two empty hooks.
|
|
136
|
+
- M5a A5 the empty-state convention: the layer sends `available` (boolean) with `ctx.send` when the state of a module's services changes; `Children` wrap in `If {{ available }}` (test through a real `If`).
|
|
137
|
+
- M5a A6 `tests/fake_dbus.py` (a private `dbus-daemon`, fake services with settable properties, methods and signals, a name that moves away or a service that restarts, a daemon that restarts, a monitor that counts match rules); the portal tests run on it. A callback on the service thread over 50 ms logs a warning with the module name. Measured: a callback that calls `ctx.send` takes p50 7 us and p99 26 us of its own work; a property change reaches the callback in p50 0.23 ms, p99 0.82 ms.
|
|
138
|
+
- M5a A7 `tests/test_dbus_layer.py`, `test_dbus_module.py`, `test_dbus_idle.py`: with a connected layer, subscriptions and no signal traffic the `dbus` thread had 0 loop iterations, 0 kernel timeslices and 0 voluntary context switches in 60 s (`pytest -m perf tests/test_dbus_idle.py`; a 5 s run is in the suite). The Settings portal reader now runs on the layer, so it follows a restart of the bus daemon too.
|
|
139
|
+
|
|
140
|
+
- M5b B1 `shipped/Battery`: the display device of UPower on the system bus (icon, percentage, tooltip with the state and the time left, `low` and `critical` from UPower's warning level, an optional read-only `profile` from the power-profiles service). Reads once, then `PropertiesChanged`; no timer and no thread; a value is sent only when it changed; hidden when UPower is absent or `IsPresent` is false (nothing is logged). All 24 `mdi` icon names it can send are checked against the shipped set; the icon is one `SVG` line per name because a `{{ }}` slot is not built in an `icon` param and a module call is not built inside `If`. `show_percent` param.
|
|
141
|
+
- M5b B2 `shipped/Workspaces`: KWin's virtual desktops (`/VirtualDesktopManager`, session bus) as a row of buttons; the current one takes the `:selected` state (`.workspace` rules in the Default stylesheet); a click sets KWin's `current` through the layer without waiting on the loop; `label: name|number`; an empty name shows the number; `desktops` is read as `a(uss)` or `a(iss)`; refreshes on `PropertiesChanged` and the three desktop signals; hidden with no KWin.
|
|
142
|
+
- M5b layer: `Proxy.set(prop, value, signature)`; `proxy(..., optional=True)` (not counted in `available`, absence logged at debug); a service that is absent at the first read is an info line, one that leaves is a warning (once a minute); `ctx.dbus` sends `available` false at its first use, and a use added later gets the current value (`ModuleContext.send_available`).
|
|
143
|
+
- M5b B3 tests on fake services (`tests/modules_rig.py`, `test_battery.py`, `test_workspaces.py`, `test_modules_idle.py`, `test_m5b_live.py`, `test_gallery_m5b.py`): per-signal module work p50 7 us and p99 36 us (Battery), p50 15 us and p99 36 us (Workspaces); 0 loop iterations, timeslices and context switches on the `dbus` thread in 60 s with both modules shown. The private sway's environment now points `DBUS_SYSTEM_BUS_ADDRESS` at a socket that does not exist.
|
|
144
|
+
- M5b KWin kit `tests/kwin/prepare_m5b_gallery.py` (`/tmp/tess-kwin-m5b`): the Bar, `run.sh` for your real buses, `run-battery-fake.sh` with a fake UPower on a private bus (`tests/kwin/fake_upower.py`), `battery-set.sh`, `battery-upower.sh`, `check.sh` and a 21-line `checklist.txt`.
|
|
145
|
+
|
|
146
|
+
- M5b icon slot: `Icon: {{ icon }}` works in an `SVG` block and as an `icon` param of a module call (the `Icon` module, `Button`, `MenuItem`), also inside `If` and `For`: the name a module sends goes through the same icon sets as a name written in a file (`model/icons.py`, reached through `Look.icons`, which `Scan` fills, so the user's `Icons` folder and a hot reload apply). A change of the name swaps the document in the same SVG node; an unknown name shows the `image-broken-variant` icon with one warning naming it (once for each name); an empty name shows nothing; a document (`<svg ...`) is used as it is. Battery now uses it: its 24 `If {{ icon == ... }}` branches are gone and the icon takes the warning and error colour with the number and the dot.
|
|
147
|
+
- M5b hidden modules take no space: Battery and Workspaces have `Visible: {{ available and present }}` (`available and ready`) on their root, so a hidden one leaves no Spacing beside it in the Bar (tested on the nodes' rectangles). tre 0.6.7 keeps the layout space of a node that is built hidden when it also has an explicit `display` (every FlexBox): `View.reindex` sets `visible` once more on such a node, which takes it out of the layout.
|
|
148
|
+
|
|
149
|
+
- M5 module call inside `If` and `For` (a module's layout; a shell file still has neither). In an `If` (and `Else`) the call is one use that lives as long as the layout around it: only its blocks come and go, its values and state stay. In a `For` there is one use for each entry, made when the entry appears, with the key `<Module>@<outer use>.<place of the For>.<entry name>.<place of the call>` (no source line in it, so editing the file does not make the entries new uses), and ended when the entry goes; the module gets `use_added` / `use_removed` and `ctx.send(..., use=)` reaches the entry. Params written as slots (`Clock { format: {{ item.fmt }} }`), a handler with an argument slot (`On_Click { Action: pick, Id: {{ item.id }} }`) and `Children` read the entry's variables; a `Tooltip` is per entry. The keyed diff keeps the other entries' nodes and uses across a reorder, an add or a remove. A module called only inside a `For` is loaded at start. The uses survive a hot reload, also one that replaces the module's code. Not built: a `For` call in a Popup (an error naming it). The call is checked when the file is read (a handler the root cannot raise, a cycle, a missing `Content`), not on the first entry; module call cycles through `If` and `For` are now found.
|
|
150
|
+
|
|
151
|
+
- M5 module call inside a `For` in a Popup: a module in a Popup's content (`Popup { Children { TrayMenu { } } }`, where `TrayMenu`'s layout holds `For e In {{ caller.data.items }} Key {{ e.id }} { MenuItem { Text: {{ e.text }}, On_Click { Action: pick, Id: {{ e.id }} } } }`, or a list the module sent) now works: the entries' uses are made when the Popup opens (or when the list changes while it is open) and end when it closes, are replaced by a reload, or when it is replaced by another Popup. The keys follow the same scheme (parent use, `For` place, entry name, call place), so two Popups never collide, and a reopened Popup with other data has new entries. The module hears `use_added` / `use_removed`; a click on an entry runs its action with the entry's arguments. An entry's use has a root block for `ctx.popup` (a submenu or a menu beside it), in a Popup and in a Bar that has Popups (an omission of the first version: a `For` entry could not open a Popup). A send to a use that ended lately is a debug line, not an error. Not built: an `If`/`For` written directly in a Popup's own shell-file content (it still needs a module's scope).
|
|
152
|
+
- Fix: the Workspaces mark did not follow a desktop change on KWin (Ctrl+F2) and a click back to the previous desktop did nothing (maintainer's KWin check, M5b rows 4 and 5). The module now also reads `current` and the list on KWin's `currentChanged` and `countChanged` signals, and a click always sets `current` (the shell no longer compares it with its possibly stale copy). New test: a KWin that emits only `currentChanged`.
|
|
153
|
+
|
|
154
|
+
- Fix (Battery, from the maintainer's KWin check, rows 15 and 16): at `low` and `critical` the icon was not drawn (the number and the dot were), and the icon-only Battery lost its hover area and tooltip with it. A headless tree and a private sway (scale 1, 1.5, 2, dark and light, the same `battery-set.sh` order of changes) draw it, so the cause on KWin was not found; the layout built a new box with a coloured icon each time the level changed (`If`/`Else` around the box). The three looks are now three boxes that exist from the start, one shown with `Visible:`: a level change creates and removes no node and never changes an icon's colour, only which box shows and the icons' documents (the same moves as hiding and showing the module, which work on KWin). The Root keeps its size from the box that shows, so the tooltip area does not depend on the icon. Tests: no node is created or removed across normal, low, critical and back; the icon's own pixels in a snapshot have the level's colour; the icon-only Battery keeps its size at every level (the first fails on the old layout).
|
|
155
|
+
|
|
156
|
+
- Battery icon, second KWin report (rows 15 and 16: "the icon disappeared when the dot was supposed to show up, it reappeared when not"). Still not reproducible: the private sway (scale 1, 1.25, 1.5, 1.75, 2, dark and light) and headless `Window` snapshots (a dot hidden then shown on a live frame, the row hidden then shown, the dot first, wrapped icon, no `Foreground`) draw the icon in every variant. The dot is no longer a node: an icon name may end in `+dot` (`mdi:battery-10+dot`, in a file or sent by a module), which gives the same icon with a dot of the same colour to its right in ONE SVG document (half an icon's height wider; `files/icons.py`). The Battery sends `icon_alert` (the name plus `+dot`) and its low and critical boxes show it (24 by 16 instead of 16 by 16 and a `Circle`), so low and critical draw one SVG node and no path node beside it; the dot now takes the icon's colour (it was already the same). Test: the dot is in the icon's document, there is no `Alarm` node, and snapshot pixels show the level's colour on the icon and a dot beside it at low and critical and none at normal.
|
|
157
|
+
- KWin probe `tests/kwin/prepare_m5b_dotprobe.py` (writes `/tmp/tess-kwin-m5b-dot`): one Bar with twelve labelled variants of the low-battery icon (A to L: the icon alone, with a Circle, a rounded Rectangle, the dot first, a bigger dot, a wrapped icon, the normal look, no `Foreground`, the dot inside the SVG document with and without `Foreground`, a literal colour in the document, the icon in the text colour), fixed values, no module and no D-Bus; the answer is the letters that lose the icon.
|
|
158
|
+
- Fix (M5b kit): `battery-set.sh 15 discharging low` read `low` as the present/absent word, so it made the fake battery ABSENT (the Battery hid: icon and tooltip gone) instead of low; the script now takes `present|absent` and `normal|low|critical` in any order after the state and rejects other words. This, not the layout, was the maintainer's rows 15 and 16 failure on KWin.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
- M4 decisions of 2026-11-13 (M4 Brief questions 16 to 24, as recommended):
|
|
162
|
+
- Q22: a submenu with no `Data` of its own reads the `caller.data` of the Popup that opened it (a copy at open; it was empty). A second level inherits it too.
|
|
163
|
+
- Q20: `On_Text_Commit` is not raised for a commit that left the text as it was (tre raises `input` for an edit `Max_Length` refused). The wire remembers the text of the last user edit (`change`, now always listened to: a node has one listener per event) and of the last text the shell set (an `update` or a rebuild), and compares.
|
|
164
|
+
- Q24: the exception is exact and the key stays. A disabled Marquee box opens its own tooltip by itself, after the Enter_Delay, only while its text is cut with an ellipsis (`tooltip_gate`; its `leave` still runs to cancel a tooltip). `Tooltip_When_Disabled: true` (the common key of 3ecb168) stays for any other block, and `Marquee_Text` still writes it; without the key no other disabled block opens a tooltip, and a Marquee that fits has nothing to add whatever the key says. A live test with a real (virtual) pointer on the private sway (`tests/test_marquee_tooltip_live.py`) checks a cut disabled one, a disabled one that fits, an enabled scrolling one, and an enabled and a disabled block with a tooltip.
|
|
165
|
+
- Q17: `Keyboard: NONE` written on a Panel or a Frame that holds a text field is still overridden with `on_demand`, now with ONE warning at the Panel's or Frame's position naming the surface and the field (`PanelDef.keyboard_written`, `FrameDef.keyboard_written`); an unwritten key gets the info line only.
|
|
166
|
+
- Q16: `Enabled` on a module use already forwards to the module's root block, and every block under it is blocked; pinned by a test (it passed before).
|
|
167
|
+
- Q18: every image decode on the loop thread is timed (`IMAGES.timings`, the last 64) and one over 8 ms logs a debug line naming the file (`binder/images.py`, `SLOW_MS`).
|
|
168
|
+
- Q14 (maintainer, 2026-11-13: the rule as proposed): the parameters of an `@action` method after `event` are its arguments. At load, `Call` (in a shell file, a Popup, a module layout, a `For` entry) and a bare action name in a module's layout are checked against them: an argument the method does not have is an error at the handler naming it and the nearest parameter (`unknown-argument`), and a required parameter (no default) with no argument is an error naming it (`missing-argument`); a `{{ }}` argument is checked by its name only. The declared arguments arrive as keywords, and `event.args` stays whole. An action with no parameter after `event` (every shipped one, e.g. Workspaces' `switch`) takes any names unchecked and reads `event.args`; one with `**kwargs` takes any names, gets them as keywords, and still needs its required parameters. One finding for a handler however many uses its layout has.
|
|
169
|
+
|
|
170
|
+
- M5c, the Network module (`shipped/Network/`, Network Module spec accepted 2026-11-13): `Network { show_name: false, show_vpn: true }` reads NetworkManager on the system bus, read-only, with no timer, no thread and no polling. It follows `PropertiesChanged` on the manager, on every active connection, on the primary connection's device (`Device` and `Device.Wireless`) and on that device's access point, replacing the last three when the primary connection, the device or the access point changes (one match rule per object and interface, removed with its last subscriber). Keys: `ready`, `state` (`CONNECTED`, `LIMITED`, `PORTAL`, `CONNECTING`, `DISCONNECTED`, `DISABLED`, `UNKNOWN`), `kind`, `name`, `strength`, `vpn`, `icon`, `tooltip`, `label`; a value is sent only when it changed, and `strength` only when the Wi-Fi step or the tooltip's percent in fives changes. The layout is three boxes that exist from the start (text colour, warning colour for `LIMITED` and `PORTAL`, muted for `DISCONNECTED`, `DISABLED` and `UNKNOWN`), shown with `Visible:`, each with one icon and the `vpn` icon (`Visible: {{ params.show_vpn and vpn }}`): a change of state creates and removes no node. Hidden only when NetworkManager is absent (`Visible: {{ available and ready }}`); a disconnected machine shows `network-off`. Departures from the spec and the gaps it left are in `/tmp/frame-review/M5C.md`.
|
|
171
|
+
- Tests for the Network: `tests/fake_nm.py` (a fake NetworkManager: the manager, three active connections, two devices, two access points, with the real types), `tests/test_network.py` (the derivations and 55 tests on the fake bus: wired, Wi-Fi at every step and the 5-rounding, portal, limited, State 50, connecting, VPN on and off, VPN over Wi-Fi, roaming and the old access point no longer heard, the subscriptions replaced on the daemon's monitor, disconnected stays visible, NetworkManager absent, leaving, returning and restarting, `show_name`, `show_vpn`, the icon drawn in each state's colour in a snapshot with no node made or lost, a hidden module takes no Bar space, no thread, never writes, per-signal callback time), `tests/test_network_idle.py` (5 s in the suite, 60 s marked `perf`), `tests/test_m5c_live.py` (a private sway, `grim`), `tests/test_gallery_m5c.py`.
|
|
172
|
+
- Fix (D-Bus layer, found by the Network's tests): a `PropertiesChanged` that arrived while the first `GetAll` of an interface was in flight could be lost: the signal is handled before the coroutine that awaits the reply resumes, and the reply, read before that change, replaced the cache. A module that changed two properties right after it started (the fake NetworkManager's `ActiveConnections` and `PrimaryConnection`) was left with half of the update in about one run in twelve. The cache now keeps the changes that arrive during a read and puts them on top of the reply (`_Cache._pending`); a test models the race directly.
|
|
173
|
+
- KWin kit for the Network (`tests/kwin/prepare_m5c_gallery.py` writes `/tmp/tess-kwin-m5c`): `run.sh` on the real buses (read-only), `run-fake.sh` with a private bus and a fake NetworkManager (`tests/kwin/fake_nm.py`), `network-set.sh` (the words wired, wifi, none, a strength, vpn, novpn, online, limited, portal, local, connecting, disabled, ap1, ap2, wifioff, wifion, in any order; any other word is refused and nothing changes), `network-nm.sh away|back`, `check.sh` and one `checklist.txt` (24 lines). The test runs every command line of the checklist against the real fake, in order.
|
|
174
|
+
|
|
175
|
+
- `Peek { Handle_Opacity }` and the content fade (Frame > Peek Triggers and Handles, accepted 2026-11-08). `Handle_Opacity` is a number from 0 to 1, default 0.6 (the old `REST_OPACITY`), on a Panel's or a strip's Peek: the handle's opacity at rest (`Handle.rest`; hover raises it to 1 and leaving returns to it; a reload changes it in place); outside 0 to 1 is a load error and it does not warn with CLICK or DRAG. `Content_Fade` (default true; a key of a melded Panel and of an `Edges` entry; a load warning on a Panel in a window of its own, which fades its whole surface already) makes the content's opacity the slide's progress: `_begin_motion` sets the mover's opacity to the start of the slide, `_run` animates it on the contour's clock and easing (the same `ms` and `easing` as the translate and the join, so opacity = progress at every frame, a turn round retargets both from where they are) and `_seek` writes the content's place and its opacity in one `mover.set` in the same call as `Join.seek` (the PARAM `params`, the SMIL `svg_time`, the STRUCTURE path or the `RingShader.seek_body` uniforms), under `Frame_Blend: SRGB` and `LINEAR`. It applies to a peek's tab-to-body slide, a drag, and a plain show and hide of a melded Panel; a strip's children fade with their strip; the tab still shows no content (the container is hidden at rest). Reduced motion has no fade (a drag still follows the pointer, opaque). `Type: FADE` and `Type: NONE` are as before. No new wakes or timers: idle draws no frame (a test counts them headless and on the private sway for both blends). An Expander's content fade was built with the Expander (`Content_Fade` module parameter). Tests: `test_frame_fade.py` (26), schema tests, live drag with the real pointer measuring the dot's colour against the contour under SRGB and LINEAR, live idle frames.
|
|
176
|
+
|
|
177
|
+
- M5d, the Media module (`shipped/Media/`, Media Module spec accepted 2026-11-13): `Media { show_art, show_title, show_controls, show_position, max_width }` finds the MPRIS players on the session bus by prefix (one `ListNames` and one `NameOwnerChanged` rule, no polling), follows `PropertiesChanged` and `Seeked` of each, chooses one by the spec's four rules (playing, most recently started; else the one shown before; else the paused one that changed last; stopped with no title never), counts a `plasma-browser-integration` player and a chromium or firefox player of the same browser as one (the integration one is shown), and hides with no player (`Visible: {{ available and has_player }}`, no Bar space). Previous, play or pause and next are `Button`s (disabled when the player cannot, or `CanControl` is false), the title a `Marquee_Text`, optionally an `Image` (the cover: a `file://` URL whose file exists; a web address or a missing file shows the placeholder music note, one debug line, no request) and a `Slider`. A click is a call through `bus.run` (`PlayPause`, `Next`, `Previous`; a released slider `SetPosition(trackid, microseconds)`) and the look changes only when the player's own signal says so; a failed call is logged once a minute per player. The position is the stored `Position` plus the elapsed time times `Rate` (read again on a change of status, track or rate, and on `Seeked`); a one-second `on_tick` exists only while the shown player plays and a use shows the position, so with none there is no timer and nothing wakes. No node is created or removed by a state change. Departures from the spec are in `/tmp/frame-review/M5D.md`.
|
|
178
|
+
- D-Bus layer additions for the Media (`Bus.watch_prefix(prefix, on_added, on_removed)` and `Bus.forget(name)`; `services/bus.py`, `layer.py`, `api.py`): the prefix watch is one `NameOwnerChanged` rule by `arg0namespace` and one `ListNames`, shared by every module that asks, and is listed again, with the names that went told as gone, after a reconnect; `available` is the bus being reachable (a pseudo service of the prefix), not the players, so a player that leaves (a proxy made with `optional=True`) never makes the module unavailable; `forget` lets go of a name's watch and cached properties once its player is gone. `MatchKey` takes `arg0namespace`.
|
|
179
|
+
- Fix (found with the Media): a common key written on a module call and placed on its root block (`Button { Enabled: {{ can_next }} }`, `Marquee_Text { Width: {{ params.max_width }} }`) read the callee's scope and failed with "not defined"; it now reads the scope of the module that holds the call and follows its values (`SlotValue.use`, set in `_forward`; read in `LiveTree._slot`). A key written in a shell file is unchanged. Not covered: a `For` loop variable in such a slot (the handler arguments have the same limit).
|
|
180
|
+
- Tests and kit for the Media: `tests/fake_mpris.py` (fake MPRIS players with the real types), `tests/test_media.py` (the choice rule, the duplicate rule, every acceptance bullet on fake players, pixels and nodes in the real binder, no thread, the layer forgetting a player, per-signal callback time), `tests/test_dbus_prefix.py`, `tests/test_call_common_slots.py`, `tests/test_media_idle.py` (5 s in the suite, 60 s marked `perf`: zero `dbus` wake-ups in every scenario, and the time source wakes once a second only while playing with the position shown), `tests/test_media_live.py` (a private sway, a real pointer click on play and next), and the KWin kit `tests/kwin/prepare_m5d_gallery.py` (writes `/tmp/tess-kwin-m5d`: `run.sh` on the real session bus, `run-fake.sh` with fake players that behave like real ones, `media-set.sh` taking its words in any order and refusing any other, `check.sh`, one `checklist.txt` of 22 lines) with `tests/test_gallery_m5d.py` running every command line of the checklist against the real fake with the real `busctl`.
|
|
181
|
+
- T-023 `On_Released` on the Slider (D-018): `Slider { On_Released { Action: ... } }` (a call in a shell file or a module's layout; a bare action name in a module's layout) is raised once per press on the slider, when the press ends: the button goes up on the slider, or anywhere else because the pointer is captured, or the press is taken for a window move (`pointer_cancel`), or the slider is disabled while it is held. `event.value` (and `event.new`) is the final value, `event.old` the value when the press began; a click on the track gives one `On_Changed` and then one `On_Released`, a press that moves nothing only `On_Released` (same two values). `On_Changed` is raised as before, for each new value while the pointer moves. A keyboard step is M6 (the Slider has no key handling yet). The event key is in `EVENT_KEYS` and `CONTROL_EVENTS` (only a block with `Slides` raises it; on a Toggle, Checkbox, List, a plain block or a shell file's block it is the usual "does not raise On_Released" error); the Call argument check (`unknown-argument`, `missing-argument`) applies to its handler as to any. Media: the seek is now sent from `On_Released { Action: release, position: {{ event.value }} }` (it was `On_Click`, which a drag released outside the slider does not raise); a press that moved nothing seeks nowhere, the position display waits while the handle is held, as before. Tests: `test_controls.py` (7 new), `test_media.py` (a release outside, a touch), `test_slider_released_live.py` (a real virtual pointer on a private sway).
|
|
182
|
+
- Test safety (T-025): a bare `pytest` run with `WAYLAND_DISPLAY` or `DISPLAY` set is refused (exit 3) unless `TESS_SHELL_TESTS_REAL_SESSION=1`; the pytest process loses the real session bus, points the system bus at a missing socket and gets private runtime, state and config directories; the private sway process no longer inherits the real session bus address. Run the suite as `env -u WAYLAND_DISPLAY -u DISPLAY uv run pytest`.
|
|
183
|
+
|
|
184
|
+
- T-014 schema export: `tesserae-shell schema --json [--out FILE]` prints, or writes, the shell's schema as JSON for the tess-ui configuration application (`schema_version` 1.0). `tess_shell.schema.export` (`schema_json()`, `schema_dict()`) walks the tables the loader uses (`schema/blocks.py`, the surface key tables of `schema/shell.py`, `config/settings.py`, the shipped `Default` theme and stylesheet, the defaults of the typed model), so the export lists every key the loader accepts and no other, with its kind (and the range, units, choices, theme tokens it takes), whether a `{{ }}` slot is read, its default (null where the model states none), whether it is built, a form group and a line of documentation. `roots` holds the shell file's surfaces (Shell, Monitor, Bar, Panel, Popup, Tooltip, Frame, Edges, Edge, Border, Animation, Peek, Shadow, ...) and the other files' blocks (Stylesheet, Rule, Style, Class, Module, Param), `blocks` the 13 block types, `settings` the `settings.tdl` keys, plus `events`, `actions`, `enums` and `tokens` (the Default theme, with the modes that override each). The authored text (a doc line for every key, groups, units, examples) is `schema/docs.py`; `tests/test_schema_export.py` puts every exported key, enum choice, default and example into files and asks the loader, probes a pool of words for keys the export lacks, checks that no doc line is stale and that two runs, even with another hash seed, give the same bytes. `tests/test_imports.py` gives `schema.export` its own import rule.
|
|
185
|
+
- T-026 schema 1.1 (`schema_version` "1.1", additive): (1) a key's `default` is read from tre: `binder/defaults.py` builds each block bare on a headless window through the binder and reads every tre property a key sets with `node.get`, written as the key's own text (`true`, `RELATIVE`, `AUTO`, `"#00000000"`, `[l, t, r, b]`); a few shell-owned keys with no tre property (`Easing`, `Toggles`, `Selection_Mode`, `Slides`, `Menu_Item`) have an authored default in `schema/docs.py` with its reason, and `Duration` is `binder.motion.DEFAULT_DURATION`; each is pinned by a test, and writing a default changes no tre property. (2) Ranges: `schema/ranges.py` is the one table that `schema/values.py` (`coerce`, `from_python` for slots, `named_sides`) judges by and the export reports as `min`/`max`: `Opacity` and `Handle_Opacity` 0 to 1, `Scale`, `Font_Size`, `Line_Height`, `Aspect_Ratio`, `Speed` and `Diameter` above 0, `Flex_Grow`, `Flex_Shrink`, `Border_Width`, `Hide_After`, Popup delays, lengths, bounds, sides and radii 0 or more (a Panel's `Inset` may be negative), `Font_Weight` 1 to 1000; an out-of-range value is a finding at its line naming the range (the loader's old hard-coded range checks and `_frame_sides` are gone). (3) Every key has `preferred_tokens` (`docs.PREFERRED_TOKENS`, a colour key gets `color`), next to the mechanical `tokens`. (5) `modules`: every shipped module with its params (type, kind, default, doc, required), the events a call may handle, the common keys it may write and its `@action`s (read from the module's source, not imported). (7) The tables the export reads are public (`BAR_KEYS`, `BAR_CHOICES`, `PEEK_WORDS`, `IMAGE_SUFFIXES`, `token_kind`, the `config.settings` key tuples); the private names are gone.
|
|
186
|
+
- T-018 audio access spike (`tests/spikes/audio/`, not collected by pytest, run only under a `bwrap` sandbox against a private PipeWire stack): four routes measured (native PulseAudio protocol client, pulsectl-asyncio, `pactl subscribe`, `pw-dump --monitor`); recommendation and numbers in the M5 Build Log.
|
|
187
|
+
- T-029 pointer events: `On_Secondary_Click` (the secondary button, `event.button == "secondary"`, never runs an `On_Click`) and `On_Scroll` (one wheel step, `event.delta` +1 scrolling down and -1 scrolling up; a sideways wheel raises nothing) on every block that takes `On_Click`, in a module's layout and in a shell file, with the same swallow rule as the click (a disabled block raises neither and hides the event from blocks above it; the nearest block with the handler takes the event alone, a block without one lets a wheel bubble to the ancestor that has it). `Event.delta` is new in `tess_shell.module`; `event.delta` and `event.button` read in a handler argument slot like `event.value`. The schema export lists both keys with an authored doc line.
|
|
188
|
+
- T-029 sound client (`services/pulse_native.py`): the shell's own client of the PulseAudio native protocol (what `pipewire-pulse` and PulseAudio speak), standard library only: AUTH with the protocol version negotiated from the reply (13 to 35; fields read per version, port types from 34), `SET_CLIENT_NAME`, `SUBSCRIBE` and its events, server, sink and source info in one round trip, set sink volume and mute, set source mute, set the default sink; `scaled` sets a mean volume and keeps the balance between channels; `default_socket` and `read_cookie` take the environment as an argument (a zero cookie first, the user's cookie file when it is refused). Decisions D-027 and D-028, ADR-0021.
|
|
189
|
+
- T-029 sound service and `ctx.audio` (`services/audio.py`, `services/api.py`): one `AudioService` on the `dbus` service thread's loop owns the connection and hands each module an `AudioState` (default output volume, mute, name and kind, default input mute, the outputs) when it differs from the last; setters (`set_volume`, `step`, `set_muted`, `toggle_mute`, `toggle_mic`, `set_output`) return futures at once, the volume clamps to 0 to 100, steps that follow each other before the server's event add up, a failure is logged once a minute per module. No timer: with no server it watches the socket's folder with inotify (the nearest folder that exists) and retries on a create; while connected it holds no watch. Idle: 0 timeslices and 0 voluntary switches over 5 s and over 60 s.
|
|
190
|
+
- T-029 Audio module (`shipped/Audio`, `shipped/Audio_Outputs`): `Audio { show_percent, show_slider, show_mic, step }` shows the default output (icon by kind, level and mute; muted colour), a click mutes, scroll steps the volume by `step`, a secondary click opens the Popup `Audio_Outputs` (a module with a Menu of the outputs and a dot on the default one), the slider writes at most 20 times a second while dragged and the final value on release, a crossed-microphone mark while the input is muted; hidden (no space) when there is no sound server and back when it starts or restarts.
|
|
191
|
+
- T-029 tests: `tests/fake_pulse.py` (an in-process PulseAudio server on a unix socket under a temporary path, per-version encoders, events, restart and stale-socket simulation) with `test_pulse_native.py`, `test_audio_service.py` (kind lookup, reconnect, cookie, idle) and `test_audio_module.py`; the conftest removes `PULSE_*` and `PIPEWIRE_*` from the environment, and `default_socket` names a socket that does not exist in every test. Tests against a private PipeWire stack (`tests/test_audio_sandbox.py`, marker `audio_sandbox`, deselected by default) run only through `python -m tests.spikes.audio.run_sandbox_tests`, which re-executes under `bwrap`.
|
|
192
|
+
- T-029 KWin kit `tests/kwin/prepare_m5e_gallery.py` (`/tmp/tess-kwin-m5e`): `run.sh` on the real sound server (the checklist marks every line that changes the real volume, mute, default output or microphone mute and asks to note and restore them), `run-fake.sh` on a private fake server, `audio-set.sh` (words in any order, unknown words refused), `audio-server.sh away|back`, one `checklist.txt`; `tests/test_gallery_m5e.py` runs every command line against the fake.
|
|
193
|
+
- `check --json` and `version --json` now carry `config_dir`, the folder the answer is about (`--config-dir`, else the XDG one). Recorded outputs of `schema --json` (1.1), `check --json` (a clean folder and one with a finding) and `version --json` are in `tests/fixtures/cli/` for tools that never run the shell (the configuration application); `tests/test_cli_fixtures.py` fails when one no longer equals what the command prints (rewrite with `python -m tests.cli_fixtures`). `status --json` has no fixture: `status` is not built yet.
|
|
194
|
+
- Test: a module that echoes the typed text back (`Text: {{ value }}`) does not make typing after Home jump to the end (tess-ui found that tre's `set(text=<what the input holds>)` moves the caret). The binder already skipped an equal set on both paths (the property update and the keyed rebuild); `tests/test_textfield.py` now pins both with Home, two typed characters and an echo after each, and fails if either guard is removed. The shell does not rely on tre making an identical set a no-op.
|
|
195
|
+
|
|
196
|
+
- T-030 `Bus.own_name(name)` / `release_name` (`services/bus.py`): the shell owns a well-known name (`DO_NOT_QUEUE`), asks again after a reconnect through `Bus.on_reconnect`, one warning if it was taken meanwhile. For the shell's own services only: `ctx.dbus` has no way to take a name (tested). A call argument of type `v` is written `("s", "")` so a module needs no `dbus_fast`.
|
|
197
|
+
- T-030 `services/icons.py` and `ctx.icons` (`theme_icon(name, size, theme_path)`, `pixmap_icon`, `png_icon`): the freedesktop icon theme lookup (`index.theme`, `Inherits`, `hicolor`, `/usr/share/pixmaps`, an item's `IconThemePath`; SVG preferred, else the png nearest above the size; the user's theme from `kdeglobals`), each theme chain indexed once, a lookup after that reads no folder (cache by name, size, theme path and the file's modification time), ARGB32 pixmaps to RGBA. The result is an SVG document or `pixels:<digest>`, decoded pixels the binder registers (`ImageCache.register`) and a Bitmap's `Source` and an `Icon:` slot accept; never a path. Shared later with Tasks and the launcher.
|
|
198
|
+
- T-030 `services/tray.py` and `ctx.tray.on_host`: the shell is a second StatusNotifier host: it owns `org.kde.StatusNotifierHost-<pid>` (`-<pid>-1`, `-<pid>-2` when taken, then one error), registers it with the watcher and again when the watcher or the bus comes back, never starts a watcher (one warning with none), gives the name up with its last subscriber.
|
|
199
|
+
- T-030 `Tray` module (`shipped/Tray`, `Tray_Item`, `Tray_Menu`): one icon per item in the order of registration, `Passive` hidden unless `show_passive`, the attention icon and the `:selected` look for `NeedsAttention`, tooltip, `Activate`, `SecondaryActivate` (middle click), `Scroll` (wheel, Qt units), `ContextMenu` when there is no menu, an `ItemIsMenu` click opens the menu, `New*` signals followed by a fresh read, an item that loses its name is removed, empty and hidden with no watcher; the item's `com.canonical.dbusmenu` is drawn by the shell in the Popups `Tray_Menu`, `Tray_Menu_2` and `Tray_Menu_3` (three levels, labels without mnemonics, separators, check and radio marks, disabled, shortcuts, icons; `AboutToShow` and `GetLayout` before the first draw; `Event(id, "clicked")` once and the menu closes; `LayoutUpdated` rebuilds the open menu; an item that leaves closes it). Icon files are read on a worker thread.
|
|
200
|
+
- T-030 `On_Middle_Click` (a middle press and release on the block; `event.button == "middle"` and the pointer's position); `ctx.call_soon(fn)` and `ctx.is_popup_open(name)` for a module whose work ends on another thread; `MenuItem` has a param `Id` (a text a submenu reads as `caller.use.params.Id`).
|
|
201
|
+
- T-030 fixes found with the menu: a key written on a module call inside a `For` (`MenuItem { Enabled: {{ e.enabled }} }`) now reads the entry's variables; a submenu opened from a row of a `For` has that row's use as `caller.use` (it was the `for` prefix of the block id).
|
|
202
|
+
- T-030 tests: `fake_sni.py` (a fake watcher, items and dbusmenu on a private bus), `icon_theme.py` (a temporary theme folder), `test_icon_service.py`, `test_dbus_own_name.py`, `test_tray_host.py`, `test_tray_module.py`, `test_tray_idle.py` (5 s in the suite, 60 s under `perf`: no wake-up), `test_tray_live.py` (private sway and its virtual pointer), `test_icon_refs.py`. KWin kit `tests/kwin/prepare_m5f_gallery.py` (`/tmp/tess-kwin-m5f`): `run.sh` on the real session bus (the checklist marks every line that calls a real application or runs a real menu entry), `run-fake.sh` on a private bus with `tests/kwin/fake_tray.py`, `tray-set.sh` (words in any order, unknown words refused), one `checklist.txt`; `tests/test_gallery_m5f.py` runs every command line against the fakes.
|
|
203
|
+
- Fix: the audio service no longer lets an EARLIER step's echo from the sound server clear the written volume (a fast run of steps could start the next step from a stale value and end off); the written volume stays the base until the server shows it or one second passes (an intermittent failure of `test_steps_that_come_before_the_servers_event_add_up` in full runs).
|
|
204
|
+
|
|
205
|
+
- T-028 range checks: (1) a value that arrives through a theme token is judged by the range of the key it fills: `model/look._ref_value` passes the key to `coerce`, so `Opacity: $space.step_1` (2) or `Font_Weight: $x` outside 1 to 1000 is a `bad-token` finding at the use site, `Opacity: $space.step_1 cannot be used here: expected a number, from 0 to 1, found 2`, with `defined at <theme file:line>` as its hint, in `check` and when the look resolves (the key keeps its default); the Light/High_Contrast overrides are the same tokens, so they go through it too, and the theme reader already judges a token written under a key of its own (`Font_Weight`). `tests/test_token_ranges.py` also resolves every token that the shipped stylesheets, styles and modules use, in every mode of the Default theme: none fails. (2) The Peek (`Size` 1 or more; delays; `Handle_Opacity` 0 to 1), an Edge's `Thickness`, a Frame border's `Width` and a Shadow's `Blur` are checked by `schema/ranges.py` too (keys listed as `Peek.Size`, `Edge.Thickness`, `Border.Width`, `Shadow.Blur`, `ranges.scoped`), with its wording (`Size: expected a number, 1 or more, found 0`); the in-place checks and the export-only kinds `peek_size`, `non_negative`, `non_negative_ms` are gone. A Panel's `Inset` stays negative-capable. `tests/fixtures/cli/schema.json` regenerated.
|
|
206
|
+
- Expander `On_Changed` (M4 owed item): a call of the Expander may write `On_Changed`; it is raised when an opening or a closing has finished (`event.value` is true when open; `event.old`, `event.new`), also when the module's own value changed `Expanded`; with nothing to ease (reduced motion, `Duration: 0`) it is raised at once; an opening reversed half-way raises only the finish that happens. New layout key `Reveals: OPEN | CLOSED | NONE` (module layouts only, no tre property; `binder.controls.Expand`), schema export and fixture regenerated.
|
|
207
|
+
- T-035 control interface (server): `services/control.py` exports `io.github.mindderivative.TesseraeShell` / `/io/github/mindderivative/TesseraeShell` / `...TesseraeShell1` on the `dbus` thread (methods `Reload`, `Quit`, `Status`, `Show`, `Hide`, `Toggle`, `ClosePopup`, `Call`, `SetLogLevel`; properties `State`, `Version`, `ApiVersion`; signals `Reloaded`, `ErrorReported`, `SurfaceChanged`). The name is taken with `Bus.own_name` (`DO_NOT_QUEUE`); an owned name means another shell runs and the shell exits 4; a reconnect exports and asks for the name again. A handler never touches a node: it queues the command to the loop with `call_soon` and waits five seconds (a stuck loop answers with the `Timeout` error); `Quit` also stops the engine from the service thread. `Settings { Control: false }` (new key, default true) exports nothing; the settings docs table and the schema export (1.1) list it.
|
|
208
|
+
- T-035 commands (loop side, `commands.py`): `Status` is names, kinds and flags only (never a param value or a log line); `Show`/`Hide`/`Toggle` on a Panel, a Frame or a melded Panel by `Name`, idempotent, a Bar cannot be hidden, an unknown name or a Popup is an error with the nearest names; `Call` runs only `@action` methods with the signature binding of `Call` (`ModuleHost.call_action`) and names the module in every error; `SetLogLevel` through `logging.set_level` (kept until the next `settings.tdl` logging change); `Reload` (`Reloader.prepare`/`apply_for_control`) answers after the apply with the errors; `SurfaceManager.on_surface` and `logging.finding_sinks` feed the `SurfaceChanged` and `ErrorReported` signals.
|
|
209
|
+
- T-035 client (`client.py`, jeepney added to the dependencies): `tesserae-shell reload|quit|status|show|hide|toggle|call|log-level` with `--timeout`; exit codes 0, 1, 2 (no session bus), 3 (no shell is running), 5 (timeout), 4 for a second `run`; with `--json` an error is `{"ok": false, "error": ..., "exit": N}` on standard output. A test lists the modules a `reload` imports (no `tess_re`, `loguru`, `tess_dl`, `tess_el`, `dbus_fast`) and measures `toggle` end to end.
|
|
210
|
+
- T-035 fixtures for tess-ui: `tests/fixtures/cli/status_running.json` (recorded from a real shell on a private sway and bus) and `status_not_running.json` (`{"ok": false, "error": ..., "exit": 3}`); the staleness test covers both.
|
|
211
|
+
- T-035 tests: `test_control.py` (introspection, loop handoff, timeout, name taken, reconnect, signals), `test_client.py`, `test_control_live.py` (a real shell on a private sway), `test_control_idle.py` (zero wake-ups, 5 s, 60 s under `perf`).
|
|
212
|
+
- T-039 `Event.rect`: a pointer event (`On_Click`, `On_Secondary_Click`, `On_Middle_Click`, `On_Scroll`) gives the module's action the block's `(x, y, width, height)` on the OUTPUT (`None` for a block inside a Popup); `ctx.popup(name, data, anchor=event.rect)` opens a Popup beside that rectangle, so a module can anchor to one block of its own `For` entries. The Tray menu now opens beside the clicked icon and `Activate`, `SecondaryActivate` and `ContextMenu` get the icon's centre on the output.
|
|
213
|
+
- T-039 a Popup's `Max_Height` takes a percentage of the output's height (above 0, at most 100; a pixel value works as before; `Max_Width` still refuses one); the schema export lists `percent_min`, `percent_max` and `percent_min_exclusive` for it.
|
|
214
|
+
- T-039 shipped default Popups (`schema/default_popups.py`): a Monitor that shows `Tray` gets `Tray_Menu`, `Tray_Menu_2` and `Tray_Menu_3` (`Max_Height: 60%`), one that shows `Audio` gets `Audio_Outputs`, so a shell file writes none; a Popup of the same name in the file replaces the shipped one whole. The KWin kits of Audio and Tray write no Popup, and each has `run-override.sh` to try the override.
|
|
215
|
+
- T-039 `ErrorReported` for module exceptions: an action, a control `Call`, a D-Bus callback, a service hook, a tick or a `ctx.call_soon` callback that raises is logged as before and also reaches the control interface as `ErrorReported("module-exception", file, line, "<Module>: <where> raised <Type>: <message>")` (the file and line are where it was raised), once for each distinct error a minute; `Status` lists it among the last errors.
|
|
216
|
+
- T-039 a Popup of 100 module entries opens in about 85 ms instead of about 130 (`LiveTree` compiles each slot expression once for the entries of a `For`; the host tells a module of new entry uses without comparing every use it has).
|
|
217
|
+
- T-042 the cheap measure of a menu (`surfaces/popup_measure.py`): a Popup whose content is a column of uniform rows (the Tray menu, the Audio outputs menu) is measured from ONE built row of each kind (a row's blocks and keys, not its texts) plus `Window.measure_text` for the words, instead of building every row a second time in the meter window; the numbers are EXACTLY those of the full pass (`tests/test_popup_measure.py` pins it for 1, 5 and 100 entries, separators, icons, shortcuts, submenu arrows, disabled rows, a long label, a taller-than-the-popup menu and the Audio outputs), and anything else (a hand-written Popup, a menu with spacing, a border, a fixed size, a label wider than the Popup) takes the full pass. The measure of 100 entries went from about 48 ms to 3 ms.
|
|
218
|
+
- T-042 schema 1.2 (additive): `schema --json` has a `popups` section listing the Popups the shell provides (the Popup's name, the module that brings it, its content module, placement keys, `Max_Height` as written) and which Monitors get them, derived from `schema/default_popups.py`.
|
|
219
|
+
- T-042 `ErrorReported(rule, file, line, message, module)`: the signal carries the module's name as a fifth field (empty when the error is not from a module's code); `Status` lists `module` in each last error and `status` prints it; a finding from a module's code is a `ModuleFinding` (`check --json` is unchanged).
|
|
220
|
+
- T-047 key strings (`schema/keys.py`, pure): modifiers and one key joined by `+` (`Ctrl+Alt+Shift+Meta+Key` is the written order; any case and order is read), key names `Enter Escape Tab Space Backspace Delete Insert Home End PageUp PageDown Left Right Up Down F1..F24 Plus`, a letter, a digit, the media and hardware keys by their X names without `XF86` (`AudioRaiseVolume`, `MonBrightnessUp`, ... 64 hardware and media names, 143 key names in all), and the aliases `Return Esc Del Ins PgUp PgDown` and the `XF86` forms (read, never written). `parse_chord` gives the Qt key integer (modifier bits OR-ed with the `Qt::Key` value); every number is pinned by a test to Qt's own `qnamespace.h` when it is installed. An unknown name or a malformed string is a value error with `file:line:column` naming the nearest known name.
|
|
221
|
+
- T-047 `Shortcuts { }` in `settings.tdl`: `Enter_Shortcut_Mode`, `Exit_Shortcut_Mode`, `Set_Shortcut_Mode`, `Next_Focus`, `Previous_Focus`: `"keys"` (their behaviour is built with the focus work, a press of one says "not built" at debug), `Toggle_<Name>`, `Show_<Name>`, `Hide_<Name>`: `"keys"` for a Panel, Bar or Frame (a name that matches none is a load warning naming the nearest, and the shortcut is not registered; a Popup is refused: no key opens one), and `<Any_Name> { Keys: "keys", Action: Toggle | Show | Hide | Call, ... }` with the handler form of Events and Actions (the `Call` argument check applies). `Panel { Shortcut: "keys" }` is a `Toggle_<Name>` entry and `Bar { Reveal_Key: "keys" }` (now built) a `Show_<Name>` entry; when both are written the entry wins with one warning. Two actions with the same key (any case, order or alias) are one warning naming both with `file:line:column`, the shell starts and neither gets the key. `Settings { Global_Shortcuts: false }` (default `true`) makes no call to the desktop's shortcut service at all. `tesserae-shell check` reports all of these.
|
|
222
|
+
- T-047 the shell's shortcuts with KDE's service (`services/shortcuts.py`, on the `dbus` thread): the component `tesserae-shell` ("Tesserae Shell") of `org.kde.kglobalaccel`; each action `doRegister` then `setShortcutKeys` with the active keys and flag 2, then the default keys and flag 8 (never `NoAutoloading`, so a key the user changed survives); an empty answer for a requested key means the desktop owns it: the action stays registered with no key and one warning names it; `getComponent` gives the object path, `globalShortcutPressed` is mapped to the same command as `Toggle`/`Show`/`Hide`/`Call` on the loop thread (`ShellCommands.press`; the five fixed actions go to a `fixed_actions` table other parts fill), a press while starting or stopping or for an unknown action is dropped, release and repeat are ignored; `yourShortcutsChanged` is followed; an owner change of the service registers again; at start the component's actions the shell no longer declares are unregistered; a stop makes every action inactive and keeps the component and the keys; no service is one warning and the commands still work; idle: no timer, no wake-up.
|
|
223
|
+
- T-047 hot reload applies `Shortcuts` and the surfaces' keys with no restart: a new action is registered, a changed key replaced (unregistered and registered again), a removed action unregistered, an unchanged one untouched; an invalid new block refuses the reload with its findings and the old registrations stay; `Global_Shortcuts` true to false makes every action inactive and drops the subscriptions, false to true registers as at start.
|
|
224
|
+
- T-047 schema 1.3 (additive): the `key_chord` kind (the modifiers in the written order, the key names by group and the aliases are in `kinds.key_chord`), `Shortcut` on a Panel and `Reveal_Key` on a Bar as built keys of that kind, `Shortcuts` and `Global_Shortcuts` in `settings`, and a `shortcuts` section with the entry forms.
|
|
225
|
+
- T-047 tests: a fake `org.kde.kglobalaccel` on a private bus (`tests/fake_kglobalaccel.py`), the service, plan, live (private sway), idle and reload tests, and the hand-check kit `tests/kwin/prepare_m6c_shortcuts.py` (`/tmp/tess-kwin-m6c`: backup first, the only place the real service is touched).
|
|
226
|
+
- T-053 the fake `org.kde.kglobalaccel` has the signatures the vault session read from the real service (read-only introspection): `unregister` answers `b`, `allShortcutInfos` is `a(ssssssaiai)`, and `setShortcut` (older, `as ai u -> ai`) and `globalShortcutAvailable` (`(ai) s -> b`) exist; `isGlobalShortcutAvailable` takes one key and the component name. dbus-fast finds a method by name and signature, so a call with another signature finds no method (`tests/test_fake_kglobalaccel_signatures.py` calls every member with a right and a deliberately wrong signature). The client already sent the real signatures; nothing in it changed for them. The fake exports one `allShortcutInfos` (dbus-fast cannot export two signatures of one name; the real one also takes an `s`).
|
|
227
|
+
- T-053 an empty answer of `setShortcutKeys` is no longer reported as taken at once: the shell asks `isGlobalShortcutAvailable(<the key>, "tesserae-shell")` once for each such key. A free key is the user's own clearing in System Settings (which autoloads as an empty answer): a debug line, no warning, the action stays registered with no key. A key that is not free is the existing warning. A call that fails gives the warning with "could not be checked" appended.
|
|
228
|
+
- T-053 a `Call` shortcut loads its module (an instance with no use) when no surface uses it, started once, shared with a surface that uses it, and stopped at a reload when neither a surface nor a shortcut names it (`shortcuts.shortcut_modules`, planned in `app.py` and the reloader like the modules of a `For`). A missing action or a bad argument is still a load finding.
|
|
229
|
+
- M6a focus (T-041): `Focusable` and `Tab_Index` (0 to 2147483647, a load error with `file:line:column` outside it) on blocks, and `Tab_Index` on Bar, Panel, Frame and strips; a block with an interactive role (`BUTTON`, `CHECKBOX`, `RADIO`, `SWITCH`, `SLIDER`, `LINK`, `TAB`, and `LIST` and `MENU`, one stop each: their entries are reached by the arrow keys of M6b), `Toggles` or `Slides` and a TextField's text input is focusable by default, a disabled block is not. tre walks Tab and Shift+Tab; the binder ranks the `Tab_Index` blocks (`View.reindex`, held in memory, remade at each load and reload). Every shipped widget is one Tab stop, however many nodes it is made of (tests/test_focus_shell.py, tests/test_focus_modules.py: Button, Toggle, Checkbox, Slider, TextInput, TextEditor, List, Menu, Tray_Item, the Workspaces, Media and Audio controls); Label, TextBox, Badge, Icon, ProgressBar and Marquee_Text take none.
|
|
230
|
+
- The focus ring: the style state `:focused` is built (keyboard focus only; a click focuses with no ring). A focusable block that takes `Shadows` gets, under any `:focused` rule, a ring of one non-blurred shadow in the theme's `color.primary`, `space.step_1` thick, so it does not shift the layout. A `ScrollBox` now takes `Shadows` and `Elevation` (a List is one, and shows the ring). A Text, SVG, Spacer, Bitmap, shape or Marquee takes no `Shadows` and so shows no ring: put `Focusable` on a Box, FlexBox or Rectangle around it. The shell's DEBUG log says `focus: <block id> '<label>' (ring | no ring)` at each focus change.
|
|
231
|
+
- The content of a closed Expander is hidden (`visible` false) when the closing has finished, and shown again the moment it opens, so a Button or a text field in it is no Tab stop while it is closed; focus that was inside when the content hid goes to the Expander's own block (no key reaches a hidden field; the next Tab starts at the first stop). `View.tab_stops()` leaves out a block under a hidden block.
|
|
232
|
+
- A reload keeps focus on a block that is still there (the keyed diff keeps its tre node, also when a `For` list reorders) and Tab then follows the new order; when the focused block is gone nothing is focused and the next Tab goes to the first stop (Shift+Tab to the last).
|
|
233
|
+
- A reload that changes a Bar's or Panel's `Keyboard`, or adds or drops a TextField in it, now reaches the live window (it was only read when the window was made); a hidden Panel keeps `none` until it is shown.
|
|
234
|
+
- A Popup opened from a focused block returns focus to it when it closes (Escape, outside click, selection, compositor dismissal); one opened from the keyboard also focuses its first Tab stop.
|
|
235
|
+
- A Bar takes `Keyboard: NONE | ON_DEMAND` (it was not built); the surface manager keeps the shell's surface order by `Tab_Index` and moves the focus bookkeeping to the next surface when the one with focus closes. On the private sway a click gives a Bar with `Keyboard: ON_DEMAND` the keyboard, Tab and Shift+Tab then move the ring in `Tab_Index` order, and a Bar with `Keyboard: NONE` is given no key (tests/test_focus_live.py, a virtual pointer and `wtype`).
|
|
236
|
+
- Fix (T-058): `test_a_restart_of_the_service_registers_again_and_the_keys_work` failed about one run in five. After the shortcut service restarts, the shell registers its actions again and subscribes to the press signal only at the end, so a key pressed as soon as the action showed as present was lost. The shell now logs `shortcuts: registered again: N of M actions, listening for keys` when that is done, and the test waits for it.
|
|
237
|
+
- GitHub Actions CI (`.github/workflows/ci.yml`): `lint` (`ruff check`, `ruff format --check` on `src` and `tests`, `mypy`) and `test` (the full suite on `ubuntu-24.04` with a headless sway, `wtype`, `grim`, `dbus-daemon` and Mesa's software Vulkan) on every push to `main` and every pull request. `tests/test_display_widgets.py` was reformatted so the format check passes.
|
|
238
|
+
- Fix (T-045, the flaky Media tests): `Bus.watch_prefix` could lose a player. `ListNames` was answered without a player that came up a moment later, its `NameOwnerChanged` was handled before the list's own reconciliation, and the list then removed the name again, so the module never saw the player (found as 10 failures in 1200 runs of `test_a_pause_keeps_the_position_...` under 96 busy loops, where the player is started after the shell: the assertion that `status` becomes `PLAYING` timed out with the module's player table empty). A signal is newer than a list in flight: the names a signal set while the list is being read (`_Prefix.touched`) are neither added nor removed by it. Deterministic tests with a stub connection (`tests/test_dbus_prefix.py`) fail on the old code.
|
|
239
|
+
- Fix (found by the first CI run): a SIGTERM or SIGINT that arrived while the shell was starting killed it outright (exit -15, no clean stop, no `stopped` line), because the signal handler was installed at step 9 and `starting` is logged at step 4. A small `EarlyStop` handler is installed first thing in `run()`: it holds the first signal and the normal stopper acts on it as soon as it exists; a second signal still forces an exit (130), so a start that hangs can be interrupted; it is removed on every return path. An early Ctrl+C is now a clean stop like a later one (it was an immediate exit 130). `test_signal_right_after_starting_still_stops` failed 18 runs of 20 on the old code under 48 busy loops and passes 20 of 20 now.
|
|
240
|
+
- Test fix (found by CI): `test_global_shortcuts_false_makes_no_call_and_a_reload_turns_it_on_and_off` read the shell's log FILE right after the console showed `running`; the console and the file are written by two queued sinks (`enqueue=True`), so a line logged just before `running` could still be waiting for the file. `Shell.wait_log` waits for a line to reach the file; the two checks that read it while the shell ran use it, and a negative check in `test_control_live.py` reads the log after the shell has ended. Under 48 busy loops the test failed 2 runs of 20 before and passed 20 of 20 after.
|
|
241
|
+
- CI and release, rebuilt to the gh-cicd baseline: every action pinned to a commit SHA (with Dependabot to keep them current), read-only permissions, no stored credentials, concurrency that cancels only pull-request runs, `paths-ignore` for the generated `docs/`, `uv sync --locked`. The suite runs in 4 parallel shards with `pytest-split` (a dev dependency; `.test_durations` holds the measured time of each test), about 3.5 minutes instead of 10.5. The real-pointer live tests, the `busctl` gallery tests and the German-locale Clock test no longer skip on the runner (tre's virtual-pointer helper is fetched at the pinned engine release, with `pywayland`); `-rs` prints every skip reason. A `package` job installs the wheel alone and runs `tesserae-shell version`. `CI result` is the one check to require. `release.yml`, for a `vX.Y.Z` tag: runs the same CI on the tagged commit, checks the tag, the wheel version and the changelog agree, and makes a GitHub Release with the wheel and the sdist. It does not publish to PyPI: the wheel is a `linux_x86_64` platform wheel (it carries a compiled `tess_utils`) and PyPI accepts only manylinux or musllinux tags, which is the M7 packaging decision.
|
|
242
|
+
|
|
243
|
+
- T-050 shortcut mode (M6d, Focus and Keyboard > Shortcut Mode): the maintainer's seven rules as a pure state machine (`surfaces/mode.py`: one surface is in the mode or none, and one has the focus; `Enter_Shortcut_Mode` puts the Frame, else the first surface, in it with the focus on the default surface; setting one true sets every other false; false on the one in the mode turns the whole shell off and does not go back to the Frame; `Set_Shortcut_Mode` toggles the focused surface; `Next_Focus` and `Previous_Focus` go round the surfaces in `Tab_Index` order while the Frame has the mode and do nothing elsewhere) and `surfaces/mode_driver.py`, which applies each change to the windows: the surface that has the focus takes the keyboard (`EXCLUSIVE` for the length of the mode, `Debug { Mode_Keyboard: ON_DEMAND }` for a compositor that hands focus over after a global key) and has its written `Keyboard` back when the mode moves on or ends (a reload no longer sets a held window's keyboard); a Frame in the mode shows every peek (melded Panels and strips) at once and sends back the ones it brought out (`Hide_After`, the hover and the trigger do not hide them meanwhile); the focus ring starts on the first Tab stop of the surface; entering, each move and leaving set a polite status (a hidden text node with `live: polite`); a surface that closes or hides passes the focus on, and ends the mode if it had it; a surface that is not made active by the compositor within 1500 ms is one warning.
|
|
244
|
+
- T-050 `Shortcut_Mode: true | false` (default false) on Bar, Panel, Frame and strip (`Edges { Top { Shortcut_Mode: true } }`); a melded Panel and a Popup take none (errors). Two or more written true are ONE warning naming each with `file:line:column`, and the first in document order keeps it; the shell starts in the mode on that surface. A reload that writes a surface newly true moves the mode to it (rule 1), newly false on the one in the mode turns it off (rule 2), and a reload that changes nothing leaves what the run made.
|
|
245
|
+
- T-050 the five fixed actions run (`ShellCommands.fixed_actions` is filled: it was empty and a press logged "not built"). Only `Enter_Shortcut_Mode` is registered with the desktop with its key: the other four (`Exit_Shortcut_Mode`, `Set_Shortcut_Mode`, `Next_Focus`, `Previous_Focus`) are declared with no key (a key registered globally is a key taken from every application) and the keys written for them arrive as key events on the surface that has the keyboard (`Escape` leaves the mode when the Frame has it); a key the user binds to one in the desktop's own settings runs it too. `Shortcuts` keys are read again at every reload.
|
|
246
|
+
- T-050 `ctx.focus` for modules (loop thread): `ctx.focus.default = "Dock"` (the surface that has the focus when the mode is entered) and `ctx.focus.set_mode("Dock", True)`; a name that is no surface is one logged error with the module and the nearest names.
|
|
247
|
+
- T-050 `Debug { Mode_Keyboard: EXCLUSIVE | ON_DEMAND }` in `settings.tdl` (a restart applies it). Schema 1.4 (additive): `Shortcut_Mode` on Bar, Panel, Frame and Edge, and `Debug.Mode_Keyboard`; the docs of the five `Shortcuts` keys say which act inside the mode only.
|
|
248
|
+
- T-050 tests: the state machine (`tests/test_shortcut_mode.py`, 40 table tests), the manager with a Frame, two peeks, two Panels and a Bar (`tests/test_shortcut_mode_shell.py`, `tests/mode_rig.py`), the loader and its warning (`tests/test_shortcut_mode_schema.py`), the five actions and `ctx.focus` (`tests/test_shortcut_mode_api.py`), a private sway with `wtype` and the fake kglobalaccel on a private bus (`tests/test_shortcut_mode_live.py`), and the hand-check kit `tests/kwin/prepare_m6d_mode.py` (`/tmp/tess-kwin-m6d`, checked by `tests/test_kwin_m6d_kit.py`). `test_the_five_fixed_actions_go_to_a_hook_table...` of T-047 now empties one hook before it checks "not built" (the table is filled).
|
|
249
|
+
- Test fix (found when CI began to run the real-pointer live tests): on the runner's compositor (sway 1.9 on wlroots 0.17) the mouse cursor is drawn into a `grim` screenshot, and on sway 1.12 it is not. In `test_media_live.py` the cursor sat on the bar and added its pixels to the count of text-coloured pixels; in the peek-drag tests its tip covered the contour edge the test searches for at x = 100. The Media test now parks the pointer in an empty corner before it measures (the look at rest is what it compares), the peek tests read the contour at x = 150, clear of the cursor, and the Media test waits up to 30 s for the first frame (the runner took several seconds). Found by saving the runner's screenshots from a scratch workflow.
|
|
250
|
+
- Test fix (found by CI): `test_plugging_and_unplugging_an_output_opens_and_closes_only_its_windows` waited for the log line `closed (output_removed)`, which appears only when the compositor's event reaches the window before the shell has closed it; on a slower machine the shell closed the windows first (`closed (app)`) and the test timed out. Both orders are correct. The test now waits for the shell's own record of closing exactly the windows of the removed output.
|
|
251
|
+
- Test fix (found by CI): `test_calling_another_popup_replaces_the_open_one_on_a_real_compositor` waited 5 s for the second popup's colour. On a fresh CI machine the first graphics work is slow (5 runs of the test alone in fresh processes: the first took 16 s and failed, the next four 2.8 s each), and the test failed only when the shard split happened to put it first. `wait_for_shot` is an upper bound of 30 s now.
|
|
252
|
+
- Fix (found by CI): a Popup closed before the compositor had placed it stayed on screen for good. tre's `PopupWindow.close()` does nothing until the popup has a window id, which it gets when placed, so a replaced or toggled popup that was closed a few milliseconds before its `configure` was never destroyed (on a cold CI machine the first popup of `test_calling_another_popup_replaces_the_open_one_on_a_real_compositor` was closed 4 ms before it was placed, and its red body covered the second popup's green). The shell now remembers the close and makes it when `configure` arrives. tre's side is for the maintainer to report: `close()` should not be silent.
|
|
253
|
+
- M6b keys of the widgets (T-048; Standard Modules > Keyboard Operation): a Button takes Enter and Space (`:pressed` and the accessibility state `pressed` show while the key is held, also for a pointer press; a focus lost with the key down ends it); a Toggle and a Checkbox flip on Space and ignore Enter (tre clicks the focused block for both: the control remembers an Enter, and a repeat of a held Space, from the `key_down` before the click and takes neither); a Slider takes Left/Down and Right/Up (one `Step`), Page Up and Page Down (ten), Home and End, each moving key raising `On_Changed` and then at once `On_Released` with `old` the value before the step (a key at an end raises nothing); a List (`Selection: SINGLE`) takes Up, Down, Page Up, Page Down, Home, End, Enter and Space and typed letters (a search ends a second after the last letter, a space inside one is a letter of it), each move being a choice with `On_Changed` and `scroll_into_view`, a disabled entry passed over. A Menu in a Popup takes Up and Down (round the ends, the lit row shows the `:hovered` look, `Wire.active`), Home, End, Enter and Space, Right (opens the submenu of the lit row and lights its first row) and Left; Escape closes the innermost level and the first menu gives the focus back to its opener; the pointer on a row takes the light from the keys. A control listens for `key_down` on its block (`Control.takes_keys`): tre then gives it every key, so the arrow keys do not scroll a ScrollBox around it. A key with Ctrl, Alt or Meta is never a widget's. A disabled block takes no key even if it is given the focus.
|
|
254
|
+
- The Button module takes `Expandable` and `Expanded`: a Button that controls an Expander carries the accessibility state `expanded` (`Expandable: true, Expanded: <| open |>`); without `Expandable` it says nothing. The M4b gallery's `Toggler` module now controls its Expander with such a Button (it was a plain box, no Tab stop).
|
|
255
|
+
- The click path of a block is `View._run_click`: a control may refuse a click (`Control.accepts`), and `View.activate` runs it with no pointer (a menu row chosen with Enter). `tests/widgets_live.running` takes a whole shell `body` and a `home` surface, so a gallery's real shell text is operated headless.
|
|
256
|
+
- `tests/test_keys.py` operates the M4a, M4b and M4c galleries by key events only, one test a widget (Button, Toggle, Checkbox, Slider, List, Menu with submenus, TextInput, TextEditor, Expander) and the cases around them (type-ahead, a rebuild, a value from the module, modifiers, a disabled block). `tests/test_keys_live.py` Tabs to a Button and a Slider on the private sway with a virtual pointer and `wtype` and sees the module's actions. Not tested, on purpose: Ctrl+C, Ctrl+X and Ctrl+V, because tre's clipboard is the operating system's even on a headless window. The one criterion that fails today, Tab leaving a multi-line TextEditor, is `xfail(strict)`: tre types a tab character and has no property that lets Tab through.
|
|
257
|
+
|
|
258
|
+
- T-044 portal settings (M5h, H1 and H2): the Settings portal reader asks for `org.freedesktop.appearance` and `org.gnome.desktop.interface` in the one `ReadAll` and follows `SettingChanged` for `icon-theme`, `font-name` and `enable-animations` (a missing, odd or wrong-typed key is that key's default and the others apply; `Appearance.Follow_Desktop: false` still reads nothing). `Appearance` gains `icon_theme`, `font_family` and `animations`, and `motion_reduced` (reduced-motion key OR `enable-animations` false), which every consumer of reduced motion now reads: durations 0, no Marquee scroll, no Panel or Frame animation. The icon service takes the portal's theme before `kdeglobals` and `hicolor` (`IconService.set_portal_theme`); `ctx.icons.on_theme_changed(callback)` tells a module that the theme changed, and the shipped Tray makes its icons again. The theme token `type.system.font_family` holds the family of `font-name` (`Hack Nerd Font 10` gives `Hack Nerd Font`; a generic `sans-serif` while the desktop names none; a theme that sets the token itself keeps its own value; the shipped theme does not use it). Tests: `tests/test_portal_settings.py`, the fake portal serves the new namespace (`tests/fake_portal.py`), one live path in `tests/test_portal_live.py`.
|
|
259
|
+
|
|
260
|
+
- Global shortcuts, two answers: a Frame takes `Shortcut: "<key>"` (typed and checked like a Panel's: a bad key is an error at the key with `file:line:column`; the same action as `Toggle_<Name>`, so it joins the conflict warning and a `Shortcuts` entry for the same action wins with one warning; it is registered and changed at reload like the others). Schema 1.5 (additive: `Shortcut` on Frame, `surface_keys.Frame`). A `Call` shortcut that names a module no surface uses loads and starts that module (an instance with no use; built in T-053), and one that names no module is still an error at its entry; tests added for both (`tests/test_shortcut_frame.py`, `tests/test_shortcut_plan.py`).
|
|
261
|
+
- PyPI release path (Trusted Publishing is set up on PyPI for `release.yml`, environment `pypi`): the wheel is tagged `cp314-cp314-manylinux_2_36_x86_64` instead of `linux_x86_64` (PyPI accepts only manylinux tags), and a `pypi` job in `release.yml` uploads the built files after the build and before the GitHub Release (a refused upload leaves no public release), with no stored token and the environment's reviewer approving. `auditwheel show` in the CI `package` job checks that the tag is what the vendored `tess_utils` needs: it is consistent with 2_36 and nothing older, because the file asks for `GLIBC_ABI_DT_RELR` (glibc 2.36) besides glibc symbols up to 2.14; a first reading with `objdump -T` missed that. Users need glibc 2.36 or newer (Debian 12, Ubuntu 24.04, Fedora, Arch; not Ubuntu 22.04). A lower tag needs tess_utils rebuilt in an older manylinux image (the tess-utils repository). Nothing is published until the maintainer pushes a `v*` tag.
|
|
262
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mind Derivative
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|