tesserae-shell 0.2.0__tar.gz → 0.3.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.2.0 → tesserae_shell-0.3.0}/.gitignore +1 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/CHANGELOG.md +90 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/NOTICE +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/PKG-INFO +3 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/README.md +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/pyproject.toml +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/__init__.py +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/appearance.py +7 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/build.py +150 -48
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/controls.py +121 -5
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/convert.py +4 -5
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/focus.py +5 -15
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/marquee.py +45 -5
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/model.py +2 -4
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/motion.py +2 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/rebuild.py +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/shadow.py +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/tables.py +60 -5
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/cli.py +4 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/client.py +4 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/commands.py +7 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/confine.py +3 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/discovery.py +4 -0
- tesserae_shell-0.3.0/src/tess_shell/config/overlay.py +67 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/settings.py +23 -8
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/files/loader.py +22 -3
- tesserae_shell-0.3.0/src/tess_shell/migrate/focus_order.py +155 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/migrate/steps.py +9 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/expand.py +110 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/field.py +5 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/live.py +26 -7
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/look.py +209 -33
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/uses.py +3 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/context.py +7 -6
- tesserae_shell-0.3.0/src/tess_shell/preview.py +1053 -0
- tesserae_shell-0.3.0/src/tess_shell/preview_measure.py +187 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/scanner.py +60 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/blocks.py +88 -18
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/default_panels.py +3 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/docs.py +241 -39
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/export.py +67 -15
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/look.py +29 -7
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/model.py +46 -6
- tesserae_shell-0.3.0/src/tess_shell/schema/preview_shape.py +75 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/ranges.py +2 -4
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/shell.py +298 -33
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/values.py +12 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/control.py +9 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Applications/Applications_Module.py +2 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Applications/Applications_Module.tdl +11 -8
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Audio/Audio_Module.py +12 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Audio/Audio_Module.tdl +39 -25
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Badge/Badge_Module.tdl +7 -7
- tesserae_shell-0.3.0/src/tess_shell/shipped/Battery/Battery_Module.tdl +145 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Button/Button_Module.tdl +3 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Checkbox/Checkbox_Module.tdl +2 -2
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Clock/Clock_Module.tdl +2 -7
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Clock/Clock_Style.tdl +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Icon/Icon_Module.tdl +7 -6
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Label/Label_Module.tdl +4 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/List/List_Module.py +2 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/List/List_Module.tdl +33 -5
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Marquee_Text/Marquee_Text_Module.tdl +4 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Media/Media_Module.tdl +1 -24
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Menu/Menu_Module.tdl +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/MenuItem/MenuItem_Module.tdl +8 -8
- tesserae_shell-0.3.0/src/tess_shell/shipped/Network/Network_Module.tdl +173 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Network/Network_Style.tdl +1 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Stylesheets/Default_Stylesheet.tdl +66 -24
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Task_Item/Task_Item_Module.tdl +37 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tasks/Tasks_Module.py +6 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tasks/Tasks_Module.tdl +4 -3
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/TextEditor/TextEditor_Module.tdl +2 -3
- tesserae_shell-0.3.0/src/tess_shell/shipped/TextInput/TextInput_Module.tdl +104 -0
- tesserae_shell-0.3.0/src/tess_shell/shipped/Themes/Default_Theme.tdl +218 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Toggle/Toggle_Module.tdl +8 -4
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray/Tray_Module.py +6 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray/Tray_Module.tdl +3 -2
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray_Item/Tray_Item_Module.tdl +20 -10
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Volume_OSD/Volume_OSD_Module.tdl +2 -2
- tesserae_shell-0.3.0/src/tess_shell/shipped/Workspace_Item/Workspace_Item_Module.py +9 -0
- tesserae_shell-0.3.0/src/tess_shell/shipped/Workspace_Item/Workspace_Item_Module.tdl +61 -0
- tesserae_shell-0.2.0/src/tess_shell/shipped/Workspaces/Workspaces_Style.tdl → tesserae_shell-0.3.0/src/tess_shell/shipped/Workspace_Item/Workspace_Item_Style.tdl +1 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Workspaces/Workspaces_Module.tdl +5 -20
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shortcuts.py +2 -12
- tesserae_shell-0.3.0/src/tess_shell/surfaces/autohide.py +228 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/bar.py +4 -0
- tesserae_shell-0.3.0/src/tess_shell/surfaces/focus.py +35 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/frame.py +90 -12
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/frame_shader.py +37 -7
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/handle.py +3 -1
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/manager.py +378 -41
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/mode_driver.py +60 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/panel.py +33 -4
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/popup.py +168 -8
- tesserae_shell-0.3.0/src/tess_shell/surfaces/selection_copy.py +54 -0
- tesserae_shell-0.2.0/src/tess_shell/shipped/Battery/Battery_Module.tdl +0 -142
- tesserae_shell-0.2.0/src/tess_shell/shipped/Network/Network_Module.tdl +0 -167
- tesserae_shell-0.2.0/src/tess_shell/shipped/TextInput/TextInput_Module.tdl +0 -44
- tesserae_shell-0.2.0/src/tess_shell/shipped/Themes/Default_Theme.tdl +0 -100
- tesserae_shell-0.2.0/src/tess_shell/surfaces/focus.py +0 -53
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/LICENSE +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/__main__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/app.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/defaults.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/images.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/binder/shapes.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/lock.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/paths.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/permissions.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/registry.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/config/uids.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/data/io.github.mindderivative.TesseraeShell.desktop +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/data/tesserae-shell.service +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/exit_codes.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/files/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/files/header.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/files/icons.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/kwin/TesseraeShell/contents/code/main.js +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/kwin/TesseraeShell/metadata.json +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/kwin/actions/activate.js +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/kwin/actions/close.js +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/kwin/actions/minimize.js +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/kwin_commands.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/logging.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/migrate/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/migrate/rename.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/migrate/run.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/migrate/slots.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/args.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/icons.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/marquee.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/model/store.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/broker.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/child.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/childctx.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/probe.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/static.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/stub.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/supervisor.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modproc/wire.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/actions.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/host.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/process_port.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/running.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/supervise.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/modules/ticks.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/notify.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/options.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/py.typed +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/recovery.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/recovery_state.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/reloader.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/default_popups.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/deprecations.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/findings.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/graph.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/imports.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/keys.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/style.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/schema/tree.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/api.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/apps.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/audio.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/bus.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/desktop_entries.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/icons.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/kwin.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/kwin_package.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/layer.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/portal.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/pulse_native.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/shortcuts.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/tray.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/services/windows.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/session.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Applications/Applications_Style.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Audio/Audio_Style.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Audio_Outputs/Audio_Outputs_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Audio_Outputs/Audio_Outputs_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Badge/Badge_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Battery/Battery_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Battery/Battery_Style.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Button/Button_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Checkbox/Checkbox_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Clock/Clock_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Expander/Expander_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Expander/Expander_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Handles/NOTICE.txt +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Handles/tess_shell_bar.svg +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Handles/tess_shell_chevron.svg +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Handles/tess_shell_dots.svg +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Icon/Icon_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Icons/MDI-LICENSE.txt +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Icons/NOTICE.txt +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Icons/mdi.json +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Image/Image_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Image/Image_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Images/error.png +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Label/Label_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Marquee_Text/Marquee_Text_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Media/Media_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Menu/Menu_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/MenuItem/MenuItem_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Network/Network_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/ProgressBar/ProgressBar_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/ProgressBar/ProgressBar_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Slider/Slider_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Slider/Slider_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Task_Item/Task_Item_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Task_Item/Task_Item_Style.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/TextBox/TextBox_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/TextBox/TextBox_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/TextEditor/TextEditor_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/TextInput/TextInput_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Toggle/Toggle_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray_Item/Tray_Item_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray_Item/Tray_Item_Style.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray_Menu/Tray_Menu_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Tray_Menu/Tray_Menu_Module.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Volume_OSD/Volume_OSD_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Volume_OSD/Volume_OSD_Style.tdl +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/shipped/Workspaces/Workspaces_Module.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/signals.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/__init__.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/hotplug.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/join.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/join_concave.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/join_param.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/join_shader.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/join_structure.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/mode.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/outline.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/popup_measure.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/surfaces/ring.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/watch.py +0 -0
- {tesserae_shell-0.2.0 → tesserae_shell-0.3.0}/src/tess_shell/watchdog.py +0 -0
|
@@ -315,3 +315,93 @@
|
|
|
315
315
|
- `ShellCallTimeout` is exported from `tess_shell` (the maintainer's decision of 2026-11-19): a module that runs in its own process (posture C) catches the timeout of a synchronous `ctx` call (`update_popup`, `is_popup_open`, `focus`, `surface.hide`, `apps.search`, `icons.*`, 2 s) by name: `from tess_shell import ShellCallTimeout`. It is still a `RuntimeError` subclass, so an `except RuntimeError` written earlier keeps working; the class lives in `services/api.py` beside the other errors a module can catch, and the module process raises that class.
|
|
316
316
|
- M7a2, the product cell P (cell `P` of the module process harness: posture C as built, no prototype patch): `--postures=A,P` runs A and P in the default and the plus-three-user-modules shells and the probe cells, with verdict rows for P, a 'Which C' comparison and a 'product only' command; the real run (`tests/perf/module-process-results-product.md`, 21 min on an idle machine) passes every row: default shell equal to A, with three user modules start +128 ms, wake-ups +0.32 per second, memory +51 MB, value to screen p95 0.66 ms, hang and kill contained.
|
|
317
317
|
- Two budgets moved by the maintainer (2026-11-20), after the idle re-read of 2026-11-19 (`tests/perf/budget-results.md`, B18 read 19.2 ms and the seconds-Clock row of B01 0.54 %): B18, the bind of a typed tree of 3,101 nodes, is now at most 20 ms (it was 15 ms; the bind was 34.4 ms before the work of #88), and B01, idle CPU, is now at most 0.6 % of one core (it was 0.5 %). The harness constants, `tests/perf/budgets.md`, the report text and the collected bind bound (three times the budget, 60 ms) carry the new values.
|
|
318
|
+
|
|
319
|
+
## 0.3.0 - 2026-11-29
|
|
320
|
+
|
|
321
|
+
The release in short (every change is listed below, newest last). The schema export goes from 1.12 to 1.49: every change to the files is additive except the few under *Changed*.
|
|
322
|
+
|
|
323
|
+
- **Added:** the UX audit batch (state layers, the spec's focus ring and scrollbar, the tooltip card, F6 between surfaces, `Appearance.Scheme`, elevation levels and the Frame's shadow, `Padding`, `Auto_Hide` and `Animation` on a Bar, `Animation` on a Popup, `Empty`/`Count`/`Helper`/`Error` on List and TextInput); a multi-select `List` (`Selection: MULTIPLE`) and the `listbox`/`option` roles for a List you can choose from; `Density` on every block with a cascade that modules and popups follow (ADR-0029, schema 1.48/1.49); the preview model `tess_shell.preview` (what the shell would show for a configuration, as plain data, for a tool that draws a mockup: `preview`, `list_shells`, in-memory overrides, the `preview` section of the schema export, and `measure=` for real laid-out rectangles of every block, resolved texts and colours, a density level per block and where a Popup opens: see the last entry below); the Tooltip behaviours of the UX standard (hidden from assistive technology, closes on blur, Enter/Space and window focus loss). Test hardening: several timing-dependent tests (the Peek handle's AT-SPI test, the apps watcher, the module process stop, the ten-surface reload budget) no longer fail on a loaded machine.
|
|
324
|
+
- **Changed (can touch your files):** a shell with no `Appearance.Stylesheets` gets the shipped `Default` stylesheet; a Label ends over-wide text with an ellipsis; a disabled control is drawn at opacity 0.38; the shell's hover layer fades in 15 ms; the Launcher's results list is a listbox, no longer a Tab stop; `Easing: EMPHASIZED` is the spec's curve; the shadow when a theme has no `Elevation.Max` is `#00000066`; a Tooltip's text is also the trigger's description. `tesserae-shell check` tells you where a file needs an edit.
|
|
325
|
+
- **Requires:** `tesserae-engine>=0.6.13,<0.7` (tre 0.6.13), Python 3.14, **Linux only** (ADR-0025: KDE Plasma on Wayland; there is no macOS or Windows version).
|
|
326
|
+
- **Not yet checked on a real KWin session** (the guide says so where it matters): the tooltip card, focus ring, F6, state layers, shadows, Animation, multi-select feel and density look, `install-session` from the unit, global shortcuts through `kglobalaccel`, shortcut mode's keyboard and the Launcher's keyboard.
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
- TSH-085: a Marquee text pauses while the pointer is over it (the text stops where it is; a pending wait is held) and goes on when the pointer leaves. Under reduced motion, when disabled or with `Animated: false` nothing scrolls, as before.
|
|
330
|
+
- TSH-063: the shape scale has the two steps the Shape spec has and the shell lacked: `$shape.medium_large` (12) and `$shape.extra_large` (28). The shell's `small` (4) and `medium` (8) keep their names and values; they are the spec's `extra_small` and `small`. The schema export is 1.16.
|
|
331
|
+
- TSH-062: the shadow used when a theme has no `Elevation.Max` is `#00000066` like the Default theme's (it was `#00000040`).
|
|
332
|
+
- TSH-060: `Easing: EMPHASIZED` is the curve (0.2, 0, 0, 1) the Motion spec gives it until engines take path easing (it was 0.05, 0.7, 0.1, 1.0), and the Default theme's `Reduced_Motion` block now carries the zero durations the shell forced in code.
|
|
333
|
+
- TSH-044: the hover fill of a Launcher (or any `list_item`) entry is the `outline` colour, not `surface_raised`, which is the card's own fill (hover was invisible); the text on it keeps 4.5 to 1 in the dark and the light scheme.
|
|
334
|
+
- TSH-038: a Label ends a text that is wider than it with an ellipsis by default (was CLIP; `Overflow: CLIP` still cuts), and the Network connection name is bounded to 160 px and ends with an ellipsis.
|
|
335
|
+
- TSH-036: the Badge dot is 6 by 6 and the pill 16 high (minimum width 16, 4 px side padding), its digits in the caption size at weight 500 (were 8, 18, 11 px at 600), as the Badge spec fixes.
|
|
336
|
+
- TSH-024: a disabled control is drawn at opacity 0.38 (was 0.5), as the Motion/State spec fixes; the default stylesheet and the TextField default agree. Hovered and pressed (0.85, 0.7) are unchanged.
|
|
337
|
+
- A shell with no `Appearance.Stylesheets` key now gets the shipped `Default` stylesheet (ADR-0022; before, no stylesheet, so a TextField or List, and so the shipped Launcher, showed the engine's black text, unreadable on a dark desktop). `Stylesheets: []` still means none, and `tesserae-shell check` prints the note `appearance-no-stylesheet` when it is empty and a TextField or List is in use. `Stylesheets: [Default]` can be dropped from a configuration; one that names it keeps working. The schema export is 1.13: the `Stylesheets` setting shows `[Default]` as its default.
|
|
338
|
+
- M7k, click-away closing for the Launcher. A Panel on `Layer: OVERLAY` with `Keyboard: EXCLUSIVE` that holds the Applications module (the shipped `Launcher`, or your own) hides when you click on the desktop or on another application's window, and when another surface of the shell takes its keyboard (a keyboard that is only lost closes nothing: the seat's last keyboard device going away does that). While the Panel is shown the shell keeps a transparent surface the size of the output on layer `TOP`, under the Panel; a press on it hides the Panel and is taken by it (click again to use what is under it). The first build used tre's 1 by 1 popup grab and was reverted: on KWin the grab took the keyboard from the Launcher, so nothing could be typed (maintainer's hand check, 2026-11-20; kit step `3b-clickaway` now types and clicks in a private KWin). A Panel on another layer, or without the Applications module, is unchanged.
|
|
339
|
+
- M7i, content-sized Panels (tre 0.6.10, TRE-REQ-022). A Panel's `Width` or `Height` can be `AUTO`: the surface is the size of its content, padding included, and follows it while the Panel is open (one request to the compositor per change); `Max_Width` and `Max_Height` (pixels) clamp it, content beyond the clamp is clipped (put it in a scroll view). A bottom- or top-anchored Panel keeps its edge, an unanchored one stays centred. Refused with an error: AUTO with `Attach_To`, `Movable` or `Meld`, or on an axis stretched between two opposite anchors; `Max_*` on an axis that is not AUTO; EXPAND is still not built. The shipped `Launcher` is now `Width: 480, Height: AUTO, Max_Height: 400`: a short result list leaves no empty space. A Panel cannot be the `Attach_To` target of another when it is content-sized (the attached Panel is not created and the log says why). Schema export 1.13: the Panel keys `Max_Width`, `Max_Height`, and AUTO among the units of a Panel's size.
|
|
340
|
+
- M7j. (1) `ctx.announce` goes through ONE window (the highest surface: a Frame's, else the first Bar, else any open surface), so the order of announcements is the order of the calls (tre 0.6.10 keeps the order within a window); `use` no longer picks the window. (2) The active descendant (ADR-0023, tre 0.6.10): `TextInput { Active_Descendant: results }` in a module's layout names a `List` called in the same layout; a screen reader then reads that List's chosen entry as the current item of the field while the keyboard stays in it, and the relation is cleared when no entry is chosen and set again when the entries change. A name that is missing or is not a List is an error with the nearest names; two fields may name one List. The shipped `Launcher` uses it; its polite announcement of the selected row stays as the fallback. Schema export 1.15 (the TextInput param and the block key).
|
|
341
|
+
- UX adoption, TSH-007 (Workspaces tooltip). Each desktop button of `Workspaces` is now a `Workspace_Item` module called in the `For` (like `Task_Item` in Tasks), so the tooltip with the desktop's full name sits on the button itself (a Tooltip written inside `For` is not built). The visual is unchanged; the node ids of the buttons are `Workspace_Item@...` roots, not `Desktop`. Schema export 1.18 (the new module).
|
|
342
|
+
- UX adoption, tooltips on the controls (TSH-001, 002, 003, 071, 007 in part). A tooltip belongs to a control, never to a group or a row (Tooltip rule, AC-TIP-1). Battery and Network: the tooltip and the accessible label/description moved from the group root to one inner `Content` block with role IMG (the root is a plain box that keeps the size). Audio: one tooltip on the mute button and one on the volume slider, none on the root. Media: the root tooltip is gone (the title Marquee keeps its tooltip with the whole text when it is cut). Task Item: the tooltip (the full title) is on the item and its title Marquee opens none of its own: new `Marquee_Text` param `tooltip` (default true) and Marquee block key `Tooltip_Auto` (default true; `false` turns off the Marquee's automatic tooltip inside a control). Not done: the Workspaces desktop button (a Tooltip inside `For` is not built). Schema export 1.16.
|
|
343
|
+
- UX adoption, tooltip behaviour (ADR-0011, TSH-005, 006). The default `Exit_Delay` of a tooltip is 150 ms (was 200): the grace in which the pointer can cross from the block onto the tooltip. A press, Escape or a scroll on the surface dismisses the tooltip that is open (or waiting for its delay) and it does not come back until the pointer has left its block and entered again; keyboard focus (with a ring) on a block that has a tooltip shows it at once, and losing the focus ends it. Not done: window focus loss (a layer surface has no focus of its own to lose) and a scroll of a scroll container (only the surface's wheel is heard).
|
|
344
|
+
- UX adoption, keyboard reach (TSH-011, 012, 013, 016, 017). A Box or FlexBox that has the keyboard raises `On_Key_Down` (event.key, modifiers, event.rect), as a TextField did. Tray: Menu or Shift+F10 on a focused item opens its menu (the secondary click's twin). Tasks: Delete on a focused task closes its window. Audio: on the focused mute button Up and Down change the volume by one step and Menu or Shift+F10 opens the list of outputs. A focused Movable Panel moves with Alt and an arrow (8 px, Shift 32 px), stays on the output and saves its place as a drag does (the Panel needs `Keyboard: ON_DEMAND` or `EXCLUSIVE` to hear keys). The Text Editor's module comment no longer says Tab cannot leave the field (it has since tre 0.6.8). Schema export: the Box and FlexBox `On_Key_Down` handler (1.19, after 1.17 and 1.18 of the other open PRs).
|
|
345
|
+
|
|
346
|
+
- UX adoption, a Bar that can be hidden (TSH-051, part a of TSH-010). `Bar { Visible: false }` starts the Bar hidden, and `Show`, `Hide`, `Toggle` and the `Show_`, `Hide_` and `Toggle_` shortcuts now take a Bar's name as they take a Panel's. A hidden Bar reserves no space (`exclusive_zone` 0, root not drawn, no input); showing it gives the space back, also after a fullscreen window covered it. `Reveal_Key` stays removed; `Auto_Hide` and the Shortcut Mode reveal are the next two parts. Schema 1.20.
|
|
347
|
+
- UX adoption, density levels (TSH-034, 035, 037 in part; ADR-0002). Three levels, `DEFAULT` (40 px controls), `COMPACT` (32, the shell's default) and `DENSE` (28), chosen by `Appearance { Density }` in `settings.tdl` (applies on reload) and, per surface, by `Density` on a Bar or Panel. The sizes are a new theme token group `Density` (`density.control_height`, `row_height`, `menu_item_height`, `icon_size`, `row_padding_x`, `icon_label_gap`, `field_padding_x`, `tree_indent`, `chevron_box`): the base values are the DEFAULT level and `Modes { Compact, Dense }` replace them. A module reads them in a slot as `<| density.control_height |>` (the surface's own level). Button, Toggle, Checkbox, MenuItem and the Applications rows take their heights from them: the Toggle and the Checkbox are now 32 high at COMPACT (their painted track and box are unchanged and centred), a MenuItem 32 (was 28) and a Launcher row 32 (was 40). The Applications module sends `row_count` in place of `list_height`. Not yet: the TextField, tray and task items, tree rows (no shipped tree). Schema 1.22.
|
|
348
|
+
- UX adoption, focus order (TSH-014, AC-KBN-2). A `Tab_Index` above 0 is an error (`tab-index-positive`) and the order of the Tab stops of a surface is the order of the file; `Tab_Index: 0` is still accepted and changes nothing, and a negative or non-integer value stays a `bad-value`. The order of the surfaces among themselves (`Next_Focus`, `Previous_Focus`, the first surface of shortcut mode with no Frame) is the new `Focus_Order: [Names]` key of the `Shell` block: the names it lists come first in that order, the others follow in the order of the file; a name no surface has is the warning `focus-order-unknown` with the nearest names. Removed: the binder's tab ranking (`Entry.rank`, `tab_order`, `TAB_INDEX_MAX`) and the `tab_index` field of the Bar, Panel, Frame and edge models. New `tesserae-shell migrate` step 0003: a positive `Tab_Index` on a block is removed, one on a surface becomes its place in `Focus_Order` (a file of surfaces made to be imported keeps it and the loader says so). Schema 1.23.
|
|
349
|
+
- Fixed: `Line_Height` is a height in pixels (as its documentation and the `type.*.line_height` tokens say), but the binder passed the number to tre, whose `line_height` is a multiple of the font size: `Line_Height: 20` made a 280 px line. The binder now divides by the block's font size (tre's own 16 when none is written), on build, on a slot update (a new `Font_Size` keeps the pixels) and in a state style. No shipped style set it, so nothing changes in the shipped look.
|
|
350
|
+
- UX adoption, TextField density (TSH-034, follow-up of the density levels). A TextField is `40`, `32` or `28` high at the DEFAULT, COMPACT and DENSE level. Its default padding is no longer built into the expander: the Default stylesheet's rule `TextField { Padding: $density.field_padding }` gives it (a stylesheet list without the Default one gives a field no padding, as it gives it no look), and the theme token `density.field_padding_x` is replaced by `density.field_padding`, the four sides: `[12, 12, 12, 12]`, `[8, 8, 8, 8]`, `[8, 6, 8, 6]`. Visible at COMPACT (the spec's values): the side padding is 8 (was 10) and the field 32 high (was 28). The spec's vertical padding assumes a 20 px line; tre lays 14 px body text out 16 px high, so the vertical values are 12, 8 and 6 (the field height is what is exact). Schema 1.24.
|
|
351
|
+
- UX adoption, density for the items of a Bar and for a Popup (TSH-030, 033, TSH-034 follow-up). New tokens `density.item_size` (tray item, task button and workspace button: DEFAULT 32, COMPACT 24, DENSE 24; 24 is the least a pointer target may be) and `density.item_icon_size` (20, 18, 18). The owner keeps today's 24 at COMPACT, which is a deviation from the spec's icon button (40, 32, 28); the Orchestrator records it. `Tray`, `Tasks`, `Tray_Item` and `Task_Item` take `icon_size` / `size` 0 as "the level's" (the new default; 18 before, the same at COMPACT and DENSE, 20 at DEFAULT; the icon itself is still drawn from a 18 px pixmap). `Popup` takes `Density` like a Bar and a Panel. Schema 1.25.
|
|
352
|
+
- UX adoption, elevation levels (Elevation, ADR-0006; the owner adopted the MD3 baseline). The theme's `Elevation` group takes `Level_1` to `Level_5` blocks beside `Max`: the MD3 two-shadow lists (key at 30 percent, ambient at 15 percent) for 1, 3, 6, 8 and 12 dp, in the shipped Default theme; they are tokens `$elevation.level_1` ... `$elevation.level_5`. `Elevation` of a block takes `LEVEL_0` to `LEVEL_5` as well as a percentage (which keeps scaling `Max`); `LEVEL_0` is no shadow. A theme that lacks a level falls back to the Default theme's. Shadows only: the tonal container roles (`surface_container_*`) are not in the shell's colours. Schema 1.26.
|
|
353
|
+
- UX adoption, the Frame's shadow (TSH-054, AC-FRM2-11). A Frame's `Style` takes `Elevation` (a percentage of the theme's largest shadow, or a level once the theme has `Level_n` tokens) and `Shadows`: the ring shader paints the shadow the ring casts from its inner edge into the opening, up to four shadows, the first on top, with the `blur` (a Gaussian of sigma blur / 2) and `spread` of each and the colour's alpha; `X` and `Y` are not used (a ring has no direction). The shadow lies in the opening, which the ring's contour leaves click-through, so it takes no click. A melded body is part of the ring, so its shadow follows it. `Shadow_Bleed` is accepted and has no effect (the painter covers the output). Drawn by the ring shader only: a Frame that is drawn with paths (`Debug { Frame_Blend: PATH }`, an `Opacity` below 1, a translucent colour, another `Frame_Join`) has no shadow and the log says so once, because tre's shadow of a path with a hole is the shadow of its outer contour (the ring would be filled in). Schema 1.27.
|
|
354
|
+
- Pinned `tesserae-engine>=0.6.11,<0.7` (tre 0.6.11). The tre defaults the schema export reads changed with it: a text's default colour is `#1d1b20` (the scheme's `on_surface`, was black) and a block's `hit_testable` reads `None` by default (the kind's own); the AT-SPI test accepts the namespace-named window node of a layer surface (the click catcher). No shipped look changes: the Default stylesheet sets the colour of text.
|
|
355
|
+
- UX adoption, state layers (State Layers, ADR-0009; owner item 22; tre 0.6.11). New style keys `Hover_Layer`, `Pressed_Layer` and `Focus_Layer` (a colour role) on Box, FlexBox, Rectangle, ScrollBox and TextField: tre draws the layer over the block's fill and border, below its children, one at a time (pressed over focus over hover), faded in the engine. Their opacity is the new theme token group `State` (`$state.hover` 0.08, `$state.focus` 0.10, `$state.pressed` 0.10, `$state.dragged` 0.16 for later): the binder gives the colour that alpha, and a colour that already has an alpha (`"#FFFFFF14"`) is drawn as written. The Default stylesheet gives Button, Toggle, Checkbox, list rows, MenuItem, tray, task and workspace items the `on_surface` layers; the hover opacity literals (Toggle 0.85, Checkbox 0.85, pressed 0.7) and the hand-made hover fills and Button border colours are gone. A pressed MenuItem is still filled primary. Fade time is tre's `state_layer_ms` (100; the spec's hover fade is 15 ms: recorded as a deviation, one value for every state). Deviations: focus layer only with keyboard focus (as the spec). Schema 1.28.
|
|
356
|
+
- UX adoption, the focus ring is tre's outline (TSH-021, AC-FOC; tre 0.6.11). The ring that keyboard focus shows was a 2 px `Shadows` entry in the `:focused` state, with no gap and only on blocks that take shadows; it is now an outline: `Outline_Width` 3, `Outline_Offset` 2 (a gap the page shows through) and `Outline_Color` `color.primary`, from the new theme tokens `space.focus_ring_width` and `space.focus_ring_offset`. It shifts no layout, leaves a block's own `Shadows` alone (they no longer share the state), and a `:focused` rule or a stylesheet can change it with the new style keys `Outline_Width`, `Outline_Offset` and `Outline_Color` (Box, FlexBox, Rectangle, ScrollBox, TextField). An ancestor that clips its children (a ScrollBox's viewport) clips the ring at its edge. The shell still decides when the ring shows (keyboard focus only, a click shows none, a disabled block none), as before. Schema 1.29.
|
|
357
|
+
- UX adoption, the engine's baseline colours follow the look (tre 0.6.11 `scheme`). Every window the shell makes (Bars, Panels, Popups, the Frame's painter and strips, the click catcher) now gets `scheme` (`light` for a light desktop, else `dark`) and the baseline roles its theme names (`color.surface`, `on_surface`, `on_surface_muted` as tre's `on_surface_variant`, `primary`, `on_primary`, `error`, `outline`), live when the desktop changes light or dark. What tre draws with no colour given (an unstyled text, a text input's caret and selection, a scroll thumb) follows the theme instead of tre's own palette, with or without the Default stylesheet. A token the theme lacks leaves tre's role as it is. No schema change.
|
|
358
|
+
- UX adoption, the scrollbar of the spec (Scrollbar and Scroll Container; tre 0.6.11 scrollbar properties). A `ScrollBox` (the List's viewport, a TextBox) now has a thumb 8 px thick in a 12 px hit area, 2 px from the edge, at least 32 px long, with the corner radius 4, at 0.70, 0.80 and 1.00 opacity at rest, under the pointer and dragged, in the theme's muted ink, and a wheel notch and an arrow key of 40 px and a Page step of 0.9 of the viewport; before, a one-axis view kept tre's legacy look (a 4 px thumb). The sizes are the new theme token group `Scrollbar` (`$scrollbar.width`, `hit_width`, `margin`, `min_length`, `gutter`, `radius`, `opacity`, `opacity_hover`, `opacity_drag`, `wheel_notch`, `key_line`, `page_fraction`); the thumb colour is `color.on_surface_muted`. New `ScrollBox` style keys `Scrollbar_Width`, `Scrollbar_Hit_Width`, `Scrollbar_Margin`, `Scrollbar_Min_Length`, `Scrollbar_Gutter`, `Scrollbar_Radius`, `Scrollbar_Opacity`, `Scrollbar_Opacity_Hover`, `Scrollbar_Opacity_Drag`, `Scrollbar_Fill`, `Scrollbar_Fill_Hover`, `Scrollbar_Fill_Drag`, `Scrollbar_Track_Fill`, `Scrollbar_Show` (OVERFLOW, ALWAYS, AUTO_HIDE, NEVER) and `Scroll_Wheel_Notch`, `Scroll_Key_Line`, `Scroll_Page_Fraction` change one thing, in the block's `Style` or a stylesheet rule. A Popup whose content is taller than its `Max_Height` (the Tray menu) scrolls in a view with the same scrollbar. Not done: the tonal track and `Scrollbar_Show` per axis. Schema 1.30.
|
|
359
|
+
- `Appearance { Scheme: DEFAULT | LIGHT | DARK }` in `settings.tdl` (TSH-061). DEFAULT (the default) follows the desktop through the Settings portal, as before; LIGHT or DARK uses that scheme always and ignores the desktop's, also when it changes while the shell runs. Applies on reload (taking the key out follows the desktop again from the next portal change). `Appearance.scheme_override` carries it. Schema 1.31.
|
|
360
|
+
- One tooltip card (TSH-004, AC-TIP-13, AC-TIP-21). The plain tooltip of the spec: a fill of the new theme token `color.inverse_surface`, the corner radius `shape.small` and no shadow, text in `color.inverse_on_surface` (new tokens, Dark, Light and High_Contrast; 14 to 15 to 1 in Dark and Light). An inline `Tooltip { }` starts from that card (a key written in its `Style` replaces the card's own) and so does the `Tooltip: "text"` form, whose padding is now 8 by 4 (was 12 by 8). The eight literal cards of Audio (two), Battery, Clock, Network, Task Item, Tray Item and Workspace Item (a `surface_raised` fill, radius 8, a 20 percent shadow, padding 12 by 8) are gone: they take the card and write only their content, in the inverse ink, with the padding 8 by 4. Visible: tooltips are now light on a dark desktop (dark on a light one), square-cornered at 4, and flat. Schema 1.33.
|
|
361
|
+
- Contrast over every role pair of the theme in Dark, Light, High_Contrast and High_Contrast on a Light scheme (TSH-042, AC-COL-3, AC-COL-4): `tests/test_contrast.py` checks text pairs at 4.5 to 1 and pictogram, border and fill pairs at 3 to 1, and keeps the failures it knows in a list that fails when one changes: the Dark `outline` on `surface_raised` is 2.69 to 1 (a Button's border, a card's edge); the High_Contrast mode on a Light scheme keeps the Light `error` (3.21), `warning` (3.54) and `success` (3.27) on black. The `accent` token as text is 4.38 (Dark) and 3.82 (Light) on `surface`, 3.90 and 4.11 on `surface_raised`; nothing shipped uses it as text (a test says so), so it is a token finding for the vault (TSH-043). No code change.
|
|
362
|
+
- Colour values after the UX decision ADR-0025: the Dark `outline` is `#5F7188` (3.61 to 1 on `surface`, 3.21 on `surface_raised`), and the High_Contrast block names its own `Error` `#F2958C`, `Warning` `#E6BB6A` and `Success` `#8CCB9A` (it inherited the Light values on black: 3.21 to 3.54 to 1, now 9.45 to 11.68). The contrast test's list of known violations is empty; `accent` is never text (it passes 3 to 1 as a pictogram or border everywhere). The Menu Item hover is a state layer, not an outline fill.
|
|
363
|
+
- F6 and Shift+F6 cycle between the shell's surfaces (TSH-015, AC-KBN-3). From a surface that has the keyboard, F6 enters shortcut mode and steps to the next surface in `Focus_Order` / file order (Shift+F6 the previous one); in the mode it is Next_Focus and Previous_Focus; Ctrl, Alt or Meta with F6 are left alone. It reaches the shell only while one of its surfaces has the keyboard (a Bar clicked with `Keyboard: ON_DEMAND`, a Panel); from another window, `Enter_Shortcut_Mode` stays the way in (a global F6 would take the key from every application). No schema change.
|
|
364
|
+
- State cues that are not colour or dimming alone (TSH-023, TSH-073; AC-MOD-TIT-7, AC-MOD-TRI-7). A minimised Task Item keeps its dimming and gains a 2 dp bar under the item; a Tray Item that needs attention keeps its `warning` border and gains a 6 dp dot in the corner (the Task Item already had its dot). No schema change.
|
|
365
|
+
- Ctrl+C copies the selection of a selectable Text (TSH-081, AC-SEL-1, AC-SEL-4, AC-SEL-10): from a Bar, a Panel or a focused Popup the selected pieces go to the clipboard, joined with a newline; a focused text input keeps its own copy. A keyboard-only user still cannot start a selection (engine limit, noted in the Text Selection spec). No schema change.
|
|
366
|
+
- Tokens instead of literals (TSH-037, TSH-039, TSH-056; AC-ICO-1, AC-DEN-1, AC-PEK-14). The `Icon` module with no `Size` takes the density's icon size (24, 20, 20; was 16), and a menu item's icon and submenu arrow take `density.icon_size` and `density.chevron_box` (were 16). A module's slots now read the spacing scale as `space.step_1` to `space.step_8` (as they read `density.*`), and the shipped modules write their `Padding` and `Spacing` with it where the value is on the scale (a tooltip's `Gap` is not a slot and stays a number). The ink of a Peek handle where the Frame has no border to give it is the theme role `on_surface` or `surface`, whichever reads better on the Frame's fill (it was one of two literal greys), and the Frame's paint carries it. Visible: icons without a `Size` and menu icons are larger than before. Schema 1.34 (documentation of the tokens).
|
|
367
|
+
- `Padding` on a Bar and on a Panel (TSH-055, AC-PNL-4, AC-BAR-17): the space between the surface's content and its sides, a number or four sides, applied to the surface's body (inside its `Width` and `Height`, added to a content-sized Panel). A Panel with `Meld: true` refuses it (its content is drawn in the Frame's painter). Still not built: `Class` on a Bar and a Panel, `Margin` on a Panel, `Text_Rotation`, `Exclusive_Zone` on a Panel. Schema 1.35.
|
|
368
|
+
- `List` takes `Empty` and `Count` (TSH-082, AC-EMP-1): with `Empty: "No results"` and `Count: 0` (the caller passes the number of entries it loops over, a module cannot count its Content) the List shows one muted text node inside itself and keeps its role and name; with any other count, or none, nothing changes. Multi-select (`Selection: MULTIPLE`) waits for the engine's selection model. Schema 1.36.
|
|
369
|
+
- A Peek's handle is a button for assistive technology (AC-PEK-16): the handle's holder has the role `button`, the name "Expand {name}" at rest or "Collapse {name}" while out, the `expanded` state, and a press without a pointer position opens or closes the peek. The holder still takes no pointer, so the Frame's input region does not change. Only the handle of a Panel or strip with a `Peek` whose `Handle` is not NONE is exposed; a peek with no handle has no control for a screen reader yet. No schema change.
|
|
370
|
+
- UX adoption, Auto_Hide of a Bar (TSH-010 part b). `Auto_Hide` (default false: a Bar opts in with `true`; the owner's decision of 2026-11-21, the spec's "on by default" is changed by the vault) and `Auto_Hide_Delay` (ms, default 1000) are built. The pointer leaving a Bar starts the delay; then it slides out (200 ms, the edge margin to `1 - thickness`), then `exclusive_zone` goes to 0, so windows reflow once. A 1 px hover strip is the input region while it is out; the pointer on it brings the Bar back (the zone first, then the slide in). A Bar that has the keyboard or a Popup of its own open stays (looked at again each delay); reduced motion does it at once; a hot reload brings a slid-out Bar back; a fullscreen window keeps the strip without input. New `surfaces/autohide.py`. Part c, in the same change: entering shortcut mode brings a slid-out Bar back and holds every Bar out while the mode lasts; leaving the mode or Escape starts the delay of each Bar it brought back (ADR-0021). Not built: content fade and `Animation` of a Bar. Schema 1.37.
|
|
371
|
+
- `Animation { Type: SLIDE | FADE | NONE, Duration }` on a Bar (TSH-053, AC-BAR-17, AC-MOT-2): how an `Auto_Hide` Bar goes out and comes back. SLIDE (the default, 200 ms, as before) moves it past its edge; FADE fades its opacity and then leaves the strip, and fades back in; NONE changes at once. The desktop's reduced-motion setting makes every Bar change at once whatever the block says. A Bar's `Show` and `Hide` stay immediate, and a Popup's `Animation` is still not built (it needs a compositor test of a window that outlives its `close`). Schema 1.38. Not yet seen on a real KWin.
|
|
372
|
+
- `Receives { On_Changed: Field }` in a module file: the events written on a use go to the named block of the layout instead of the root, so a module whose root is a container can hold a `TextField` (or any block that raises the event) and still forward `On_Changed`, `On_Submit` and the rest. The target must exist and raise the event (checked once, when the module is read); an event not named goes to the root as before; a module with no `Receives` is unchanged. This is what the planned TextInput error and helper lines (TSH-084) need. Schema 1.39.
|
|
373
|
+
- The Launcher's results list is no longer a Tab stop (the Launcher spec: the keyboard stays in the text field). The owner's check on KWin: Tab took the keyboard to the list, where Enter started nothing. Now Tab leaves it in the field, the arrows move the selection from the field and Enter starts the lit row. The list holds at most `max_results` rows (8) by design, so it has no scrollbar; a scrolling list is a `List` of your own. No schema change.
|
|
374
|
+
- `TextInput` takes `Helper` and `Error` (TSH-084, AC-VAL-3, AC-VAL-5, AC-VAL-7), and a `TextField` block takes `Invalid`, with a new `:invalid` style state. `Helper` is a line of help under the field; `Error` replaces it with a message (an alert icon and the words in the `error` colour, polite live region) and marks the field invalid: its outline takes the `error` colour and keeps it while hovered or focused, assistive technology reads `invalid`, and the message (else the helper) is the field's accessible description. The call decides when to show the message. A `TextField` block now sends `Description` to its text input, not its box. The TextInput module's root is a container with the field and the lines, and its `Receives` sends the call's events and a stylesheet rule on `TextInput` to the field; rules reach the block the first `Receives` names (`apply_module_rules`). Schema 1.40.
|
|
375
|
+
- Shortcut mode could be left on by a click: with the mode on and the keyboard taken by another window (the owner's check on KWin: Escape and F6 then went to Chrome), the mode stayed on with no way out but a restart. It now ends by itself when no surface of the shell has the keyboard 2 s after one lost it (a move to the next surface, or a compositor that takes the keyboard back for a moment, is not that), and the new command `tesserae-shell leave-shortcut-mode` (D-Bus `ExitShortcutMode`, answering whether the shell was in the mode) is a way out whichever window has the keyboard. Escape from a Bar that entered the mode with F6 is tested. No schema change.
|
|
376
|
+
- A Marquee's scrolling text no longer takes the pointer outside its box, and a Task item is as wide as its title (up to `max_width`). The owner's check on KWin: a click on a workspace hit a task item. The text a Marquee scrolls is wider than its box and the part scrolled past the box is clipped but was still a click target, covering the neighbouring blocks (a long title scrolled over the Workspaces); the text node is no longer a hit target, the box is. A Task item also kept a fixed `max_width` even for a short title, leaving blank click space and pushing the next item right; it now fits its title (the `Width: AUTO`, `Max_Width` of its title). No schema change.
|
|
377
|
+
- Per-state state-layer fade times (tre 0.6.12): style keys `Hover_Layer_Ms`, `Pressed_Layer_Ms` and `Focus_Layer_Ms` (the fade of that layer, in milliseconds) and theme tokens `state.hover_ms` (100: ADR-0009 asks 15, but a 15 ms hover fade leaves one layer pixel behind after a real click on the private sway, `tests/test_media_live.py`; the engine's default is kept until tre is asked), `state.pressed_ms` (105) and `state.focus_ms` (150), which a block with a layer takes unless it writes the key: a hover wash comes at once, a press a little slower, the focus layer slowest (ADR-0009). Headless-tested only (the owner does not run main). Schema 1.41.
|
|
378
|
+
- Every window of the shell sets tre 0.6.12's `drag_start_px` to 4: while a button is held, the pointer has to move 4 pixels before a drag starts, so a click with a little jitter stays a click (a peek, a scrollbar thumb, a movable Panel, a slider). Headless-tested only (the owner does not run main). No schema change.
|
|
379
|
+
- The highlight of a selection has 2 px corners on a selectable `Text` and in a `TextInput` or `TextEditor` (tre 0.6.12 `selection_radius`; a design choice, the Text Selection spec records no value); the fill is the engine's own, the scheme's primary at 30 percent, now also on a static `Text`. No new keys. Headless-tested only (the owner does not run main). No schema change.
|
|
380
|
+
- Escape during a Peek drag (tre 0.6.12 `pointer_cancel`): the body goes back to where the drag started (the tab, or fully out) instead of staying wherever the pointer left it or opening because it passed half; a press that never moved is dropped. Headless-tested only (the owner does not run main). No schema change.
|
|
381
|
+
- No empty surface flashes when a Bar or a Panel opens (tre 0.6.12 `first_present`): a layer surface is mapped by its first buffer, so the shell now holds the first frame until the tree is built (a deadline of 3 s shows it anyway). Headless-tested and run on the private sway (media, shortcut mode, focus and popup live tests); the owner does not run main. No schema change.
|
|
382
|
+
- A popup with a shadow keeps its body 8 px off the screen edge when the compositor flips or slides it (tre 0.6.12 `edge_margin`; 8 is a design choice, taken from the shadow room around the body, so a popup with no shadow gets none). Headless-tested only (the owner does not run main). No schema change.
|
|
383
|
+
- A Frame drawn with paths (every `Frame_Join` and `Frame_Blend: SRGB`) now casts its `Elevation` or `Shadows` shadow just inside its inner edge, as the ring shader does (tre 0.6.12: a path's shadow follows its holes); the warning that such a Frame has no shadow is gone. Headless-tested only (the owner does not run main). No schema change.
|
|
384
|
+
- `Animation { Type: FADE | NONE, Duration }` on a `Popup` and an inline `Tooltip` (TSH-053, AC-POP): with FADE (200 ms unless `Duration` says otherwise) a popup comes in from nothing and fades out before its window closes; NONE, the default, is as before. `Type: SLIDE` is refused (not built), and the desktop's reduced-motion setting opens and closes it at once. A popup the compositor dismissed is gone at once. Schema 1.42. Headless-tested only; the private-KWin kit step for the fade-out of a grabbing popup is still to run (the owner does not run main).
|
|
385
|
+
- Conformance to the Tesserae behavior standard, first slice (tests only; one observation seam): `TooltipManager.tooltip_log` records what a tooltip did and why (read by no code of the shell), and `tests/behavior/` runs the `tooltip` corpus of `tess-behavior` against the shell's real tooltip (skipped without the package, which is private until its first release: `tests/behavior/requirements.txt`). Result: 3 of 17 cases pass strictly (the shell has no cancelable `before_change`); with events ignored 9 of 17 pass and the real gaps are listed in the test file (the open tip is not hidden from assistive technology, blur, Enter, Space and window focus loss do not close it). No schema change.
|
|
386
|
+
- Conformance to the behavior standard, second slice (tests only): the `search_field` corpus run on the Launcher's query field (`tests/behavior/search_field_host.py`). Strict: nothing passes (the Launcher has no clear button, no controlled value, no `disabled` option, and reports no change events with reason and detail); with events and parts ignored (a diagnostic) the three cases the field can run pass: typing sets the value, Escape clears it, the same text is no change. No schema change.
|
|
387
|
+
- An open tooltip is hidden from assistive technology when its trigger carries the text as its description (Tooltip > Accessibility, AC-TIP-19): a screen reader reads the trigger's description and never needs the tip layer. A trigger with no description (an inline `Tooltip { }` with its own content) keeps its tip exposed, as the only place the text is. No schema change.
|
|
388
|
+
- A tooltip shown by keyboard focus is removed at once when focus leaves its block (Tooltip > Behavior): no grace period, the tip was the focus's. Before, it waited out the exit delay as if the pointer had left. No schema change.
|
|
389
|
+
- Enter or Space on the focused trigger removes its open tooltip (Tooltip > AC-TIP-7); the key still activates the block. The tip does not come back until the pointer has left and entered again. No schema change.
|
|
390
|
+
- A surface losing keyboard focus removes the open tooltip on one of its blocks (Tooltip > AC-TIP-8); it comes back only after the pointer has left and entered again. No schema change.
|
|
391
|
+
- An inline `Tooltip { }` block gives its text to the trigger as its accessible description, like the `Tooltip: "text"` form (Accessibility, rule 11): an open tip is hidden from assistive technology, so without this its text would be nowhere in the tree. The one `Text` in the tip gives it (a slot stays a slot; several plain texts are joined by a space); a tip with no text gives none and stays exposed. No schema change.
|
|
392
|
+
- Docs: the `Description` key's text now says that the text of a Tooltip, in the text form or as the one `Text` of an inline `Tooltip { }`, is also the block's description (the open tip is hidden from assistive technology). Schema export 1.43 (docs text only).
|
|
393
|
+
- The engine pin is `tesserae-engine>=0.6.13,<0.7` (`uv.lock` 0.6.13); CI fetches tre's virtual-pointer helper from the v0.6.13 tag. No behaviour change by itself: the 15 ms hover fade and multi-select follow.
|
|
394
|
+
- The hover layer fades in 15 ms again (`$state.hover_ms`, ADR-0009; it was 100 on tre 0.6.12, whose 15 ms fade left one layer pixel on a real compositor; tre 0.6.13 fixes that). Schema export 1.44 (the documented default).
|
|
395
|
+
- `List { Selection: MULTIPLE }` (TSH-082): the List chooses a set with the engine's own container selection (tre 0.6.13, no range logic of the shell): click, Shift+click a range, Ctrl+click a toggle, Shift+Up and Down extend, Ctrl+Up and Down move focus, Ctrl+Space toggles, Ctrl+A chooses every enabled entry, Escape keeps the set, a disabled entry is skipped (AC-SLT-1 to 5). The container is multiselectable and each entry says `selected` to assistive technology, and the engine announces "N selected" once, polite, after 300 ms (AC-SLT-8, 9; read from the real AT-SPI tree on a private sway). `Selected` and `On_Changed`'s `old`, `new` and `value` are the keys of the chosen entries joined by a comma, in the entries' order. The type-ahead search stays SINGLE's. `Selection_Mode` takes `MULTIPLE` (schema export 1.45).
|
|
396
|
+
- A test with REAL key events on a private sway (`tests/test_real_keys_list.py`, keys from `wtype`, the choice read from the AT-SPI tree): Down, End, Home, Page Down and Page Up move a List's choice. It measures that the engine's real names for these keys match the snake_case names the shell matches (`home`, `end`, `page_down`, `page_up`). Tests only.
|
|
397
|
+
- Conformance to the behavior standard, third slice (tests only): the `list` (Selection) corpus run on the multi-select `List` (`tests/behavior/list_host.py`), and the corpus pin moves to tess-behavior d426d41 (all three corpora re-run on it). Strict: no case passes (rows take no keyboard focus, the shell reports no `selection_change`, the role is list/listitem, the shell's SINGLE keeps no anchor); with events, focus and tree ignored (a diagnostic) the engine's own rules pass: click, Shift and Ctrl ranges, Ctrl+A, Escape, a click on empty space, Shift+Arrow. 7 cases are not run (no `select_all_key`, `select_on_focus` or `unselectable` option). A real-key test on a private sway adds Ctrl+A and Escape (AC-SLT-4).
|
|
398
|
+
- A List you can choose from (`Selection: SINGLE` or `MULTIPLE`) is a `listbox` of `option` entries for assistive technology, as the UX standard requires (AC-LST-01; `multiselectable` for MULTIPLE); a List with `Selection: NONE` keeps `list`. The roles `LISTBOX` and `OPTION` are in `Role` (schema export 1.46). The Launcher's results list is a List, so it is a listbox now. Read from the real AT-SPI tree on a private sway (the container is a list box, the entries list items as AccessKit maps `option`).
|
|
399
|
+
- The `list` adapter moves to tess-behavior 8a10ac4 (36 list cases): the two accessibility tree cases now pass strict (the roles above); the `active_descendant` variants run on the List (the list takes the focus and the engine moves its own cursor row, which is not readable, so `active` is never seen). Tests only.
|
|
400
|
+
- The preview model (`tess_shell.preview`): `preview(config, overrides, outputs, appearance)` returns what the shell would show for a configuration as plain data (`to_dict()`), by the shell's own pipeline and placement, with no window and no toolkit (ADR-0006): the outputs, the Monitor blocks and the outputs they land on, every Bar, Panel and Frame with its anchor, size, margin, exclusive zone, layer and status (`ok` or `skipped: reason`), the desktop area of each output after the exclusive zones, the theme's tokens, the blocks of each surface with module calls as placeholders (no live data), the Popups as static cards and the findings `check` prints. `overrides` (path to text) are read instead of the files, also for files that do not exist yet: an overlay behind every place that reads a configuration file (`config/overlay.py`); the shell itself, with none set, reads the disk as before. A configuration with errors still gives what resolves. The parse of the shipped files is kept (they do not change while the shell runs). The shape is in the guide ("The preview model") and in the schema export under `preview` (export 1.47, `PREVIEW_VERSION` 1).
|
|
401
|
+
- Preview model, second slice: a Frame in the model has `meld_panels` (each melded Panel with its side, alignment, `rect` in the Frame's opening, `peek` and blocks) and its `edges` strips have a `rect`; the desktop area accounts for a strip's own thickness (a peeking strip reserves its sliver); a Panel has `animation`, `hide_after` and `keyboard`. Keys are added, so `PREVIEW_VERSION` stays 1.
|
|
402
|
+
- Preview model, shell choice: `preview(config, overrides, outputs, appearance, shell=None, shells=None)` shows the main shell by default, one other shell file with `shell=` or several with `shells=` (a path, or the file's name as `findings` write it); `list_shells(config, overrides)` lists the shell files (`file`, `name`, `main`, `surfaces_only`, `monitors`); the model gains `shells` (every file, with `selected`), a `shell` tag `{name, file}` on every monitor, surface and popup and on every `desktop` entry (one per shell and output, never a union), and a `label` on surfaces (`Bar (Top_Bar)`). A shell file made to be imported (no `Monitor`) is drawn as one Monitor on every output: its `ShellDef` keeps its surfaces (`loose`). Keys are added: `PREVIEW_VERSION` stays 1; a `desktop` entry now always has `shell`.
|
|
403
|
+
- Docs: the README, the install guide and the home page say plainly that the shell is Linux only, by design (KDE Plasma on Wayland; inotify, D-Bus, systemd user units, layer-shell). No code or behaviour changed: the source and tests held no macOS or Windows branches.
|
|
404
|
+
- Density on every block (slice 1 of 2; Spacing and Density, ADR-0029): every block takes `Density: DEFAULT | COMPACT | DENSE`, a stylesheet `Rule` can give a kind of block its `Density`, and it cascades: a number written on a block beats any level, a block's own `Density` beats its nearest ancestor's, that beats the surface's own, that beats the app density (`Appearance.Density`, COMPACT unless changed). It picks the `$density.*` tokens the block and everything under it read (`model.look.resolve`, one Look per level built once per resolve). Known deviations, in the guide: a Popup takes the app density (or its own), not its opener's; a module reads its surface's level until the second slice makes it follow the block its call is written in. Schema export 1.48.
|
|
405
|
+
- Density on every block, slice 2: a module call follows the cascade too: its slots (`<| density.* |>`) read the level of the place the call is written in (the nearest block above it with a `Density`), or of the call's own `Density`, and its layout inherits it (`Use.density`, set by the expander; `LiveTree` reads the Look at that level). Only the known deviation of Popups (they take the app density, not their opener's) remains. No schema change.
|
|
406
|
+
- Density on every block, slice 3: a Popup (a menu, a tooltip, a submenu) opens at its own `Density` if it writes one, else at the effective density of the block it opened from (the cascade of the blocks above it; `resolve` keeps the level in force on the block), else the Popup it is a submenu of, else its surface's, else the app density (ADR-0029, AC-DEN-12). Before, a Popup always took the app density. Schema export 1.49 (the key's doc text).
|
|
407
|
+
- Preview model v2 (`tess_shell.preview`, additive: `PREVIEW_VERSION` stays 1; no schema bump, the export's `preview` text gains the new keys): `preview(..., measure=False)`; `measure=True` or a list of surface, strip and Popup names lays them out headless with the shell's binder (`preview_measure`, no compositor, no module running) and gives every block a `layout` rectangle in the surface body's own pixels, a content-sized surface its real `rect` (padding and border included), and the surface `measured: true`; a module's text that its Python would fill is measured with a sample (`placeholder: true`); a surface that cannot be laid out keeps its declared sizes with a `preview-measure-failed` warning. Always: `density` (the cascade's level) on every block, module, surface, Panel and Popup; `text`, `placeholder` and `colors` (`fill`, `foreground`) on blocks; `resolved` (`texts`, `icons`) on measured modules; `open` (`attach`, `alignment`, `gap`, `adjust`, `grab`) and, measured, `size` on Popups.
|
|
@@ -101,7 +101,7 @@ installed release declares in its metadata (License-Expression, License or the
|
|
|
101
101
|
"License ::" classifier) and the one in its dist-info/licenses file, where it
|
|
102
102
|
has one.
|
|
103
103
|
|
|
104
|
-
* tesserae-engine >=0.6.
|
|
104
|
+
* tesserae-engine >=0.6.13,<0.7: MIT. https://github.com/mindderivative/tess-re
|
|
105
105
|
(bundled assets: section 2)
|
|
106
106
|
|
|
107
107
|
* tesserae-el >=0.2.0,<0.3: MIT. https://github.com/mindderivative/tess-el
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tesserae-shell
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Tesserae Shell: build desktop shells (bars, panels, docks, launchers, OSDs) from TDL files.
|
|
5
5
|
Project-URL: Repository, https://github.com/mindderivative/tess-shell
|
|
6
6
|
Author: Mind Derivative
|
|
@@ -20,7 +20,7 @@ Requires-Dist: loguru<0.8,>=0.7.3
|
|
|
20
20
|
Requires-Dist: pillow<14,>=11
|
|
21
21
|
Requires-Dist: tesserae-dl<0.3,>=0.2.0
|
|
22
22
|
Requires-Dist: tesserae-el<0.3,>=0.2.0
|
|
23
|
-
Requires-Dist: tesserae-engine<0.7,>=0.6.
|
|
23
|
+
Requires-Dist: tesserae-engine<0.7,>=0.6.13
|
|
24
24
|
Requires-Dist: tesserae-utils[image]<0.3,>=0.2.1
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@ Tesserae Shell is a tool for building desktop shells (bars, panels, docks, launc
|
|
|
34
34
|
|
|
35
35
|
## Install
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Tesserae Shell is **Linux only**, by design: it needs a KDE Plasma desktop on Wayland (KWin) and Python 3.14 or newer. There is no macOS or Windows version and none is planned. (The toolkit `tess-ui` and the engine `tesserae-engine` it draws with are cross-platform; the shell is not.)
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
40
|
uv tool install --python 3.14 tesserae-shell # or: pipx install --python python3.14 tesserae-shell
|
|
@@ -8,7 +8,7 @@ Tesserae Shell is a tool for building desktop shells (bars, panels, docks, launc
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Tesserae Shell is **Linux only**, by design: it needs a KDE Plasma desktop on Wayland (KWin) and Python 3.14 or newer. There is no macOS or Windows version and none is planned. (The toolkit `tess-ui` and the engine `tesserae-engine` it draws with are cross-platform; the shell is not.)
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
uv tool install --python 3.14 tesserae-shell # or: pipx install --python python3.14 tesserae-shell
|
|
@@ -8,6 +8,7 @@ from dataclasses import dataclass
|
|
|
8
8
|
from typing import Literal
|
|
9
9
|
|
|
10
10
|
Scheme = Literal["default", "dark", "light"]
|
|
11
|
+
Density = Literal["default", "compact", "dense"] # Spacing and Density (ADR-0002)
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@dataclass(frozen=True, slots=True)
|
|
@@ -19,6 +20,12 @@ class Appearance:
|
|
|
19
20
|
animations: bool = True # ``org.gnome.desktop.interface`` ``enable-animations``
|
|
20
21
|
icon_theme: str | None = None # ``org.gnome.desktop.interface`` ``icon-theme``
|
|
21
22
|
font_family: str | None = None # the family of ``org.gnome.desktop.interface`` ``font-name``
|
|
23
|
+
# the density level of the sizes a module reads (``density.*`` tokens): the shell's own setting
|
|
24
|
+
# (``Appearance.Density``), never the desktop's, so it is kept when the portal speaks
|
|
25
|
+
density: Density = "compact"
|
|
26
|
+
# ``Appearance.Scheme`` of settings.tdl when it is LIGHT or DARK: the user's own choice, which
|
|
27
|
+
# the desktop's colour scheme does not change (``scheme`` above is then this)
|
|
28
|
+
scheme_override: Scheme | None = None
|
|
22
29
|
|
|
23
30
|
@property
|
|
24
31
|
def reduced_motion(self) -> bool:
|
|
@@ -12,6 +12,7 @@ import difflib
|
|
|
12
12
|
import re
|
|
13
13
|
from collections.abc import Callable, Mapping, Sequence
|
|
14
14
|
from dataclasses import dataclass, field
|
|
15
|
+
from functools import partial
|
|
15
16
|
from types import SimpleNamespace
|
|
16
17
|
from typing import TYPE_CHECKING, Any
|
|
17
18
|
|
|
@@ -19,7 +20,7 @@ from loguru import logger
|
|
|
19
20
|
|
|
20
21
|
from tess_shell.binder import controls
|
|
21
22
|
from tess_shell.binder.convert import CONVERTERS
|
|
22
|
-
from tess_shell.binder.focus import default_focusable
|
|
23
|
+
from tess_shell.binder.focus import default_focusable
|
|
23
24
|
from tess_shell.binder.marquee import MarqueeRunner
|
|
24
25
|
from tess_shell.binder.model import (
|
|
25
26
|
DECORATIVE,
|
|
@@ -30,7 +31,6 @@ from tess_shell.binder.model import (
|
|
|
30
31
|
MARQUEE,
|
|
31
32
|
MARQUEE_TEXT,
|
|
32
33
|
NO_POINTER_BLOCKS,
|
|
33
|
-
TAB_INDEX_MAX,
|
|
34
34
|
BindError,
|
|
35
35
|
BindFailed,
|
|
36
36
|
ForNode,
|
|
@@ -40,6 +40,7 @@ from tess_shell.binder.model import (
|
|
|
40
40
|
Number,
|
|
41
41
|
Origin,
|
|
42
42
|
SlotValue,
|
|
43
|
+
Text,
|
|
43
44
|
TokenRef,
|
|
44
45
|
UseNode,
|
|
45
46
|
Value,
|
|
@@ -152,6 +153,7 @@ class Wire:
|
|
|
152
153
|
# of the module root above it that a part shows too
|
|
153
154
|
checked: bool = False
|
|
154
155
|
selected: bool = False
|
|
156
|
+
invalid: bool = False # a field the module marks ``Invalid``: its ``:invalid`` look holds
|
|
155
157
|
owned: bool = False # a control sets ``checked`` and ``selected``, not the block's props
|
|
156
158
|
in_checked: bool = False
|
|
157
159
|
in_selected: bool = False
|
|
@@ -194,6 +196,12 @@ class Wire:
|
|
|
194
196
|
return self.tip_key or self.tip_auto
|
|
195
197
|
|
|
196
198
|
always: dict[str, list[Callable[[], None]]] = field(default_factory=dict)
|
|
199
|
+
# told when the node gains keyboard focus with a ring (``True``) or loses focus (``False``): a
|
|
200
|
+
# tooltip opens at once on a keyboard focus (Tooltip > AC-TIP-10, ADR-0011)
|
|
201
|
+
focus_hooks: list[Callable[[bool], None]] = field(default_factory=list)
|
|
202
|
+
# a block's ``On_Key_Down``: given the key event that reaches the block (not a text input's
|
|
203
|
+
# own, which ``_ensure_field_events`` wires)
|
|
204
|
+
key_hook: Callable[[Any], None] | None = None
|
|
197
205
|
# a text input: its text as of the last ``change`` its user made or the last set by the shell,
|
|
198
206
|
# which a commit that changed nothing (``Max_Length`` refused it) equals
|
|
199
207
|
field_text: str | None = None
|
|
@@ -337,7 +345,10 @@ class Wire:
|
|
|
337
345
|
def down(event: Any) -> None:
|
|
338
346
|
key = getattr(event, "key", None)
|
|
339
347
|
if key in ("enter", "space") and event.target == tre and not self.blocked:
|
|
340
|
-
|
|
348
|
+
if tre.get("role") == "button":
|
|
349
|
+
self.press_key(key)
|
|
350
|
+
if self.key_hook is not None and event.target == tre and not self.blocked:
|
|
351
|
+
self.key_hook(event)
|
|
341
352
|
|
|
342
353
|
def up(event: Any) -> None:
|
|
343
354
|
if getattr(event, "key", None) == self.held:
|
|
@@ -402,6 +413,8 @@ class Wire:
|
|
|
402
413
|
if visible != self.focused:
|
|
403
414
|
self.focused = visible
|
|
404
415
|
self.refresh()
|
|
416
|
+
for hook in self.focus_hooks:
|
|
417
|
+
hook(visible)
|
|
405
418
|
if self.focus_to is not None:
|
|
406
419
|
self.focus_to.set_focused(visible)
|
|
407
420
|
|
|
@@ -421,6 +434,8 @@ class Wire:
|
|
|
421
434
|
out.update(self.states.get("pressed", {}))
|
|
422
435
|
if self.focused and not self.blocked: # a disabled block shows no ring
|
|
423
436
|
out.update(self.states.get("focused", {}))
|
|
437
|
+
if self.invalid: # over hovered and focused: an invalid field stays in the error colour
|
|
438
|
+
out.update(self.states.get("invalid", {}))
|
|
424
439
|
if self.disabled or (self.part and self.inherited):
|
|
425
440
|
out.update(self.states.get("disabled", {}))
|
|
426
441
|
return out
|
|
@@ -495,7 +510,6 @@ class Entry:
|
|
|
495
510
|
wire: Wire | None = None
|
|
496
511
|
states: dict[str, dict[str, Any]] = field(default_factory=dict) # tre props per style state
|
|
497
512
|
motion: Motion | None = None # what eases when a value of the node changes
|
|
498
|
-
rank: int = 0 # the tre ``tab_index`` the view gave the node (0: its place in tree order)
|
|
499
513
|
|
|
500
514
|
|
|
501
515
|
# the kinds whose nodes always listen for something, and the keys of a block that make it a control
|
|
@@ -506,6 +520,25 @@ _WIRING_KEYS = frozenset(
|
|
|
506
520
|
)
|
|
507
521
|
|
|
508
522
|
|
|
523
|
+
def _pointer_parts(root: Entry) -> list[Entry]:
|
|
524
|
+
"""The parts of the module whose root block is ``root`` (blocks of the same module use that
|
|
525
|
+
declare a ``Part``) that have a ``:hovered`` or ``:pressed`` style."""
|
|
526
|
+
found: list[Entry] = []
|
|
527
|
+
|
|
528
|
+
def walk(entries: Sequence[Entry]) -> None:
|
|
529
|
+
for e in entries:
|
|
530
|
+
if (
|
|
531
|
+
e.typed.owner == root.typed.owner
|
|
532
|
+
and e.typed.part
|
|
533
|
+
and ("hovered" in e.states or "pressed" in e.states)
|
|
534
|
+
):
|
|
535
|
+
found.append(e)
|
|
536
|
+
walk(e.children)
|
|
537
|
+
|
|
538
|
+
walk(root.children)
|
|
539
|
+
return found
|
|
540
|
+
|
|
541
|
+
|
|
509
542
|
def _inert(entry: Entry) -> bool:
|
|
510
543
|
"""Whether a built node needs no wire: it listens for nothing, is nobody's control, has no
|
|
511
544
|
name for a tooltip or a slot to find it by, is not disabled, focusable or checked, and no
|
|
@@ -611,7 +644,19 @@ class View:
|
|
|
611
644
|
self._controls(flat)
|
|
612
645
|
self._sync(self.entries)
|
|
613
646
|
self._marquees(flat)
|
|
614
|
-
|
|
647
|
+
|
|
648
|
+
def _line_height_after(self, node_id: str, converted: dict[str, Any]) -> dict[str, Any]:
|
|
649
|
+
"""A new ``Line_Height`` (pixels) or a new ``Font_Size`` under one: tre's ``line_height``
|
|
650
|
+
is a multiple of the font size, so it is worked out again from the pixels the node has."""
|
|
651
|
+
have = self.applied.get(node_id, {})
|
|
652
|
+
old_font = float(have.get("font_size") or TRE_FONT_SIZE)
|
|
653
|
+
if "line_height" in converted:
|
|
654
|
+
font = converted.get("font_size") or have.get("font_size")
|
|
655
|
+
return {**converted, "line_height": line_ratio(converted["line_height"], font)}
|
|
656
|
+
if "font_size" in converted and have.get("line_height"):
|
|
657
|
+
pixels = float(have["line_height"]) * old_font
|
|
658
|
+
return {**converted, "line_height": line_ratio(pixels, converted["font_size"])}
|
|
659
|
+
return converted
|
|
615
660
|
|
|
616
661
|
def set_expanded(self, node_id: str, open_: bool) -> None:
|
|
617
662
|
"""The accessibility state ``expanded`` of a menu row whose submenu opened or closed."""
|
|
@@ -638,50 +683,13 @@ class View:
|
|
|
638
683
|
walk(self.entries)
|
|
639
684
|
return out
|
|
640
685
|
|
|
641
|
-
def _tab_index_of(self, entry: Entry) -> int | None:
|
|
642
|
-
"""The ``Tab_Index`` of a block: the one a slot last set, else the one it was built with."""
|
|
643
|
-
typed = entry.typed
|
|
644
|
-
if typed.name is None and "Tab_Index" not in typed.props:
|
|
645
|
-
return None
|
|
646
|
-
value = typed.props.get("Tab_Index")
|
|
647
|
-
if typed.name is not None:
|
|
648
|
-
value = self.dynamic.get(typed.name, {}).get("Tab_Index", value)
|
|
649
|
-
if isinstance(value, Number) and isinstance(value.value, int):
|
|
650
|
-
return value.value
|
|
651
|
-
return None
|
|
652
|
-
|
|
653
|
-
def _tab_order(self, flat: list[Entry] | None = None) -> None:
|
|
654
|
-
"""Give tre the Tab order the blocks' ``Tab_Index`` keys ask for (Focus and Keyboard > Tab
|
|
655
|
-
Order). tre walks its focusable nodes with a positive ``tab_index`` first, ascending, and
|
|
656
|
-
then the rest in tree order, so the blocks that have a ``Tab_Index`` get the ranks 1, 2,
|
|
657
|
-
... in the shell's order (ascending, equal ones in document order) and the others keep 0.
|
|
658
|
-
This is derived data, held on the entries and made again at every build and rebuild; tre
|
|
659
|
-
does the walking, nothing runs per frame."""
|
|
660
|
-
if flat is None:
|
|
661
|
-
flat = self._flat()
|
|
662
|
-
indexed = [(e, i) for e in flat if (i := self._tab_index_of(e)) is not None]
|
|
663
|
-
ranks = {
|
|
664
|
-
id(indexed[pos][0]): rank
|
|
665
|
-
for rank, pos in enumerate(tab_order([i for _, i in indexed]), 1)
|
|
666
|
-
}
|
|
667
|
-
changes: list[tuple[TreNode, dict[str, Any]]] = []
|
|
668
|
-
for e in flat:
|
|
669
|
-
want = ranks.get(id(e), 0)
|
|
670
|
-
if want != e.rank and e.tre is not None:
|
|
671
|
-
e.rank = want
|
|
672
|
-
changes.append((e.tre, {"tab_index": want}))
|
|
673
|
-
if changes:
|
|
674
|
-
self.window.apply(changes)
|
|
675
|
-
|
|
676
686
|
def tab_stops(self) -> list[TreNode]:
|
|
677
687
|
"""The focusable nodes in the order Tab visits them (the first is where Tab starts): the
|
|
678
688
|
ones tre's Tab reaches, so a node under a hidden block (``Visible: false``, the content of
|
|
679
689
|
a closed Expander) is not one."""
|
|
680
|
-
stops = [(e.rank or TAB_INDEX_MAX + 1, n, e) for n, e in enumerate(self._flat())]
|
|
681
|
-
stops.sort(key=lambda t: (t[0], t[1]))
|
|
682
690
|
return [
|
|
683
691
|
e.tre
|
|
684
|
-
for
|
|
692
|
+
for e in self._flat()
|
|
685
693
|
if e.tre is not None and e.tre.get("focusable") and _shown(e.tre)
|
|
686
694
|
]
|
|
687
695
|
|
|
@@ -773,6 +781,28 @@ class View:
|
|
|
773
781
|
)
|
|
774
782
|
self._run_click(entry.wire, node, event)
|
|
775
783
|
|
|
784
|
+
def point_fields(self, select: Any) -> None:
|
|
785
|
+
"""The text fields that name the list ``select`` (their ``Active_Descendant`` is the id of
|
|
786
|
+
its block) take its chosen entry as their active descendant, or none when no entry is
|
|
787
|
+
chosen: a screen reader reads that row as the current item while the keyboard stays in the
|
|
788
|
+
field (tre 0.6.10; ADR-0023, proposed)."""
|
|
789
|
+
node_id = next((k for k, n in self.nodes.items() if n is select.tre), None)
|
|
790
|
+
if node_id is None:
|
|
791
|
+
return
|
|
792
|
+
chosen = next(
|
|
793
|
+
(c.tre for k, c in select.keys() if k == select.chosen and c.tre is not None), None
|
|
794
|
+
)
|
|
795
|
+
for e in self._flat():
|
|
796
|
+
if e.tre is None or "Active_Descendant" not in e.typed.props:
|
|
797
|
+
continue
|
|
798
|
+
named = self.dynamic.get(e.typed.name or "", {}).get("Active_Descendant")
|
|
799
|
+
named = named if named is not None else e.typed.props.get("Active_Descendant")
|
|
800
|
+
if not isinstance(named, Text) or named.value != node_id:
|
|
801
|
+
continue
|
|
802
|
+
target = e.wire.focus_target if e.wire is not None and e.wire.focus_target else e.tre
|
|
803
|
+
if target.get("active_descendant") != chosen:
|
|
804
|
+
target.set(active_descendant=chosen)
|
|
805
|
+
|
|
776
806
|
def _controls(self, flat: list[Entry] | None = None) -> None:
|
|
777
807
|
"""Keep one control per block that has one (``Toggles``, ``Slides``, ``Selection_Mode``):
|
|
778
808
|
a new block gets one, a kept block is told what it is now, a block that is gone loses
|
|
@@ -818,6 +848,10 @@ class View:
|
|
|
818
848
|
runner.configure(e.typed, e.wire.blocked if e.wire else False)
|
|
819
849
|
if e.wire is not None:
|
|
820
850
|
e.wire.tooltip_gate = runner.tooltip_gate
|
|
851
|
+
if not runner.hooked: # the pointer over the box pauses the scroll
|
|
852
|
+
runner.hooked = True
|
|
853
|
+
e.wire.add_hook("enter", partial(runner.hover, True), always=True)
|
|
854
|
+
e.wire.add_hook("leave", partial(runner.hover, False), always=True)
|
|
821
855
|
for box, runner in self.runners.items():
|
|
822
856
|
if box not in live:
|
|
823
857
|
runner.stop()
|
|
@@ -856,11 +890,54 @@ class View:
|
|
|
856
890
|
wire.listen()
|
|
857
891
|
if entry.props.get("focusable"):
|
|
858
892
|
wire.listen_focus()
|
|
859
|
-
if str(entry.props.get("role")) == "button":
|
|
893
|
+
if str(entry.props.get("role")) == "button" or "On_Key_Down" in wire.handlers:
|
|
860
894
|
wire.listen_keys()
|
|
895
|
+
if "On_Key_Down" in wire.handlers:
|
|
896
|
+
self._wire_block_keys(entry)
|
|
861
897
|
self._ensure_click(entry)
|
|
862
898
|
if entry.typed.kind == FIELD:
|
|
863
899
|
self._wire_field(entry)
|
|
900
|
+
if entry.typed.owner and not entry.typed.part and _pointer_parts(entry):
|
|
901
|
+
self._wire_parts(entry)
|
|
902
|
+
|
|
903
|
+
def _wire_block_keys(self, entry: Entry) -> None:
|
|
904
|
+
"""A block's ``On_Key_Down``: the key that reaches the focused block, with its modifiers
|
|
905
|
+
and the block's rectangle (a handler opens a menu beside it). The handler is looked up
|
|
906
|
+
when the key arrives, so a reload that changes it needs no new listener."""
|
|
907
|
+
assert entry.wire is not None and entry.tre is not None
|
|
908
|
+
wire, tre = entry.wire, entry.tre
|
|
909
|
+
|
|
910
|
+
def hook(event: Any) -> None:
|
|
911
|
+
handler = wire.handlers.get("On_Key_Down")
|
|
912
|
+
if handler is None or self.sink is None:
|
|
913
|
+
return
|
|
914
|
+
self.sink(handler, "On_Key_Down", Raised(event, self.window, layout_rect(tre)))
|
|
915
|
+
|
|
916
|
+
wire.key_hook = hook
|
|
917
|
+
|
|
918
|
+
def _wire_parts(self, root: Entry) -> None:
|
|
919
|
+
"""A module's root block passes its hover and press on to the module's parts that have
|
|
920
|
+
``:hovered`` or ``:pressed`` styles (``MenuItem::label:pressed``), so a part is styled while
|
|
921
|
+
the pointer is over, or presses, the block it belongs to (a Text takes no pointer itself).
|
|
922
|
+
The parts are looked up when the event arrives, so a rebuild needs no new listener."""
|
|
923
|
+
assert root.wire is not None
|
|
924
|
+
wire = root.wire
|
|
925
|
+
if "parts" in wire.wired:
|
|
926
|
+
return
|
|
927
|
+
wire.wired.add("parts")
|
|
928
|
+
|
|
929
|
+
def follower(event: str) -> Callable[[], None]:
|
|
930
|
+
def run() -> None:
|
|
931
|
+
current = next((e for e in self._flat() if e.wire is wire), None)
|
|
932
|
+
if current is not None:
|
|
933
|
+
for part in _pointer_parts(current):
|
|
934
|
+
if part.wire is not None:
|
|
935
|
+
getattr(part.wire, event)()
|
|
936
|
+
|
|
937
|
+
return run
|
|
938
|
+
|
|
939
|
+
for event in ("enter", "leave", "down", "up"):
|
|
940
|
+
wire.add_hook(event, follower(event))
|
|
864
941
|
|
|
865
942
|
def _wire_field(self, entry: Entry) -> None:
|
|
866
943
|
"""A TextField's box: a press gives the text input the focus, and the box's hover and
|
|
@@ -979,6 +1056,7 @@ class View:
|
|
|
979
1056
|
if not e.wire.owned: # no control: the flags are the block's own props
|
|
980
1057
|
e.wire.checked = bool(e.props.get("checked"))
|
|
981
1058
|
e.wire.selected = bool(e.props.get("selected"))
|
|
1059
|
+
e.wire.invalid = bool(e.props.get("invalid"))
|
|
982
1060
|
# a text input is a part of its field: it shows ``disabled`` when the field is
|
|
983
1061
|
part = bool(e.typed.part) or e.typed.kind in (FIELD_INPUT, MARQUEE_TEXT)
|
|
984
1062
|
e.wire.sync(own, inherited, part, *seen)
|
|
@@ -1140,6 +1218,7 @@ class View:
|
|
|
1140
1218
|
converted = _convert(key, key_row, value, errors)
|
|
1141
1219
|
if converted is None:
|
|
1142
1220
|
continue
|
|
1221
|
+
converted = self._line_height_after(node_id, converted)
|
|
1143
1222
|
if not key_row.tre: # a key that gives tre nothing: a control reads it
|
|
1144
1223
|
self.dynamic.setdefault(node_id, {})[key] = value
|
|
1145
1224
|
touched.add(node_id)
|
|
@@ -1205,8 +1284,6 @@ class View:
|
|
|
1205
1284
|
ctl.sync()
|
|
1206
1285
|
if touched:
|
|
1207
1286
|
self._sync(self.entries)
|
|
1208
|
-
if any(key == "Tab_Index" for _, key, _ in changes):
|
|
1209
|
-
self._tab_order()
|
|
1210
1287
|
return errors
|
|
1211
1288
|
|
|
1212
1289
|
def _runner_of(self, node_id: str) -> MarqueeRunner | None:
|
|
@@ -1245,6 +1322,14 @@ def _suggest(word: str, choices: Sequence[str]) -> str:
|
|
|
1245
1322
|
_UNRESOLVED = (SlotValue, TokenRef) # a value the model should have resolved before binding
|
|
1246
1323
|
|
|
1247
1324
|
|
|
1325
|
+
TRE_FONT_SIZE = 16.0 # the size tre sets text in when none is given
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
def line_ratio(pixels: float, font_size: float | None) -> float:
|
|
1329
|
+
"""tre's ``line_height`` (a multiple of the font size) for a line ``pixels`` high."""
|
|
1330
|
+
return float(pixels) / float(font_size or TRE_FONT_SIZE)
|
|
1331
|
+
|
|
1332
|
+
|
|
1248
1333
|
def _convert(key: str, row: KeyRow, value: Value, errors: list[BindError]) -> dict[str, Any] | None:
|
|
1249
1334
|
if isinstance(value, _UNRESOLVED):
|
|
1250
1335
|
if isinstance(value, SlotValue):
|
|
@@ -1283,18 +1368,33 @@ def convert_states(node: Node, errors: list[BindError]) -> dict[str, dict[str, A
|
|
|
1283
1368
|
converted = _convert(key, key_row, value, errors)
|
|
1284
1369
|
if converted is not None:
|
|
1285
1370
|
props.update(converted)
|
|
1371
|
+
if "line_height" in props:
|
|
1372
|
+
font = props.get("font_size") or _written_font_size(node)
|
|
1373
|
+
props["line_height"] = line_ratio(props["line_height"], font)
|
|
1286
1374
|
if props:
|
|
1287
1375
|
out[state] = props
|
|
1288
1376
|
return out
|
|
1289
1377
|
|
|
1290
1378
|
|
|
1379
|
+
def _written_font_size(node: Node) -> float | None:
|
|
1380
|
+
"""The ``Font_Size`` the block itself was written with (a state that sets only
|
|
1381
|
+
``Line_Height`` is a multiple of that), or ``None``: tre's own."""
|
|
1382
|
+
for values in (node.style, node.props):
|
|
1383
|
+
value = values.get("Font_Size")
|
|
1384
|
+
if isinstance(value, Number):
|
|
1385
|
+
return float(value.value)
|
|
1386
|
+
return None
|
|
1387
|
+
|
|
1388
|
+
|
|
1291
1389
|
def entry_states(node: Node) -> dict[str, dict[str, Any]]:
|
|
1292
1390
|
"""What a built node shows and listens for: its converted state styles. A kind tre sends no
|
|
1293
|
-
pointer events (a ``Text``) has no ``hovered`` or ``pressed
|
|
1391
|
+
pointer events (a ``Text``) has no ``hovered`` or ``pressed``, unless it is a part of a module
|
|
1392
|
+
(``MenuItem::label:pressed``): its root passes its hover and press on to it
|
|
1393
|
+
(``View._wire_parts``); its ``disabled`` still shows."""
|
|
1294
1394
|
if not node.states:
|
|
1295
1395
|
return {}
|
|
1296
1396
|
states = convert_states(node, [])
|
|
1297
|
-
if node.kind in NO_POINTER_BLOCKS:
|
|
1397
|
+
if node.kind in NO_POINTER_BLOCKS and not node.part:
|
|
1298
1398
|
return {s: v for s, v in states.items() if s in FLAG_STATES}
|
|
1299
1399
|
return states
|
|
1300
1400
|
|
|
@@ -1392,6 +1492,8 @@ def _plan(
|
|
|
1392
1492
|
props.setdefault(name, default)
|
|
1393
1493
|
props.update(row.fixed)
|
|
1394
1494
|
props.update(extra)
|
|
1495
|
+
if "line_height" in props: # written in pixels, tre takes a multiple of the font size
|
|
1496
|
+
props["line_height"] = line_ratio(props["line_height"], props.get("font_size"))
|
|
1395
1497
|
if node.kind == "Spacer": # no pointer events unless it has a click to run
|
|
1396
1498
|
props.setdefault("hit_testable", bool(_POINTER_EVENTS & node.handlers.keys()))
|
|
1397
1499
|
if node.kind in DECORATIVE: # an image or a shape is not announced unless it has a Label
|