Trame A fast, native, immediate-mode GUI toolkit in Formula.

Changelog

Every version of Trame, newest first. The format is Keep a Changelog, the versions follow semantic versioning. What comes next is in the roadmap.

523 versions
0.381.02026-12-03 23:21 UTCrelease

Removed

  • The Glass finish (Finish.Glass, RELIEF_GLASS, Face_Paint.Gloss, Row_Paint.Glass): the settings offer Machined, Edged, Flat and Gradient. A saved appearance.finish of glass is no longer a choice: the program shows its default finish. The Aero theme now brings the Gradient finish.
0.380.32026-12-03 22:45 UTCrelease

Fixed

  • ui.palette_ranked_for: it is no longer true for a list ranked from a searching source's answer to another query (a query typed again at a new opening, after one that found nothing), while the source still reads; a test then read 0 rows for a query that finds a file.
0.380.22026-12-03 22:12 UTCrelease

Fixed

  • toolbox.vt_dedup keeps the Rust library's imports: in 0.380.1 the archive it wrote pointed every symbol of an import library's members (__imp_ProcessPrng, __NULL_IMPORT_DESCRIPTOR_kernel32, kernel32_NULL_THUNK_DATA...) at the first member of the same name, and a Windows link with Feature.Vt failed on them. The symbols now keep their own members, found by offset.
0.380.12026-12-03 21:16 UTCrelease

Added

  • store.writer_put_merged(&w, data, merge, user): the next write reads the file first, on the worker, and writes what merge makes of the file and the content put (store.Merge_Proc).

Removed

  • ui.CHOICE_CLOSE_BOUND: ui.choice_memory_close no longer waits for a read with a bound (see Fixed).

Fixed

  • ui.choice_memory_close keeps a choice made before the file was read, however busy the chores are: the writer reads the file on its own thread just before its write and merges it. The close waited 2 s for a read on the shared chores, and a choice was lost when they were held.
  • A strip's tabs give way widest first: in a strip a little short for its tabs, one cap comes down over the widest, as a browser's tabs; a short title keeps all its words while a long one is cut. Before, each tab gave in proportion to what it could, and a short one lost its last letters beside wide ones.
  • Windows: a program with Feature.Vt and a Rust library links: the builtins that Rust's compiler_builtins and libghostty-vt's compiler_rt both define are weak in COFF, and radlink (Error 024) and link.exe (LNK1227) refused them, /FORCE:MULTIPLE or not. toolbox.vt_dedup now takes them out of the Rust library before the link (the toolkit's gt_native.lib, or a carried library named in the new Link.rust_libs), and Feature.Vt no longer adds /FORCE:MULTIPLE. See docs/toolbox.md.
0.380.02026-12-03 20:34 UTCrelease

Added

  • ui.dock: the usual keys of tabs: from anywhere in a stack, Ctrl+Page Down / Page Up show the next or the previous panel, Ctrl+Shift+Page Down / Page Up move the panel shown along the strip, Alt+1 to Alt+8 show the first to eighth, Alt+9 the last. platform.Key.Grave is the key ` (a terminal panel's usual key), on Linux and Windows.

Fixed

  • ui.dock: a tab's close button follows its words: 0.2 em after the words or their "…" (DOCK_TITLE_CLOSE_GAP_EM), not a whole pad: a truncated tab had a wide blank before its cross.
0.379.02026-12-03 20:05 UTCrelease

Added

  • Sticky parent rows in ui.tree and ui.file_tree: while a tree scrolls, open ancestor branches stay pinned at the top of the viewport (capped at 5 rows and 40 % of the viewport height), glide smoothly off as their last child leaves view, and remain interactive (click to reveal, click the chevron to collapse, right-click for the context menu, and drop targets). Keyboard scrolling and ui.tree_reveal reserve room for the sticky stack so revealed rows are never hidden behind it. Tree.no_sticky disables sticky rows, and ui.tree_sticky lets callers customize sticky rows with the same Tree_Row_Options.

Fixed

  • syntax: Formula's label: Formula is named with a capital, as every other language of the list.
  • dbus: connection allocations stay on the connection's allocator: dbus.Conn keeps the allocator passed to connect_bus and connect_bus_address, and uses it for unique_name, waiters, reply_arenas, subscriptions, exported objects, and conn_close. On Linux, platform.session_bus no longer leaks 4 blocks into the first testkit/session test's tracking allocator.

Security

  • toolbox: Windows builds link with /DEPENDENTLOADFLAG:0x800: linker_flag adds WINDOWS_LOAD_SYSTEM32 (/DEPENDENTLOADFLAG:0x800) to every Windows build (and tk adds it to shipped Windows demos and apps), so Windows loads statically imported DLLs from System32 only and never from a download folder before base.dll_search_restrict runs. Windows test builds omit it so tests beside WARP's d3d10warp.dll keep loading it.
0.378.02026-12-03 19:51 UTCrelease

Added

  • terminal: a local terminal in one call per build: terminal.start runs a command, or the user's shell, on a pseudo-terminal and returns at once; terminal.build shows it in gt:term's grid with Ghostty's emulation (gt:vt), and terminal.event sends it the keys and the mouse. The child is told the grid's size once the grid rests, its end comes back with its code (on_exit), TERM is xterm-256color and COLORTERM truecolor unless the program says otherwise. Nothing waits on the interface's thread, and destroy returns at once, even while the child still writes. text and row_text read what the child wrote. See docs/terminal.md.
  • ui.task_link: a counted link from a thread of the program's own to a State's interface thread, which outlives the State: task_link_post runs a call at the next build, or its lost when the State is gone; task_link_release lets it go. For a reader that lives as long as a child. See docs/tasks.md.
  • gt:vt: a terminal's emulation, libghostty-vt (Ghostty's), moved from Tower, as the source of gt:term's grid: vt.create, feed, resize, recolour, source, title, text, and callbacks for the bytes for the child (typed, pasted, the answers to its queries), its title and its new size. A program takes it with toolbox.Feature.Vt (GT_VT=true, the native part vt, Ghostty's licence in its notices). tk build_native -features:vt builds or fetches libghostty-vt beside gt_native (Ghostty and Zig pinned); the Nix package .#native holds it, and a release publishes gt-vt-<os>-x64. tk gen_vt writes the binding from its headers ([docs/vt.md](docs/vt.md)).
  • terminal.Group: a program's terminals and its windows' events: the keys to the grid with the keyboard, the pointer to the grid under it, a press's release to the grid that took it, copy and paste done, a menu to on_menu. Tower's own routing, moved here.
  • pty: a child on a pseudo-terminal: pty.start runs a command on a pseudo-terminal of the size given (Linux: its controlling terminal; Windows: a pseudo console), so it prints colours, edits its line and answers isatty. read, write, resize, stop, wait (its exit code) and destroy are blocking calls for a worker. The child runs as a process tree that ends with the program; process.tree_start_terminal starts such a tree. See docs/pty.md.
0.377.02026-12-03 19:01 UTCrelease

Added

  • syntax: Lex and formula: .lex files are coloured as Lex (its reserved words, // comments) and .fm files as formula (its keywords and types, nested /* */ comments); guess knows both. A block comment inside a block comment now ends at its own close in Odin and formula (Language.block_nests).

Changed

  • term: a grid resized fast stays still: the grid is anchored at its box's top left (past Style.pad), not centered, and keeps its columns and rows while the box moves; once the box has rested for REST_MS (150 ms) it takes the new size once, and the source is told it once. A shell resized fast no longer shakes nor folds its lines at each frame. The whole box, the band past the cells included, is painted with the screen's own background, not Style.background. ZOOM_REST_MS is now REST_MS: it covers the zoom and the box.
0.376.02026-12-03 16:33 UTCrelease

Added

  • ui.palette_files_root: the files source of the palette opens the index of a folder on a chore and closes it when the folder changes or at its destroy. A late answer, for a folder asked before or a source destroyed meanwhile, is closed and never taken. ui.palette_files_frecency_dir gives the suite's frecency folder.
0.375.12026-12-03 10:40 UTCrelease

Fixed

  • Windows blank/white window after hiding and reopening: platform.hide_window and platform.show_window on Windows now bump Window.shown_again so host.host_frame calls render.surface_remake (recreating the Vulkan surface and swap chain when the Vulkan fallback is active and clearing hidden); cpu_stage_begin and d12_rest_end now preserve the HWND and clear lost before remaking the swap chain and uploading textures and heaps after device rest; and damage_skips_present requires presented_full so a newly created or remade swap chain never skips its first full present.
  • text_reveal bubble padding on text_pad = 0 labels and tabs: ui now floors the horizontal and vertical padding inside the "..." text-reveal popup (normal and dense), keeping the revealed text and Copy/Close buttons inset cleanly from all four borders even when opened from ui.tabs_ex tabs or other zero-padded labels.
  • Exact horizontal continuity across adjacent highlighted text runs: ui.text_edit (draw_highlighted_line) and ui.rich_paragraph (rich_paint_text) no longer round each colored run's starting x to integer logical pixels, removing ±1 px seam jitter between adjacent syntax-highlighted tokens and rich-text fragments (especially at fractional DPI scales such as 1.25×).
0.375.02026-12-02 22:31 UTCrelease

Changed

  • Linux linker dead-code stripping (-Wl,--gc-sections): toolbox.LINUX_LINK now passes -Wl,--gc-sections alongside -Wl,--allow-multiple-definition so Linux binaries linking the all-features prebuilt libgt_native.a strip unused native crates just like MSVC /OPT:REF on Windows.
  • Settings descriptions in hover tooltips: prefs_page now keeps setting rows to a single line with the setting name and its control, showing the setting description (and any restart note) in a wrapped hover tooltip after Feel.tooltip_delay_ms (and exposing it to screen readers via the title's accessibility description) instead of rendering it inline under every row. Locked settings still show only their brief policy or command-line lock reason inline, and search continues to match descriptions. Added ui.hovered_box_for(b) for delayed hover tooltips on non-clickable boxes and widened ui.TOOLTIP_MAX_WIDTH_EM to 28.
0.374.02026-12-02 21:22 UTCrelease

Added

  • Prebuilt gt_native release archives and Nix native package: flake.nix now exports packages.x86_64-linux.native (pushed to cache.froment.software), releases publish verified gt-native-windows-x64.zip and gt-native-linux-x64.tar.gz (glibc 2.36) archives with .sha256 and source STAMP, and tk build_native / toolbox.build_native resolve GT_NATIVE_PREBUILT, local STAMP, or the matching release archive before falling back to local Cargo builds (using non-LTO profile.ci for non-release builds; set GT_NATIVE_BUILD_LOCAL=1 to force local compilation).

Changed

  • Smaller Mermaid builds: gt_mermaid now compiles only merman's svg renderer and the 11 standard Mermaid diagram families (flowchart, sequence, class, state, er, gantt, pie, mindmap, timeline, git-graph, xychart) with opt-level = "z", dropping the extra diagram families and Cytoscape/ELK layout engines to shrink libgt_native.a by ~15.8 MiB (-21%).
0.373.02026-12-02 14:28 UTCrelease

Added

  • platform.is_window_occluded and process.warm_defender: Windows now detects hidden, minimized, DWM-cloaked, and z-order-covered windows via SetWinEventHook and an exact opaque rectangle-union check so gt:host pauses animations while covered and wakes immediately when uncovered; process.warm_defender warms Windows Defender's image scan cache on newly installed or updated binaries off the interface thread (CREATE_SUSPENDED | CREATE_NO_WINDOW).
  • The compressed Direct3D 12 runtime inside the program: the Agility SDK's D3D12Core.dll is compressed with gt:flate into every Windows program, verified by SHA-256 on warm starts without decompressing, and extracted and flushed once to %LOCALAPPDATA%\gui_toolkit\d3d12; no DLL stands beside the program. render.d3d12_runtime() says which runtime made the device.
  • The first frame on the CPU and the device at rest on Windows (Direct3D 12): a window shows its first picture before its device is made (platform.show_pixels: a layered popup over the client area, translucent windows included), about 70 ms sooner on WARP; a program whose windows are all hidden lets its device go (render.rest, host's Shared.rest_after), and its textures, heaps and settings come back with the next frame.
  • Vulkan on Windows: a program built with -define:TOOLKIT_RENDER=vulkan draws its Win32 windows with the toolkit's Vulkan renderer (opaque windows: they keep their GDI surface, platform.gdi_presents()), on a graphics card's driver or on Mesa's lavapipe. render.vulkan_can_draw says whether a Vulkan device can draw, without making one, for a program that picks its renderer when it starts.
  • draw.Text_Mark, Context.text_marks: a test reads the size on the target (pixels per em), the pen and the glyph count of each text run drawn in a frame, whether its glyphs come from Slug outlines, the glyph cache or the font's bitmaps. Off by default (nil).
  • ui.flow's items: where an item of its own size sits in the height of its line (.Start, .Center by default, .End), so cards of different heights line up their titles.
  • Tabs reordered by dragging (Tabs_Options.reorder, in ui.tabs_ex and a tab_panel): a tab held and dragged along its strip takes another place while the others slide out of its way, tabs of different widths included; the strip scrolls when the tab reaches its edge, Escape puts it back, Ctrl+Shift+Left and Right move the focused tab. Tabs_Result.moved (ui.Tab_Move) gives {from, to} when the tab is let go, and selected is already the chosen tab's index after the move. A click still only chooses. With it: ui.strip_nudge, ui.reorder_index_after, ui.reorder_cancel, ui.reorder_dragged, ui.reorder_released.
  • Curved and freehand arrows in the mark editor: a selected arrow has a round handle at its middle; drag it to bend the arrow through that point (Shift: a symmetric arc; a double click: straight again). The Arrow tool's bar offers a freehand path: the arrow follows the pointer, its path simplified and smoothed at the release, its head along its end. Both are moved, nudged, undone, hit along their curve and flattened into the picture as drawn.
  • Colour picker looks and stepping in a colour's text: ui.color_picker takes a look (Color_Picker_Look): the square as before, a wheel (a disc of hue and saturation, ui.hue_sat_picker, with a brightness bar), and a pro look whose model switch (RGB, HSL, HSV, OKLCH) gives a track and a number per component, each track the colour across its component (ui.color_bar). The picker keeps the recent colours a program marks as used (ui.color_pick_keep) and shows them as swatches. In a colour's text, Up and Down step the component at the caret, by its own unit and in its range, a hue wrapping and a hex pair stepping as a byte (ui.line_edit_color_step, ui.color_step_text); the picker's field does it in every look. A dragged number's field (ui.drag_number) has the theme's control corners, and the picker's format switch shows "OKLCH" whole. Every part of the picker (the square, the bars, the swatches) shows the exact colour of each place, mixed in sRGB values as CSS mixes it; mixed in linear light it came out lighter.
  • The Vulkan backend's remaining calls: render.video_convert draws video pictures (I420, NV12, and 10-bit planes where the device samples them), application shaders draw from their SPIR-V (App_Shader_Desc.spirv, written by tools/shaders app beside the DXBC), render.set_gpu_timing and render.set_gpu_profile measure the GPU, a window draws with the depth pass, render.rest lets the device go, and the pipelines compiled are kept in ~/.cache/gui_toolkit/vulkan for the next start.
  • Vulkan windows: a program draws into its Wayland and X11 windows, a second window and the device made early included. A frame of a region names its rectangles to the compositor (render.present_regions_supported, render.present_rects_sent), so that only they are composed again. tk desktop_tests runs the window tests on it, under the validation layer.
  • A program whose windows are all hidden lets its graphics device go: after 30 s with no window shown (host.Shared.rest_after; negative: never), the renderer releases its device, adapter, instance and surfaces, and NVIDIA's Linux driver stops waking the process about 220 times a second. Showing a window makes the device again on a thread; the window's first frame takes it. host.rest rests at once; render.rest, render.wake, render.resting and render.has_device are the renderer's, and platform.wait_deadline_set gives the thread's waits the deadline that counts the time. Linux only for now.
  • A Vulkan 1.3 renderer of the toolkit's own: Linux's renderer (Windows' with -define:TOOLKIT_RENDER=vulkan) draws textures, layers, filters, Slug text, pictures, read-back and capture with the same shaders, as SPIR-V written ahead of time. TOOLKIT_VULKAN_VALIDATION=1 turns on the validation layer, whose messages fail a test; tools/run_tests runs every Linux test on lavapipe with it.

Changed

  • render.canvas_read_cancel(r, rd) takes the renderer: on Direct3D 12 the read-back's buffer goes once the GPU has written it.
  • Windows draws with Direct3D 12 and falls back to Vulkan at runtime: the default Windows build (TOOLKIT_RENDER=auto; d3d12 and vulkan stay available as single-backend overrides) probes Direct3D 12 Shader Model 6.9 on display-driving hardware adapters first and switches to Vulkan before opening the first window (platform.set_gdi_presents(true)) when an older driver lacks Shader Model 6.9 and Vulkan 1.3 is available. Direct3D 12 keeps partial redraw, DirectComposition (translucent windows, under_children, fixed_size), the frame latency object, video planes, application shaders, GPU times, pipeline cache, device recovery and the 2D canvas.
  • Docked views have one head: a view alone and a stack of tabs side by side now have the same bar: the same height, the same hairline along the bottom, the same small words on one baseline, and the same controls (Minimise, Maximise, the menu and Close) at the right. A view alone shows its title; several show compact tabs. Float, Open in a window and Re-attach are in the "…" menu, no longer icons on the strip. The lone view's grip is gone: drag its title.
    • Tabs_Options.compact and tabs_over(style, sf, compact): the same compact tabs for a program's own strip.
  • software names the software device: render.init_offscreen(software = true), render.preload_device(software = true) and Renderer.software replace warp: WARP on Direct3D 12, lavapipe on Vulkan. A Linux machine with no driver for its graphics card draws with lavapipe, which the package the no-graphics sentence names installs; there is no OpenGL fallback.
  • Shaders in Bento. The renderer's shaders are written in Bento and compiled ahead of time by Shokado to SPIR-V (Vulkan) and DXIL (Direct3D 12), one blob per entry point: naga and DXC are gone. An application shader is now a Bento module app that exports shade (docs/shaders.md): App_Shader_Desc takes bento, spirv, dxil and hash, and odin run tools/shaders -- app <name> <file.bento> <dir> writes its .spv, .dxil and .sha256.
  • Docked views wear the view's controls and meet edge to edge: a stack's tab strip ends with the small controls a lone panel's header has (Minimise, Maximise or Restore, the view's menu "…", Close), never the window's caption buttons, which stay a window's own title bar's. The handles between zones and stacks are their hairline alone: two docked views, or a view and the content, are one line apart with no band between them. The showcase's Views page is edge to edge.
  • A program's tests draw on lavapipe: the toolbox's test command gives the tests Mesa's software Vulkan driver unless they have it already, as a tool's program session does. A machine with no graphics driver of its own runs the window tests, and a person's machine keeps its graphics card out of them.

Removed

  • Direct3D 11 and WGSL: the Direct3D 11 renderer (TOOLKIT_RENDER=d3d11, USE_D3D11), the WGSL shaders, their HLSL and DXBC, and tk build_naga are gone. Shaders are Bento only, compiled by Shokado.
  • WebGPU (wgpu-native): Linux draws with the toolkit's Vulkan renderer alone, and no program builds or ships wgpu-native any more (nor its licence in THIRD-PARTY-NOTICES). Gone with it: -define:TOOLKIT_RENDER=wgpu, render.USE_WGPU, the OpenGL fallback and TOOLKIT_WGPU_BACKEND, TOOLKIT_WGPU_TRACE (TOOLKIT_RENDER_TRACE stays), TOOLKIT_WGPU_DX12_COMPILER, render.image_wrap_splits_batches and Batch.image_wrap, tk fetch_wgpu and its DXC download, tools/run_tests's -backend and -group, tk desktop_tests -backend, and toolbox.check_env (toolbox.odin_check checks another system's code on Odin's own root: its root parameter goes).

Fixed

  • Windows install and update handoff: installed and updated executables, console launchers, and thumbnail DLLs flush via FlushFileBuffers before close/rename; setup.launch, deferred uninstall cleanup, and elevated install helpers keep their working directory outside the install folder so future update renames are not blocked; setup.launch strips installer-only __COMPAT_LAYER=DetectorsAppHealth while keeping user compatibility layers; update.updater_stop closes and removes any in-flight <exe>.update write cleanly before process exit without blocking update.status on disk I/O.
  • Windows AltGr, mixed-DPI moves, modal drag cleanup, and capture pacing: AltGr on European keyboard layouts no longer reports Ctrl+Alt or steals typed symbols (@, €, {, }, [, ], ~, \) as shortcuts while genuine Ctrl+Alt chords keep working; fullscreen WM_DPICHANGED and move_to_active_monitor scale cleanly across mixed-DPI monitors; TIMER_MODAL_FRAME is always disarmed on window destruction; active Windows capture streams scope timeBeginPeriod(1) / timeEndPeriod(1) so sub-16 ms frame pacing sleeps do not quantize to 15.6 ms.
  • platform.wait_deadline, Wayland scale on re-show, retained text slots, and marks curves: wait_deadline tracks multiple callers per thread, runs during blocking poll_events, and avoids busy-spinning when a frame is in progress; Wayland re-guesses DPI scale when a hidden window is shown again; retained pictures avoid stale loops at non-unit raster_scale, snap .Atlas slot glyphs consistently, preserve LCD fallback rendering, and invalidate rotated LCD replays; gt:marks omits derived arrow curves from undo snapshots and avoids duplicate vertices in polyline_trim.
  • Colour picker layers and text stepping: opaque hue bars, component bars, and swatches draw directly in sRGB interpolation without allocating per-frame offscreen render targets; ui.color_step_text handles CSS Color 4 "none" components, signed scientific exponents, and delta == 0.
  • render.Kept_Texture, ui.Open_With, ui.Thumb_Cache, ui.logo, and setup.logo_make: releasing or switching a Kept_Texture after its renderer is freed no longer reads freed memory, and dimension or renderer changes recreate the texture; ui.Open_With detaches cleanly across owner switches and ui.destroy; Windows "Open with" runs on a dedicated STA thread with the parent window; Linux refuses setting a default for application/octet-stream and clears [Removed Associations]; Thumb_Cache checks renderer identity before drawing; ui.logo selects the closest native size; setup.logo_make frees its pixels when texture creation fails.
  • Overlays, flush splitters, and tab reordering: a flush splitter no longer steals clicks or hover through a modal, menu, or popup above it; keyboard tab reordering keeps focus, Tab stops, and accessibility selection in sync; a lifted tab stays before the strip's trailing controls, clears when removed, and suppresses clicks if the tab count changes mid-drag.
  • Vulkan renderer stability, synchronization, and multi-window safety: wait on prior present/acquire fences before signalling present semaphores, destroy retired swap chains before their VkSurfaceKHR, isolate per-window present counters and capture buffers across device teardown and rest, move pipeline cache disk I/O off the interface thread, retire destroyed application-shader pipelines and in-flight capture buffers through deferred garbage, remove the 256-draw limit on application shaders, gate Win32 overlay redirection surfaces on GDI_PRESENTS, and fix validation flushing, GPU profiling timestamps, create_video_target during the CPU stage, and vulkan_can_draw capability checks.
  • The first frame on Wayland at the screen's fractional scale: a window no longer starts at the screen's whole-number scale and then shrinks or grows a moment later (a 4K screen at 1.875 drew the first frame at 2). Before the compositor says its scale, a window takes the scale of the screen it most likely appears on: the one the compositor names, else the one of the program's window under the pointer or with the keyboard, else the last scale the compositor gave a window.
  • The showcase's terminals show their lines again: the Views scene drew its terminals' and its output's lines in no face since Paper Mono became the default monospace face; they use ui.mono_font().
  • Vulkan with an older loader: a device whose loader offers only the EXT surface maintenance extension takes the EXT swapchain maintenance one too; it took the KHR one, which the validation layer refused (seen with LunarG's 1.4.309 loader on Windows).
  • A replayed picture draws its small text as direct drawing does again: small text in a slot that only moves it (a column, a scrolled box, a sticky box) now draws from the glyph cache, as the same text drawn directly does; it drew from its outlines, a fraction of a pixel apart (up to 112 of 255 on an edge). A slot that turns or scales, or comes back to a plain move, makes the picture stale: recorded again, its text takes the path direct drawing takes. A glyph drawn from its outline while the frame's cache budget is spent sits at the pen its cached glyph will have.
  • A field keeps its size when it takes the focus, in the machined finish: a sunken field (a text field, a time or duration field, a number, a hotkey field, a wheel's drum) drew its focus ring on its own edge and dropped the lit rim around it, so it looked a pixel smaller on each side while focused (two at a scale of 1.875). The accent ring now takes the rim's place, outside the edge: the outline does not move.
  • A window hidden before its graphics device came no longer crashes: on Wayland an overlay (or any window) hidden while its first frames were drawn on the CPU and shown again made its swap chain on the surface the hide had destroyed. It now waits for the window to come back, and starts on its new surface.
  • A time or duration field no longer moves when its drums open: in ui.parts_field and ui.duration_field, the part the keys change lost its size once the field had the keyboard, so the parts shifted and the active one grew to the field's height. The parts now keep their place and size, open or closed.
  • A chosen colour swatch is seen at once, and its edge is clean: ui.swatch_button draws one colour of a row to choose from (the showcase's and fidget's toolbars, the mark editor's colours and fills). The chosen one has a ring of the text's colour outside it, with a gap, in every theme; it keeps its size, so the row does not move. The colour no longer shows a rim outside the swatch's edge.
  • Finish details: a number's − and + no longer touch its field (each part keeps a small gap, so a hovered button's edge no longer runs into the field's); a slider's round knob draws its ring as a disc under its white face, with no white edge outside the ring; a selected row too square and round for its lit top line (a rail's icon) no longer shows a short dash in its middle; a node's header sits inside its plate's edge, which now runs unbroken round the node; a node's focus ring and the edge of a link in the emphasis pass under its ports, not over them; the graph's minimap cuts the view's frame to its round corners; a colour swatch's checker follows its round corners; a toolbar's control folded into its "…" menu lights the letters a search found, as an item does.
  • Pictures no longer disappear after the graphics device is recovered: the program's logo, a menu's icons, the setup's marks, the file picker's preview, the mark editor's picture and blurred copies, the thumbnails and the picture cache upload their pixels again (or ask for them again) when the device is new. render.Kept_Texture (kept_texture, kept_release) does it for a program's own texture whose pixels it keeps.
  • ui.Open_With: a file of a type no application declares has a way to open. The applications of application/octet-stream come last for every file, and "Choose an application…" always ends the list. On Linux the chooser lists every application (desktop.applications) with a search and "Always use for this type" (desktop.set_default_handler, the person's mimeapps.list); on Windows desktop.open_with_dialog shows the system's dialog. The State builds the chooser at the end of its build: a program calls nothing more. The application chosen opens the file (open_with_run), or goes to the program's on_chosen.
  • A program's logo is sharp in the title bar. A logo picture within a quarter of the box's size is drawn at its own pixels, centred, instead of resampled: a 32 px picture in a 17 px box, or a 16 px one at 125 %, no longer blurs.
0.372.02026-12-01 12:50 UTCrelease

Added

  • toolbox.Link.force_multiple: a program that links two static libraries carrying their compiler's runtime (Rust's in the native library, Zig's in libghostty-vt) links on Windows, with /FORCE:MULTIPLE, as --allow-multiple-definition does on Linux. Off by default.
  • The file picker opens shares by their address: type smb://nas/docs or sftp://you@host/ in its path bar (Ctrl+L) and it goes there, mounting the share first when it must (Linux: gvfs; Windows: SMB and WebDAV by their UNC path). gt:location makes such places paths for a program's own use.
  • ui.set_logo and ui.logo: a program gives its logo's pictures once (the PNG of its desktop icons) and draws its logo in its title bar with ui.logo(id, side); the About modal shows it with no code of the program's when its About_Info gives no logo of its own.
  • The caret glides: in every text field, the caret goes to its new place gliding, with a little spring, or stretching along the way, in a time you choose (Appearance › Caret), or jumps as before. A program that draws its own caret gives it the same motion with ui.caret_glide.
  • ui.Tab_Out: one machine for dragging a tab out of its bar, for every program: past the threshold the other tabs make room and a marker shows where it lands, in its own bar and in the bars of the program's other windows; off its bar a real window follows the pointer (Windows, X11), the compositor carries it (Wayland with xdg-toplevel-drag), or the drag shows the tab over a thumbnail of its content (Wayland without it). Escape puts everything back. Docs: docs/tab-drag-out.md.

Changed

  • Buttons and pills place their contents by their rounded ends: an icon at the start of a button is as far from its end as from its top and bottom, the words at an end get back the room the round end takes from them, and the gap between an icon and its words is the one the eye sees. A theme with square corners changes almost nothing; a round one gives its buttons balanced ends. ui.round_end_edge, ui.concentric_end_inset and ui.icon_gap give the same rules to a program's own controls.
  • A zoom zone zooms from ×0.25 to ×8: an editor's or a shell's text zoomed with Ctrl+wheel no longer stops at three times its size. A zone or its memory with bounds of its own keeps them.
  • platform.drag_start: on X11 too, Drag_Carry.frame is called on each turn of the drag (with or without a carried window), and every window of the program answers its own drag at once through drop_sync_set, not only the window it started from: its windows draw their drop markers while the drag holds the thread.

Fixed

  • The notices find a licence in a crate's LICENSES/ folder: merman-elk-layered keeps its EPL-2.0 there and nothing at its root, and every program's notices check failed on it. A crate under a weak copyleft licence (EPL, MPL, LGPL, CDDL, EUPL) is listed with where its source is, as those licences ask of a binary.
  • A refused drop on Wayland is no longer finished: a drop that the window refused (no accepted type, or no action that the compositor chose) now reaches the program as Drop_Leave, without wl_data_offer.finish. Before, the window sent finish on every drop, before the program saw it: wayland.xml makes that the protocol error invalid_finish, which ends the connection. A drop that the program refuses at its Drop (with drop_sync_set) is no longer finished either. Each drag offer that names no window of the program is now destroyed at once.
0.371.02026-11-30 20:25 UTCrelease

Added

  • A diagram's theme of its own: the setting Appearance › Diagrams draws every Mermaid diagram as the program, or in a theme of its own (light, dark, neutral, forest) on that theme's background, so a light diagram in a dark program stays readable. A diagram viewer can offer the same choice for the diagram it shows (markdown.diagram_theme_dropdown).
  • svg reads style sheets: the rules of a drawing's <style> (tags, #id, .class, descendants and children, !important), hsl() colours, and a line of words written as tspans in a tspan, placed in em.
  • render.Frame_Stats, render.frame_stats, render.gpu_timestamps_supported and tk render_bench: expose per-frame instance counts, draw calls and upload bytes on both backends, guard WebGPU timestamp queries when an adapter lacks the feature, and benchmark fixed showcase and synthetic scenes headless at 1x and 2x.
  • Paper Mono default monospace font and OpenType feature picker: Paper Mono replaces Inconsolata as the embedded default monospace face (font.FALLBACK_MONO_DATA) with font.PAPER_MONO_DEFAULT_FEATURES enabled by default (single-story a, slashed zero, duospace glyphs, narrow space, and small arrows on; coding ligatures ss01 off) and variable-weight bold via font.styled_face. Adds OpenType feature discovery and formatting (font.face_features, with_features, features_parse, features_format, default_features), a wider wrapping font picker with a live hover detail card (origin, weight count or range, two-line specimen, and available feature count), a companion Features (N) popover (ui.font_features_button) with grouped toggles, live per-feature samples, and a Defaults reset, live feature application (ui.use_text_features), and the appearance.text.mono_features standard preference in gt:prefs_page.
  • Binary cache for the development shell: nix develop downloads what the CI already built from https://cache.froment.software.

Changed

  • mermaid.diagram and markdown.Diagram_Layout take Mermaid's theme by name: mermaid.diagram(text, theme = "dark") and proc(text, theme: string) instead of dark: bool; diagram_of takes the theme of a viewer's own.
  • Mermaid diagrams are laid out as Mermaid lays them out: the toolkit draws them with merman, Mermaid's own parser and layouts in Rust. Subgraphs inside subgraphs no longer overlap, the drawing is no longer cut at its top, and every kind of diagram Mermaid knows is drawn. The text of a diagram in Markdown is now as large as the text around it.
  • Mermaid diagrams in Markdown keep the text's size: a diagram wider than its column scrolls sideways, as a wide table does, instead of shrinking until its words cannot be read.
  • Incremental instance buffer upload: track the bytes last uploaded per instance page and write only changed instance ranges to the GPU on both WebGPU and Direct3D 11.
  • Opaque shapes hide what is under them on the GPU. A window draws its opaque plain shapes front to back with a depth test before the rest, so covered pixels are skipped and the picture stays the same. Its first frames draw without the pass until the pre-warming thread has made its pipelines: no frame waits for a compile. A window drawn by WebGPU on Windows has no depth pass: there, Direct3D 12 compiled each pipeline for seconds and held the device meanwhile. An offscreen renderer uses it only when asked (render.set_depth_pass).
  • Large rounded and bordered rectangles: split uniform-color rounded and bordered rectangles above 4096 interior pixels into thin edge/corner strips and a plain interior quad without per-pixel distance math (omitting the empty interior of bordered rectangles).
  • Large blurs (draw.filter_blur, draw.backdrop, draw.filter_drop_shadow): blurs with standard deviation at or above render.set_blur_sigma_limit (8 px by default) now use a 2-level Dual Kawase pyramid on a reduced working scale instead of a wide separable Gaussian, cutting texture fetches by 3.4x to 14.5x and pixels written by 1.8x to 4.7x at 1080p while keeping exact separable Gaussian for small radii.
  • Small text drawn from a cache. Screen-aligned text up to 48 px in Slug mode (the Linux and macOS default) is rasterised once into the glyph atlas, in grey and per colour stripe, and drawn with no curve work per pixel. Misses beyond a per-frame budget fall back to Slug; large, zoomed, rotated or animated text stays Slug. On Windows through WebGPU, text per colour stripe stays Slug: the atlas per colour stripe draws nothing on Direct3D 12 there.
  • Direct3D 11 partial presentation: switched swap chains from FLIP_DISCARD to FLIP_SEQUENTIAL, copying only dirty rectangles to the back buffer and passing them to IDXGISwapChain1::Present1 when flip-model rules allow (full-frame on first present, after resize or SetSourceSize, and with tearing); added render.present_damage_last.

Removed

  • Windows CPU first-frame stage. Removed the Direct3D 11 / WARP CPU first-frame stage (cpu_stage_d3d.odin) and GDI fallback: Direct3D 11 already ships precompiled shaders, so the CPU stage stays Linux-only.

Fixed

  • Input-to-screen latency and Wayland input pacing: render.pace_frame now waits via wait_frame_slot so Windows waits pump and timestamp input and WebGPU avoids acquiring a swap chain image before the JIT sleep; gt:host now paces continuous input on Wayland Mailbox surfaces instead of bypassing host_pace, and feeds Event.stamp, frame-read time and continuous-run state so render.latency_summary and missed-refresh counters report real numbers.
0.370.32026-11-28 15:40 UTCrelease

Fixed

  • Wayland screen capture resilience under load and after idle. gt:capture now destroys temporary cursor sessions right after reading the pointer so idle capture sockets no longer overflow, fails fast on hung-up sockets, revives and retries once when a capture or query discovers a broken connection, and uses wider timeouts on loaded systems.
  • Background clipboard copies on Wayland. platform.clipboard_set and clipboard_set_image now publish through ext_data_control_manager_v1 or zwlr_data_control_manager_v1 when the compositor offers them, so copies made without keyboard focus (such as tray actions, OCR after hiding an overlay, or Copy right before closing a window) are no longer dropped by compositors that reject unfocused wl_data_device.set_selection.
0.370.22026-11-28 13:38 UTCrelease

Added

  • Per-tab close button and middle-click close on stacked view tabs. The active tab of a stacked view panel now has its own close cross, and middle-clicking any view tab closes only that view while keeping the rest of the stack open. Also adds breathing room after a closed non-empty debug.section when an outer-depth item follows.

Fixed

  • Palette items in Recent are no longer duplicated below. When a command or session appears under Recent, it is omitted from the list underneath so each entry appears at most once (and remaining items of a single-source list get their source heading instead of merging into Recent).
  • Tabs no longer waste side padding before truncating words. ui.tabs and ui.tabs_ex previously combined a 1 em spacer with the label's own text_pad on both sides (about 3 em of empty padding per tab). Tabs now use a single tight side inset (0.45 em in dense strips such as the debug window, 0.7 em elsewhere) with text_pad = 0, leaving more room for tab titles.
0.370.12026-11-28 12:08 UTCrelease

Fixed

  • A lone sidebar with its own compact rail keeps no extra header bar. Sidebars that declare View_Options.rail_em own their top row with ui.view_fold_button; skipping view_lone_header for them removes the extra bar above the sidebar and keeps the fold button at the same pixel across fold and unfold.
0.370.02026-11-28 11:03 UTCrelease

Added

  • ui.view_info: added a read-only ui.view_info(vs, id, instance) -> (View_Info, bool) query exposing an open view's open, presentation, space, edge, stack, active (active tab of its stack), focused (keyboard focus inside the view), and title without exposing private View_Record internals.
  • ui.tree & ui.file_tree: dragging rows now shows a floating, non-clickable drag preview pill following the pointer (with icon, label, and a +N count badge for multi-item drags), highlights hovered drop-target folders with an accent fill and border (and outlines the tree for root drops), and cancels cleanly on Escape.
  • ui.about_modal: added a generic About modal dialog (About_Info, About_Link, about_version_text, about_diagnostics_text) with program logo or icon, name, tagline, version, toolkit version, licence, copyright, a prioritized in-app "What's new" action (on_whats_new), optional website and online release notes links (website_url, releases_url, links), Copy version, optional Copy diagnostics, Close/Escape, and French translations.

Changed

  • Views & Debug window: lone docked panels now show a slim, non-overlapping compact header bar with a drag grip, menu button, and reserved Close button instead of a hover-only strip; dense floating windows (such as the Debug window) reserve a dedicated drag handle grip on the left and place tabs in a bounded scrolling slot before Pin and window controls so controls never overlap or crop; debug sections keep vertical breathing room after rows and action buttons, and read-only watch rows give long values the full remaining row width without wasting space on the left.

Fixed

  • Menu bar mnemonics: holding Alt now waits MENU_BAR_ALT_DELAY_MS (150 ms) while Alt is held alone before underlining menu bar access letters, and suppresses underlines once another key is pressed, eliminating the visual blink during chords such as Alt+Up and Alt+Down.
  • Context menus & submenus: added a safe-triangle aim corridor so moving diagonally toward an open submenu does not accidentally close it, fixed re-opened menus/submenus to always measure their fresh width and flip cleanly inside screen bounds, and added icon_font to ui.menu_submenu.
  • Theme picker grid & percentage layout: percentage-sized children inside a parent narrowed by ancestor margins or splits now resolve against their parent's shrunk width before violation checks, so incomplete last rows of theme cards in the settings page match the exact column width of full rows instead of stretching wider.
0.369.12026-11-28 00:17 UTCrelease

Fixed

  • ui.view_header_tools and the floating debug window header: allow shrinkable header tools such as a strip of tabs to narrow and scroll instead of pushing the pin, window, and close buttons outside the header.
  • ui.tabs_ex, ui.tabs, ui.tab_panel, and debug window tabs: report changed as true when a click or keyboard navigation changes the selected tab instead of always returning false.
0.369.02026-11-27 23:04 UTCrelease

Added

  • The first frame on the CPU on Windows: with Direct3D 11, a translucent window shows its first frame drawn on the CPU through a WARP device's swap chain on its own DirectComposition visual, and the hardware device's chain replaces it at its first present, in the same commit; a window without composition shows it through GDI until its swap chain presents. Not yet run on a Windows machine.
  • The first frame on the CPU for a program with its own loop: render.cpu_stage_next says, after each frame, whether the next one is owed at once (it ends the CPU stage, on the GPU) or the device did not come; fidget asks for its device at its start, for cpu_first, and shows its first screen at a median of 106 ms from its start instead of 285 (lavapipe, Xvfb). The CPU's frames are drawn in bands on up to eight threads, and the pixels well inside a plain shape skip its distance: fidget's first screen is rasterised in 9 to 17 ms instead of 346.
  • Popups above native child views (ui.native_child): tooltips, menus, toasts, text-reveal bubbles, floating views, and modal dialogs now draw above embedded native child windows (such as Windows WebView2) with full alpha and unclipped drop shadows. Register the host box with ui.native_child(box) each build; gt:host automatically puts the main DirectComposition surface below child windows (render.set_under_children), draws overlapping overlays on a second topmost = TRUE composition surface of the same window (ui.draw_tree_base, ui.draw_tree_overlay), and intercepts pointer input only over interactive overlays (platform.set_native_input_shield) so clicks pass through to the native child when idle or showing tooltips.
  • The graphics device asked at the program's start: host.program_start asks for the device, so that its adapter answers while the program reads its settings and opens its window, and the first frame drawn on the CPU waits less for it. A process that never calls it (a command line's answer, a plugin's child, a headless run) makes no device. -define:TOOLKIT_EARLY_DEVICE=false or TOOLKIT_EARLY_DEVICE=0 turns it off. render.preload_when_done gives a device being made a callback for its end (host.ahead_due wakes its loop with it).
  • ui.tab_face, ui.tab_body, ui.tab_strip_start: a program's own tab boxes (a fixed width, drags, its own content) get the toolkit's tab look, with an optional accent along the chosen tab's top (mark); the toolkit's rows of tabs use the same calls (docs/widgets.md, "Your own tab strip").
  • platform.set_wallpaper and ui.wallpaper_set: a picture as the desktop's background, through the desktop portal on Linux (GNOME, KDE) and the system's setting on Windows, on the chores; the result (set, cancelled, unsupported, failed) comes back to the program, which says it in its own words.
  • Tables per channel: draw.filter_lut applies a table (draw.lut_texture) to a layer on the GPU, and image.lut_levels, lut_exposure, lut_curve, lut_then and lut_apply make the tables and write the same one into a picture: levels, gamma, exposure and curves preview at the GPU's speed, and the file gets what the screen showed.
  • ui.paste_answer: a paste whose clipboard holds none of the kinds asked answers Paste_Kind.Nothing, so a program can say there is nothing to paste instead of doing nothing.
  • ui.Drag_Out (drag_out, drag_out_files, drag_out_start, drag_past_threshold): a box's file or text dragged out to another program past the system's threshold, one drag a press; an offscreen window records what would have gone, for a test. The file tree drags its rows out with it.
  • The menu bar's keys (ui.menu_bar_button): Alt+letter opens a menu (the access letter marked with & in the entry's words, else its first letter, underlined while Alt is held); F10 or Alt alone lights the bar, whose arrows move and open; in an open menu of the bar Left and Right go to the menu beside it, and Escape steps back to the lit entry.
  • image.place(dst, src, x, y): a picture copied into another at a place, alpha too, cut at its edges: a canvas of another size without a copy of the loop.
  • The first frame drawn on the CPU: a program opened by host.host_open on Linux shows its first picture while the graphics device, its surface and its pipelines are still being made, drawn on the CPU with the shaders' own formulas and given to the window through wl_shm on Wayland or PutImage on X11; the next frame is the GPU's, in the same place, and the two pictures differ by a few pixels at most. On lavapipe (hello, Xvfb) the first content shows about four times sooner (a median of 88 ms after the process started instead of 392, on a loaded machine). A tiling compositor's tile is drawn on the CPU too, so it shows the window at once. render.init_window(..., cpu_first = true) asks for it in a program with its own loop; render.cpu_stage_active, render.cpu_stage_end and render.cpu_frame_exact say where it is; platform.show_pixels, platform.can_show_pixels and platform.drop_pixels show a picture drawn on the CPU on a window. Layers, filters, blend modes, planes, pictures and application shaders are not drawn on the CPU: they show from the GPU's frame. A machine with no graphics driver gets the same sentence as before, at the same place. TOOLKIT_CPU_FIRST=0 turns it off; -define:TOOLKIT_CPU_FIRST=false leaves it out of the program (64 KB of code). TOOLKIT_CPU_SHADOW=1 draws each GPU frame on the CPU too, for a test (render.cpu_shadow_pixels).

Changed

  • Tabs take the surface they frame, in a style per context: a dock's stacks and a stack of views are an Underline (the strip on the panel's own ground, no line nor border before it, an accent bar under the shown tab); ui.tabs and ui.tab_panel are Folders (the chosen tab is the page's surface, one outline round both, the other tabs words with no outline); a small panel's switcher asks for .Segmented, a header band for .Header. A content names its ground once (Dock_Options.surface, View_Options.surface, Tab_Panel_Options.surface, ui.tabs_over) and the toolkit paints its body, strip and tab with it: no double border, no cut, no pasted tab. Dock_Options.tab_style, View_Dock_Options.tab_style, Tabs_Options.style choose another. ui.tabs_ex gives a tab its own content (Tabs_Options.content), a "+" after the tabs (after), the tab whose menu was asked by a right click, the Menu key or Shift+F10 (Tabs_Result.menu, menu_at, menu_keyboard) and a middle click (closed). A stack's first tab's words stand over its panel's first column, a view's as a dock's (ui.dock_content_inset() inside a view gives its stack's); the keyboard's ring on an Underline's or a Header's tab leaves its accent bar showing; a strip's arrows leave a Folder's line and a tab_panel's frame showing (Strip_Options.edge). The debug window's tabs are an Underline; the edged finish no longer lights a dock's strip.
  • ui.preview: Preview_Options.wheel (.Zooms, .Pans, .Ctrl_Pans) replaces wheel_pans: a program gives the plain wheel or Ctrl with it to moving the content, the other one zooms.

Fixed

  • AltGr is no Alt on Linux: ISO_Level3_Shift no longer comes as Key.Alt, so a program that reads Alt does not see it when a French or German layout types €, @ or { with AltGr.
  • Menus and dropdown lists: the longest row is no longer cut by a pixel lost to rounding at a fractional scale ("English (United Kingdo…" at 120 dpi); a list wider than its button near the window's edge shows every row whole, inside the window.
  • The file tree's drag out: a drag the system refuses at once no longer starts again at every frame while the button is held: one drag a press.
  • Rows of tabs (a stack of views, a dock's stack, ui.tabs): too long for their room, the tabs first narrow, their words cut with an ellipsis down to ui.TAB_TITLE_LEAST_EM, before the strip scrolls; a tab cut by an arrow to a sliver of its outline is hidden whole; a strip resized brings its chosen tab back into view; a narrow stack keeps its Close inside the window. ui.tab_title_width sizes a tab's words for a program's own row of tabs.
  • The palette's hint row: in a narrow palette the keys of the selected row are cut with an ellipsis and stay inside the palette, instead of running past its edge.
  • session.click_at: moves the pointer first and builds frames, even where the pointer already was: a right click on a block that takes it with ui.context_take opens its menu with no move before it.
  • A window shown on X11 always gets its first frame: an event that came before the loop's wait looked at the connection (the window's MapNotify, read with another answer) ended no wait, and a window with nothing else to say slept before its first frame until an input came. Seen in 1 to 5 starts in 100 of a loaded machine.
  • ui.thumb_picture: a place given in next without a size (fixed_x, fixed_y) stays; only the sides left unset fill the room.

Security

  • A test never reaches the person's desktop, bus or graphics card: on Linux every test process, however it was started, and every program a tool of the toolkit runs (program sessions, tk screenshots, the timeline test) has its environment isolated before its main (base.isolated_env): no display but a server the test started itself (GT_TEST_DISPLAY), a session bus where nothing answers unless the test has its own (GT_TEST_BUS), Vulkan on Mesa's lavapipe alone with the implicit layers off, Mesa's EGL vendor alone, no VA-API driver. A test started by hand from a desktop's shell opened its windows on that desktop, spoke on its bus and could load NVIDIA's EGL driver. base.software_vulkan_driver (moved from toolbox) and base.mesa_egl_vendor find Mesa's drivers.
0.368.02026-11-27 21:57 UTCrelease

Added

  • ui.check_mark(id, &value): a check box with no words, its mark alone, placed where the caller puts it as a value is (at a row's end, under right-aligned values). The debug panel's toggles use it: a toggle's mark now ends where the watches' words and the numbers' digits end, not in the middle of the row.
  • Palette_Commands_Options.hidden: a command that does not exist in this state (an agent that lacks it) is not offered at all: not listed, not found, not in Recent, not put first by an alias, its form does not open, while palette_chosen_command still gives its index in the whole table. A disabled command stays greyed and listed. A program no longer keeps its own trimmed copy of its table; it reads a hidden command's key with command_pressed(c, disabled = hidden || disabled), so the key does nothing. shortcuts_sheet_open and shortcuts_sheet_set take the same slice as hidden and leave those commands off the sheet.

Changed

  • The debug window is in every build, a release too. Ctrl+Alt+Shift+D opens it in every program, with its View tab (the wireframe, the exploded view, the frame times) and the program's panels; the key or Escape closes it. The define TOOLKIT_DEBUG_WINDOW (true by default) holds it: build with -define:TOOLKIT_DEBUG_WINDOW=false to leave it out (about 1.6 MB). TOOLKIT_DEVTOOLS now holds only the CDP endpoint, as before off in a release. The key is read after the program's own keys: a program whose shortcut is Ctrl+Alt+Shift+D keeps it.
  • ui.node_graph: a node's widgets have the same margin above and below them (half the node's padding); the margin below was larger, so nodes with widgets are slightly shorter.
  • ui.mark_editor_dialog opens at the picture's size: the picture at 100 % with the bars around it, between its least size and 90 % of the window, where it opened at a fixed 72 by 46 ems. The size the person gives it is remembered for the next opening. A program gives another first size with size_em. MARK_DIALOG_WIDTH_EM and MARK_DIALOG_HEIGHT_EM are gone; MARK_DIALOG_MOST is the share of the window.

Fixed

  • gt:process and gt:toolbox on Linux: process.start, process.tree_start, and toolbox.env_with drop empty environment entries (and entries containing NUL) instead of passing the trailing "" appended by Odin's Linux os.environ into a child's envp, which crashed strict children such as Zig.
  • The debug window's acts line up with its labels: a row of acts started at the row's edge, left of the labels' words above it, in a section and outside one. Its first button now starts where the labels' words start, at every depth.
  • toolbox.check_scopes finds every scope opened under a negation: if !debug.section(x) { continue } closes the section at the end of the if, and the values after it fall outside it. The check, a step of program_check, now reads the scopes of all the toolkit's packages and of the program (every @(deferred_*) procedure, not only ui's), finds if !pkg.scope(...), if scope(...) unqualified in its own package, == false and != true, and says the file, the line and the right form. A comment check_scopes: on purpose passes a line that builds the misuse on purpose. check_scopes(src_dir, toolkit_dir) replaces its ui_dir argument; scope_names replaces ui_scopes.
  • The debug window opens in every program: Ctrl+Alt+Shift+D did nothing in a program that registered no debug panel. Every window that gt:host opens (host_open, host_adopt, a view's own window) now has the debug window with its View tab (the wireframe, the exploded view, the frame times, the density, the zoom); a program's panels add their tabs. In the debug window's own window, the key closes it.
  • The setup no longer waits on the disk when it opens: the dialog and the Installation page start and stop the watch of the install's places on a thread of their own, and the window no longer freezes while the options are read and the places opened. setup.watching(&d) says when the watch runs.
  • Accessibility names that outlive the program's strings: ui.a11y, ui.a11y_set and ui.a11y_default keep copies of their strings for the build, so a program that frees or reuses its model during a build no longer crashes when a screen reader (or a test) reads the tree. A node graph's node, named by its title and subtitle, crashed in this way.
  • ui.node_graph: a node's widgets sit on whole pixels with their node at any zoom and display scale, with the same gap on the left and the right; they were up to 1.6 px off to one side.
  • Caption buttons follow the zoom: the minimize, maximize and close buttons of a title bar the program draws now grow with the interface zoom, as the toolbar beside them (ui.caption_button_size); at 100 % they keep the system's size, and Snap Layouts over the maximize button stays on the drawn button.
  • ui.form_row: the fields of a form start at one x, right after its labels. The rows of one parent box are one form: their labels are a column as wide as the longest label and a gap, so every field starts at one x, with no void after short labels. Before, a field that filled the row shrank its label to its words and a field of its own width (a dropdown) left it 34 % of the row, so the fields started at a different x from row to row. The column is at most 40 % of the form: a longer label wraps on more lines, never cut. The label sits on its field's first line: a field of several lines grows the row downward instead of centring the label on it, and a widget shorter than a line stays centred on the label's line. The room between two rows is the same. A field with a note under it (a hint, a validation message) is built with its note in a box of its own as the row's widget: the note starts at the field's left edge, and the label still names the field.
  • A segmented control with no choice draws no key: with a value that is none of its labels (-1), ui.segmented drew its key one segment before the control, over what stood at its left (in the mark editor, over the last fill swatch, with a text size that is not one of the four). No segment now shows chosen until one is chosen.
  • The mark editor's icons show in every program: in a program whose icon font is not Lucide, the tools, the edit and zoom buttons, No fill, Bold and the shape's menu showed other glyphs in their place. They now always draw in the Lucide face.
  • The mark editor's text field opens where you click: in ui.mark_editor_dialog, or wherever the editor is not at the window's top left, a click of the Text tool opened the field away from the click. The field now opens on the clicked point at every zoom, its letters on the letters of the kept text, and it stays on its point while you zoom or pan. Near the canvas's edge, the field stops at the edge and scrolls, so the caret stays seen. marks.to_canvas gives a picture point from the canvas's top left.
0.367.02026-11-27 18:31 UTCrelease

Added

  • fsx.same_entry, fsx.same_volume and fsx.entry_identity: whether two paths are one entry (a change of a name's case on a disk that ignores case), whether a rename can move between two folders, and an entry's volume and number, a link itself, on Linux and Windows.
  • Line_Edit_Options.suffix: a short weak text inside a field's end, before its cross or eye, such as what a search found ("12 found"). The text typed never runs under it, and the field keeps the width of its row.
  • Rich_Style.edge: a rich run can have a 1 px line round its background; the words a plugin's view highlights (highlight) take the find's light fill and edge, their letters in their own colour.
  • fsx.Ignore: the rules of .gitignore files (ignore_add, ignore_match, glob_match), for a walk that leaves out what a repository ignores.
  • ui.tree and ui.file_tree: a tree view for every program, as dense and aligned as a code editor's explorer. Rows of one line with an indent per level in pixels, indent guides (the current branch's lit), chevrons that turn, an icon, the label cut at its end with the whole name in a tooltip, and a slot at the row's end (a git letter, a count). Only the rows in view are built: 100 000 nodes scroll as fast as ten. The keys of every tree (Right opens then goes in, Left closes then goes up, Enter and Space, type-ahead), several rows with Ctrl and Shift, a reveal that brings a row into view, levels and positions for screen readers, and hooks for a context menu, a rename in place and drag and drop. ui.file_tree shows a folder: each folder read when it is opened, off the interface's thread, folders first then in natural order, an icon per file type, hidden files on request, the open file marked, and the folders shown followed as they change on disk.
    • A filter (Ctrl+F) finds names in the whole folder, even in folders never opened, leaves out what git ignores, lights the letters matched, opens the folders on the way and gives the earlier ones back on Escape.
    • A menu and keys for the usual file acts: new file and folder, rename in place, duplicate, move to the trash with an undo, cut, copy and paste with other file managers, copy the path, show in the file manager, open with, open in a terminal, expand and collapse, refresh. The same acts are commands for the palette. Every failure says why in a toast. A rename never replaces another file, and a name the system refuses is said at once (ui.file_name_problem, Windows' rules from any system); a move refused for another reason than another disk copies nothing, and a failed copy leaves nothing half made.
    • Drag rows onto a folder to move them (Ctrl copies), out of the window to another program, or drop another program's files into a folder.

Changed

  • A find's matches keep the text's colours: each match is a light fill of the find's colour inside a 1 px edge (the current one a 2 px edge), and its letters are drawn in their own colours: a grey comment stays readable in a code view, where the opaque amber with dark letters hid it. The edge reaches 3:1 on the page and on a selected row in every theme; the theme entries are find_match background, find_match border, find_current background, find_current border (find_text and ui.find_match_ink are gone), and the ticks on the scroll bar take the edge's colour.
  • Tabs read as tabs: in ui.tabs, a dock's stacks, a stack of views and the debug window, a line runs along the strip's bottom and the chosen tab rises out of it as one shape with its panel (concave fillets at its feet, rounded top corners in the theme's control radius, the page's colour with the finish's light), no line between them; the other tabs are a faint rounded outline, filled under the pointer, in place of the raised button the chosen tab was. Every tab has its whole silhouette; the first starts a few pixels from the pane's edge, the room of its left foot, and the words sit in the middle of the shape. ui.dock_content_inset() says where the first tab's words start from the stack's edge, for a panel's content to line up with them; ui.tab_line_draw draws the line across a program's own row that holds ui.tabs.

Fixed

  • No crash after a file tree or a picker goes: the thread that follows their folders freed itself, at its end, with the allocator of the code that opened them; when that was a test's tracking allocator or another short-lived one, already gone, the program crashed (seen on Windows). The thread now takes the process's heap.
  • A folder followed misses no change made as it is opened: a file made in a folder just opened in ui.file_tree (or the picker's folder) at once came only at the next change, or never; a folder is now read again once its watch begins. On Windows, setting the folders followed no longer loses a change made at that moment in a folder already followed.
  • A program a tool starts draws on the CPU, never the GPU: toolbox.program_session_start gives the program Mesa's lavapipe as its only Vulkan driver and turns the implicit layers off, so a program's live tests and pictures no longer take the machine's graphics card (an NVIDIA one included) and match the CI's. A machine without lavapipe does not start the program and says why; Program_Options.gpu keeps the machine's own driver for a demo a person watches.
  • A stack's strip of views is a bar again: in a finish with a relief (machined, edged), the strip of a docked stack of views (a bottom terminal's, any zone's) was drawn as one big button, with a rim and a bevel, since its double click and right click came in 0.366; its ground is now flat, and only its tabs have a face. The dock's strips have the same flat ground.
  • A watched folder removed and made again is watched again. fsx.Watch on Linux kept the dead watch of a removed folder, so a folder made again at its path (a build folder cleaned) was never followed; it is now watched again at the next watch_set. A watch_set during a change's quiet time no longer reports paths it had freed.
  • A one-line rich text is cut between letters, as a label is. rich_paragraph(max_lines = 1) (a name with the letters a filter matched lit) cut a name a little too wide back at its last break, so "tree-view.md" showed as "tree-…" with room to spare; it now keeps every letter that fits before the "…".
  • Toolkit.waitFor, Toolkit.click and Toolkit.waitIdle after a stall: a window that stalled longer than a wait's time (its first frames on a slow device) no longer fails the wait from the tree it had before the stall: the wait looks at the builds made after it, so a text on the screen is found.

Security

  • desktop.open_terminal on Windows no longer reads the folder's name as a command. Windows Terminal took a ; in the folder's path as the start of another of its commands, and both terminals were looked for in the folder opened first, where a planted wt.exe or cmd.exe would run. The folder is now the terminal's starting folder, never a word of its command line, and each program is found by its whole path (PATH, the system's folder). On Linux the folder is passed after --.
0.366.02026-11-27 14:15 UTCrelease

Added

  • ui.tooltip_near avoids what it must not cover. Its new avoid argument takes lists of rectangles by priority (a point is a rectangle of no size): the tooltip takes the side or corner next to its anchor that covers the fewest of the first list, then of the next. A graph's link tooltip stays off the hovered link, the nodes' titles and the other links.
  • ui.node_graph: the link under the pointer stands out of the links that cross it. It is drawn over the others, thicker and lighter, on a halo of its colour, its ports and the edges of its nodes lit, while the other links fade. The nearest link to the pointer is the one hovered; where several are under it, a tooltip names it and Alt+wheel takes the next. A node under the pointer lights its links the same way; the links of the selected nodes are drawn over the others. The emphasis fades in and out with the animations. In every theme the hovered link reads at 3:1 on the canvas at least and a faded link keeps 1.5:1.
  • base.start_mark, base.start_steps: a program's start measured from the process's start as the system knows it, not from main. The toolkit marks the device made early, its first pipelines, the window, the font, the renderer and the first frame shown; a program adds its own steps and reads them all, so its probe of the start measures what a person waits for. TOOLKIT_RENDER_TRACE=1 prints them at the first present, on Linux too.
  • fsx.write_atomic keeps a person's document as it was: fsx.DOCUMENT writes through a symbolic link to the file at its end, keeps the file's mode, owner and group (Unix) or its access list, attributes and creation time (Windows, ReplaceFileW), and puts the file and its folder on the disk before it returns. The temporary file is its user's alone until it is whole. A Write_Report says what was written over, among it the other names of a hard-linked file, which keep the old content. The options are one Write_Options value: fsx.write_atomic(path, data, {flush = true, private = true}). A settings export keeps the file it replaces.

Changed

  • A program shows its first frame sooner: the graphics device's thread also makes the shaders and the two pipelines of the first frame, side by side, and host.host_open asks for the device before it opens the window and loads the font meanwhile. A frame no longer waits behind the compile of a pipeline it does not use. A small window on lavapipe: the first frame shown 592 ms after the process started before, 205 ms now. X11 asks for its atoms in one round trip.

Fixed

  • A test's folder is a Windows path as the system writes it: testkit.temp_folder and fsx.temp_dir give backslashes alone and long names (C:\Users\runneradmin\AppData\Local\Temp\gui_toolkit-..., not C:\Users\RUNNER~1\...\Temp/gui_toolkit-...), with no separator at the end. A program's test that compared it with a path from the system failed on the CI. A session's folder (build/session/<test>) is joined the same way.
  • A frame of any size draws, it never ends the program: the renderer uploads a frame's instances in pages under the device's largest buffer and cuts a draw where a page ends. A frame of 2.9 million rectangles (413 MB) aborted every program on WebGPU, and drew nothing on Direct3D 11. A table past the device's limit draws what fits and says so once; an error in a frame's commands loses that frame only. gt:draw makes no instance of a rectangle or an image wholly outside the clip, as for text: a row drawn for every line of a long text costs only the rows in view.
0.365.02026-11-27 12:34 UTCrelease

Added

  • A dialog's body can take its height (dialog_body(id, stretch = true)). In a resizable dialog, a part built with fill_least (a preview, a list) grows when the person makes the dialog taller; the dialog opens as tall as the least heights of its parts, which a resizable dialog of no height now counts.
  • A large picture's upload no longer freezes a frame. render.Upload (upload_begin, upload_step) writes a texture over several frames within a time budget and makes its mips once at the end; gt:pictures uploads every picture of 16 MiB and more so. A 186 MB picture took one frame of 84 to 140 ms; it now takes about 17 frames of at most 3 ms each, every picture of a cache within one budget a frame (docs/rendering.md, "Staged upload").
  • ui.cell_row: a row of cells of which only those in view are built. A folder's ten thousand pictures under a viewer build the same few cells as ten; the chosen one stays in the middle, the wheel moves the row and it stays where the person put it. A screen reader hears each cell's place in the whole row, and a focused cell keeps the focus when it scrolls out of view (docs/cell-row.md).
  • Fast JPEG decoding. With toolbox.Feature.Jpeg, a JPEG is decoded by the native library: a 24-megapixel photo in 138 ms instead of 356 ms, and at 1/2, 1/4 or 1/8 of its size in under 90 ms without making the whole picture (Decode_Options.need_side). Pure Rust (zune-jpeg, jpeg-decoder): no C compiler in the build (docs/image.md, "Fast JPEG").
  • image.decode options: orientation, limits and a memory gate. Decode_Options.orient shows a phone's photo upright; max_pixels and max_bytes refuse a picture from its header before any allocation (image.file_dimensions; a GIF's first frame counts, a progressive JPEG's coefficients too); large decodes wait at a process-wide byte budget (image.decode_gate), so several decode threads never hold several huge pictures at once. A program raises the Odin core's 8192 x 8192 cap with -define:MAX_DIMENSIONS in its project's defines (docs/image.md, "Large pictures").
  • Every frame of a GIF. gif.Decoder and next_frame give an animation frame by frame, each drawn over what the one before left, with its delay; gif.decode_frames gives them all within a byte budget, or the first alone for a thumbnail. A frame that claims 65535 by 65535 pixels is refused before any allocation; gif.canvas_size gives the canvas a decode makes without decoding it (docs/gif.md).
  • gt:exif: a camera's metadata. exif.read gives a photo's camera, lens, date, exposure and GPS from a JPEG, PNG or WebP; exif.orientation and exif.thumbnail (the camera's own small JPEG, shown at once) read without allocating; exif.set_orientation turns a JPEG losslessly. Damaged metadata reads as none (docs/exif.md).
  • The main zone: ui.view_show_main(vs, id, data) shows a view in place of the window's content, which comes back when the view closes or moves away (its state kept meanwhile); ui.views_main says which view is there. Its place is remembered with the layout, the focus leaves the hidden content, and F6 skips it.
  • The corners of a dock space: View_Dock_Options.top_span and bottom_span (ui.View_Span: .Content, .Left, .Right, .Full) say how far the top and the bottom zones go across, as VS Code's panel alignment. The window's frame lays its bottom panel under the content alone by default: a terminal at the bottom no longer runs under a sidebar, which goes the window's full height; a space of the program's keeps .Full. The person's choice (ui.views_space_set_span, the settings' Window page with prefs_page.Page_Options.views) is kept with the layout; drops land where the span says, and a change of span keeps the content's state.
  • ui.tooltip_near(at): a tooltip about a rectangle that is no box (a part of a drawing, a node's header): below it, above it or beside it, on the side that covers the least of it, inside the window.
  • Graph_View.hover_node: the node under the pointer (its ports count), 0 for none, so a program shows something about it without its own hit test. The link under the pointer is now Graph_View.hover_link (it was hover).
  • A look per link in ui.node_graph: Graph_Options.link_looks gives each link an intent (the theme's hue of it, following the theme) and a dash (.Solid, .Dashed, .Dotted, scaled with the zoom). A link with no look keeps the colour of its out port's kind.
  • ui.node_graph lays a graph out from top to bottom: Graph_Options.direction = .Down puts the in ports along a node's top edge and the out ports along its bottom edge, and links bend vertically: a tree. A named port shows its name in a tooltip when the pointer rests on it.
  • process.tree_start: a child that starts children runs as a tree that ends whole, at tree_kill or tree_close, when its child ends, and when the program ends however it ends (a crash and a kill included): on Linux a keeper process per tree (the program's own executable again) and a session of its own, so no terminal prompt stops the child, on Windows a Job Object with no breakaway. tree_signal and tree_wait act on the tree. See docs/process.md.
  • gt:rpc: a JSON-RPC 2.0 peer over a child's standard input and output, for ACP agents (gemini --acp, agy acp, claude-agent-acp, codex-acp) and language servers: one message per line (ACP) or Content-Length headers (LSP); requests both ways, the child's answered later from any thread; a time limit per request and ACP's or LSP's cancel; messages drained on the program's thread after a wake procedure (ui.post); bounded memory (a message's size, the bytes waiting both ways, back-pressure on the child); bad messages as values; a stop bounded by its graces; the end with its exit code or signal and the last bytes of the standard error. See docs/rpc.md.

Changed

  • A stack's Maximise keeps chosen zones and is remembered: ui.views_space_maximise(vs, name, edge, stack, keep) maximises a stack while the zones of keep stay as they were (a sidebar), ui.views_space_restore ends it; the person's Maximise keeps View_Dock_Options.maximise_keeps. A double click on a stack's strip maximises or restores it, as its button, its menu and Escape do; a drop into a hidden zone ends it. The maximise is kept with the layout and comes back once its stack's views reopen.
  • A node graph's ports sit on the node's edges, beside its widgets: left to right, the ports of a side are spread over the node's edge and the widgets and thumbnail start right under the header, so ports no longer push them down. A port's name is drawn when nothing is beside it, else it shows in a tooltip. Graph_Options.port_rows keeps a row per port, with its name, before the widgets. From top to bottom, the ports stand just outside the node's edges.
  • The node graph's minimap has a corner and a size: Graph_Options.minimap is a Graph_Minimap (show, corner, size). By default it is a quarter of the area's width, from 100 to 200 pixels, so it no longer covers a narrow panel. graph_fit (and F, and "Back to content") places the nodes beside or above it, never under it.
  • A node's title takes two lines: it wraps at the node's width, the header growing by one line; a longer title ends its second line with an ellipsis and shows whole in a tooltip when the pointer rests on the header. The title always leaves the room of the state's mark, so a run that starts does not move it.
  • A child started on Windows opens no console window: process.start, process.run and process.tree_start start it with CREATE_NO_WINDOW, so a program with a window that runs git or node flashes no console.

Fixed

  • Photo thumbnails stand upright, and SVG files get one. The file picker's and classeur's thumbnails (ui.file_thumbnail_make) showed a phone's photo sideways; they now follow its EXIF orientation, and the picture cache (gt:pictures) does too. An SVG drawing is drawn as its thumbnail. A JPEG thumbnail is decoded at a reduced size when the program has the fast decoder.
  • ui.chores_stop no longer stops every later task of the process. After one app closed and stopped the chores, a second app in the same process (a program's tests, a window opened after the first closed) never got an answer from ui.task, ui.open or a file dialog. The next use after a stop now starts the chores again; during the stop, a chore that asks for more is still refused.
  • A child started on Linux gets the default signals: process.start and process.run no longer pass on the signals that the starting thread blocks, nor the ignored SIGPIPE of the toolkit, so a child such as yes | head ends at a closed pipe as it does from a shell.

Security

  • process.start and process.run find a command in PATH only, and quote a script's arguments for cmd.exe: a bare name is never looked for in the current folder, where a planted program would run; on Windows PATHEXT finds npm's .cmd shims, and a .bat or .cmd script gets the quoting of Rust's fix of CVE-2024-24576 (BatBadBut): an argument cmd.exe would read as a command is quoted or refused (process.windows_command_line, process.resolve_command). On Windows a child inherits only its three standard handles, not every inheritable handle of the program.
0.364.02026-11-27 10:36 UTCrelease

Added

  • A lock between processes (fsx.file_lock, file_unlock): one process at a time holds the lock of a file, and the others wait for it a bounded time or give up. The system lets it go when the process ends, even after a crash.
  • Curves in the debug window (gt:debug): a program's value animated over time, edited live. A debug.Curve is the program's plain data (32 keys at most, each a time, a value, Bézier handles and the interpolation of its segment: Bézier, linear or constant); debug.curve_eval, curves_eval, curve_span, playback_step (the program's clock, debug.Playback), curve_insert, curve_remove and curve_smooth work in every build, a release too. In a panel, debug.curve and debug.curves (a vector's channels, each in its axis's colour) edit them: keys selected by a click or a box, dragged (Shift keeps the direction, Ctrl snaps to the grid), added by a double click, deleted; handles aligned or broken (Alt); the wheel zooms, the middle button pans, F frames all; a playhead to play, pause, loop, scrub and speed up; the selected keys' time, value and interpolation in fields; undo. Print writes the curves as Odin source to paste back (debug.curve_text; odin_text too). debug.easing edits a ui.Cubic_Bezier with the toolkit's easings as presets; ui.tween_curve tweens along it, ui.cubic_bezier_at, ui.ease_bezier and ui.bezier_param evaluate one. The devtools' Toolkit.debugPanels lists a curve's keys and Toolkit.debugSet sets them. examples/debug_panel drives its drone's hover, sway and landing with them (--debug=Flight).
  • A program that changes its name takes over its earlier install and folders (setup.adopt_earlier, Setup_Options.earlier and program_folder): once at the start, one start at a time, its folders move by one rename per kind (a new folder there already stays, and the earlier one is named). A folder that cannot move ends the start with a message instead of leaving the settings behind; after a few such starts its folder is copied and the earlier one stays. A person's install moves with its choices and its desktop shortcut when the update placed the new program in the earlier folder, which then hands off to the adopted one; another copy installs nothing, and the earlier install goes once the person installed the new one. An interrupted start resumes; adoption_words says each result once, with the new console command and, on Windows, a taskbar pin to make again (desktop.taskbar_pinned). An install for everyone is left to an administrator. toolbox.update_earlier publishes the new program in the earlier product's feed, and refuses a version that is not above the earlier name's last one, so an install several versions late still updates.

Changed

  • A dense panel's labels take the width of its longest label: the debug window's labels' column is no longer 7 ems whatever the labels; it is the panel's longest label's, its sections' indent counted, from 2.5 to 11 ems (a longer label is cut and opens whole). Fields of every depth still start on one edge. ui.Dense_Labels (dense_labels_begin, dense_label_column, dense_labels_end) gives a program's own instrument the same column. Acts one after another (debug.act) share a row.
  • Dropdowns spend no width on nothing: the button's words have their text's inset only and the arrow a small cell at the right edge (it was a lead of 0.8 em and a cell of 1.8 em); every menu's rows (a dropdown's list, a context menu, a menu bar's menus) put the check closer to the edge and the words closer to the check. In a dense scope (ui.dense_scope) the button is tighter still and its list is dense: the scope's text, rows a dense row high, the check at the left.

Fixed

  • A dragged number's digits stay whole: the two ticks at the value's place stop short of the digits when they fall under them; in a dense field they touched the digits and read as a bar through them ("0.92|0").
  • An open list follows its button: a dropdown's list or a button's menu, open while its button moves (a view dragged, a panel scrolled or laid out again), moves with it and stays in the button's room; it stayed where it opened.
  • A cut short word's bubble is one line, sized to it: the bubble that shows a cut text whole showed "Bézier" as "Bézi / er" with a wide padding. Its text now shows at its own size on one line with the text's inset as its padding, Copy and the cross after it; a long text wraps between words only; opened from a dense scope, the bubble is dense.
  • A dropdown's list shows its rows and its hint whole, inside its button's room: it is never narrower than its widest row nor than its search field's hint (ui.search_band_width), and a list wider than its button, opened near the right edge of the view its button is in, moves left to stay inside it; a list wider than that view stays by its button.

Security

  • An uninstall never deletes through a link out of the install folder. A file that the install's record names behind a folder that is a link (made by hand, or planted beside a changed record) stays where it is; the removal of an earlier name's install at a program's start has the same bound.
0.363.12026-11-27 10:02 UTCrelease

Fixed

  • An open find bar no longer takes Shift+Enter from other fields. While a view's find bar was open, Shift+Enter typed in any field built after it (a message composer, a multi-line field) did nothing: the bar took the key even without the focus. The bar now asks for it only while its own field has the focus. A parts field's open list and a card stack no longer take Escape, Left or Right they do not use.
0.363.02026-11-27 07:51 UTCrelease

Added

  • Debug panels (gt:debug): a program shares its own state and acts with a debug window, in a few lines. A panel is a procedure registered once (debug.panel) that calls debug.number, vector, toggle, choice, text, color, watch, plot, act, section and value (any Odin value by reflection, with debug:"0..1", "ro" and "-" field tags); debug.odin_text writes a value as Odin source. Ctrl+Alt+Shift+D opens the debug window in a build with the devtools: a dense view with a View tab (wireframe, exploded view, zoom, density, frame times), a tab per panel, a pin that sends a panel to a view of its own, and a filter that lights the words it matches. The devtools' Toolkit.debugPanels, Toolkit.debugSet and Toolkit.debugPress list, set and press by the same paths; tk cdp debug, debug-set and debug-press (and cdp.debug_set) do it from a script. A release build compiles every call to nothing. The dense pieces are in ui for a program's own instruments: ui.dense_scope (square corners, as View_Options.square makes a floating view; View_Options.dense makes its header a row of tabs), ui.drag_number and ui.drag_vector (drag, Shift slower, Ctrl faster, wheel, keys, double click to type), ui.tree_header, ui.dense_row. examples/debug_panel shows a drone and its panels.

Changed

  • A scroll in progress keeps its view: while the wheel turns on with no rest of ui.WHEEL_LATCH_MS (350 ms), a box inside the view it scrolls that takes the wheel itself (a dense field, an editor) and slides under a still pointer does not take the wheel; a wheel that starts after a rest goes where the pointer is, and a box that has the keyboard takes it at once.
0.362.02026-11-26 21:57 UTCrelease

Added

  • ui.badge_dot: a dot on a button's corner, a state with no count. .Pulse makes it breathe at 20 steps a second, not a frame per refresh, and it is still when the animations are off.
  • A tool bar's tool says more in the bar: Toolbar_Tool.bar_label gives the bar shorter words ("high") while the menu row, the tooltip and a screen reader keep label ("Thinking: high"); lit shows its face while a picker it opened is open, and a screen reader hears it expanded; icon_intent colours its glyph in an intent's hue (a mode it shows); badge puts a count on its corner and dot a still or pulsing dot, in badge_intent's hue; a screen reader hears the count after the tool's description.
  • Toolbar_Group_Options.end: a group at the end of a tool bar that folds. It stands before the "…" button and the pinned groups (a terminal and a stop beside Send); .Fold folds it into the "…" menu by its priority, .Wrap keeps it at the end of the last line.
  • A window's taskbar button (platform.taskbar_progress, taskbar_badge, taskbar_attention, ui.taskbar_badge): a program shows a progress, a count and a request for attention on its button. On Windows the progress has its five states, the count is a disc in the theme's accent with its words read by a screen reader, and the button flashes; the button gets the state again after Explorer restarts. On Linux, KDE Plasma, Dash to Dock, Plank and ShojiWM's task bar show the count, the progress and the urgency; X11 window managers and KWin, Mutter and sway on Wayland mark the window; no other Wayland compositor is asked, as one could give the window the focus. Each call does nothing when nothing changed. Offscreen windows send nothing, so a program's tests do not show a count in the developer's dock.

Changed

  • A tool bar's tools in words have no face at rest: ui.toolbar_tool with words shows its face only under the pointer, pressed, focused or lit, as a glyph tool does, so a bar reads as one surface instead of a box per word. The bar's main act, words of intent .Primary (Done, Send), stays raised. Toolbar_Tool.face chooses .Ghost, .Raised or .Link for one tool.

Fixed

  • ui.badge on a button in words sits on its corner: a floating box sized as a share of a box sized by its children (a badge over a button in words) is now that share of the box, not of a distant ancestor. The count stood far to the right of the button, and the layout printed a warning.
0.361.02026-11-26 20:10 UTCrelease

Added

  • An install for everyone: the install dialog and the Installation page offer "Only me" or "Everyone on this computer", each with what it means on this system. For everyone, the program goes to Program Files (Windows) or /opt (Linux), its menu entry, PATH and record are every account's, and an administrator allows it in one prompt (runas, pkexec). Each account keeps its own desktop shortcut and start with the session. Choosing the other scope moves the install. On NixOS the choice says that the Nix package is the install for everyone. Setup_Options.scopes lets a program stay per person; Facts.scope, Facts.other_scope, Facts.system_refusal and desktop.Scope say the state. The updater of a copy that its account cannot write is Administered: it downloads nothing and says that an administrator updates it. On Windows, Uninstall of an install for everyone says that the program goes at the next restart.

Changed

  • Task Manager needs an install for everyone: the Debugger of taskmgr.exe now runs the program installed in Program Files, and the box "in place of Task Manager" is off under "Only me", with the reason. The machine copy beside a user install, its hand-off, Facts.machine_copy and --task-manager on|off are gone; the elevated verb is --system install|uninstall. setup.task_manager_start(args) now returns the arguments alone.
0.360.12026-11-26 16:07 UTCrelease

Fixed

  • Programs are 860 KB smaller again: since 0.360.0 a build in a fresh tree (a Nix package, the CI's release) put the whole Lucide icon font in the program instead of the icons it uses; a project with the Lucide subset now never builds without it.
0.360.02026-11-26 10:29 UTCrelease

Added

  • desktop.Part.Task_Manager: on Windows, a program can take the place of Task Manager (Ctrl+Shift+Esc, the taskbar, Ctrl+Alt+Del) with Integration_Options.task_manager, offered as a setup box tied to the part.
    • The Debugger of taskmgr.exe runs a copy of the program in Program Files, which only an administrator can write: the image of the elevated process itself, held open while it is copied. That copy hands over to the person's own install when it is not elevated (setup.task_manager_start), so updates need no administrator.
    • Install and Uninstall ask Windows for an administrator (--task-manager on|off with runas), and only when a person asked (ask_administrator); the box says why. Off gives back the Debugger that was there before, exactly.
    • An Uninstall gives Task Manager back only when this account put it, and first: declined or failed, nothing is uninstalled.
    • Linux has no such part.

Fixed

  • --install: an install from the command line keeps the parts that the system has for each box (choices_from_facts), as the dialog does: it no longer takes away a default file manager that an earlier Install put.
  • Default file manager on Windows: a folder or a drive that another program opens with the verb open or explore (ShellExecute, Python's os.startfile, most "Open folder" buttons) now opens in the program, not in File Explorer. An install made before gets the part "to repair" until Install runs again.

Security

  • Library search on Windows: host.program_start (and setup's command line) first limits where a library loaded by name is found to the program's folder and System32 (base.dll_search_restrict). A library of that name in the working folder or on the PATH is no longer loaded.
  • gt:instance on Windows: an elevated program no longer accepts the messages of a program of lower integrity (a second start, a link): any program of the user could make it open a section, a file or a URL with the administrator's rights. Such a start now runs on its own.
  • Elevated programs run nothing that a user can change (base.restricted): a program that runs as administrator or as root no longer starts a program outside the system's and Program Files' folders (process.start), opens URLs, files, folders, terminals, "Open with" or the items of the shell's context menu, installs, uninstalls or updates itself, runs plugins or a devtools server. A toast, or its Installation and Updates pages, say why, in that system's words ("as administrator", "as root"), and on Windows its window's title says "(Administrator)". A token that cannot be read counts as elevated. Command-line tools made with the toolkit are not restricted: they run what the person typed.
0.359.02026-11-25 22:09 UTCrelease

Added

  • A selection rectangle starts from the empty part of a row: in a ui.Table of several with rubber_band, in Details and List, a drag from after the text or between the cells draws the rectangle; a click there selects when the button is let go, and the list keeps half a row of room at its end. Ctrl and a drag from a row's text start it too. A program with rows of its own takes ui.List_State.pressed_empty (or ui.row_content_at), ui.item_band_row_press, the row_press of ui.item_band_update and ui.Virtual_List.end_space.

Fixed

  • The selection rectangle shows wherever the view is scrolled: ui.item_band_update builds it in the view's own box, at its scroll, so it is no longer drawn out of a scrolled list or of Columns. A drag started with Ctrl on an item goes on when that item scrolls out, the rows repaint at once, and a band whose view was hidden does not follow a later press.
0.358.22026-11-25 16:32 UTCrelease

Changed

  • h264.to_nv12 and h264.to_i420 SIMD acceleration: BGRA and RGBA conversion to BT.709 limited-range NV12 and I420 now runs on portable 128-bit SIMD with a runtime-checked AVX2 path on amd64, cutting 2560x1440 and 3840x2160 conversion time by 6x to 11x with byte-identical output.

Fixed

  • platform.drag_start with no window answers that it could not start on Windows too: it crashed there; Linux already said so.
  • gt:mux: a fragmented MP4 no longer corrupts the heap: from the second fragment on, the muxer wrote into a sample it had freed, so a program crashed later in an unrelated allocation (a screen recording with fast_start = .Fragmented).
0.358.12026-11-25 15:20 UTCrelease

Fixed

  • ui.checkbox checkmark contrast and Ember Light accent: checkmarks now use the theme's accent_text (falling back to ui.ink_on to keep WCAG AA contrast >= 4.5:1) instead of hardcoded white, fixing unreadable checks on bright dark-theme accents; Ember Light's accent deepens to #b8521d so light ink reads at >= 4.5:1 WCAG AA on it.
0.358.02026-11-25 12:04 UTCrelease

Added

  • Nearest-neighbour and pixelated image filtering (draw.set_image_filter, render.FLAG_IMAGE_PIXELATED, render.FLAG_IMAGE_NEAREST): draw.set_image_filter(dc, .Smooth | .Pixelated | .Nearest) sets per-instance image sampling for image, image_corners, image_cover, image_tiled, and retained draw.Picture recordings without adding extra GPU samplers or splitting GL batches. .Pixelated fetches nearest texels when magnifying and falls back to trilinear filtering with mips when minifying; .Nearest fetches nearest texels at every scale.

Fixed

  • Linux desktop light/dark detection (platform.dark_mode_preferred, platform.watch_color_scheme): treat an XDG Settings portal org.freedesktop.appearance color-scheme of 0 (no preference, which GNOME and xdg-desktop-portal-gtk report for light mode) as light instead of falling through to stale GTK 3 settings, fall back to Read when ReadOne is unavailable, reject malformed non-integer portal replies, and keep internal color_scheme_serial tracking independent from an application's watch_color_scheme callback so neither overwrites the other.
0.357.02026-11-25 11:32 UTCrelease

Added

  • config.bind: binds a typed settings struct to a preference prefix in one call (optional defs registration, initial read, automatic refresh with optional destroy for owned fields, optional on_change callback, and automatic cleanup in prefs_destroy or unwatch).
  • A drag carries a window on Wayland (platform.Drag_Carry, drag_carry_supported): drag_start takes a window that the compositor moves with the pointer while the drag runs (xdg-toplevel-drag-v1), with grab scaled to logical surface coordinates and Drag_Carry.frame called while the drag holds the thread. Without compositor support it falls back to a normal drag.

Changed

  • Native text backend (gt_text) uses ICU4X's LSTM line segmenter: switches icu_segmenter from the 1.01 MiB dictionary data to the 303 KiB LSTM model for Thai, Lao, Khmer, and Myanmar line breaking, trimming ~725 KiB of .rodata from every binary that links gt_text.

Fixed

  • ui.THEMES no longer emits an Odin large non-constant initializer warning: Old Head's relief is assigned once at startup so the 15 KiB theme table compiles as static data.
0.356.22026-11-25 09:21 UTCrelease

Fixed

  • prefs_page free fields: commit edits on focus loss (click or Tab), resync empty-string defaults on Reset, Escape or external updates, and flush pending edits on page switch, search filter change, back_bar, escape_leaves, export_to and prefs_page.flush.
0.356.12026-11-24 13:40 UTCrelease

Fixed

  • A program that imports gt:process no longer runs a test's code at its start. The child mode of gt:process's own test (an @(init) that read an environment variable) was built into every program that imports the package; that test is now a test package of its own, and the toolkit's checks refuse an @(init) in a test file of the library.
0.356.02026-11-24 13:08 UTCrelease

Added

  • Rich_Result.link_middle_clicked: a middle click on a link of a rich_paragraph reports that link, with link its target (a new tab). A middle press on a link starts no autoscroll; a middle press on the paragraph's plain text still starts it. Box.middle_at lets any box say which of its points take the middle button.

Removed

  • render.frame_waitable: a program that waits for the swap chain itself calls render.wait_frame_slot(&r, win, timeout_ms, until_press). It takes the window's input while it waits, as platform.wait_handle did; a timeout_ms of 0 only asks whether the swap chain can take a frame now. The renderer must see every wait to keep the frame latency object exact.

Fixed

  • The toolkit's French catalogue is complete again. The "Open with" submenu ("No application", "%s did not start.") and the annotation editor's tools and style row show in French, not in English.
  • A resize spam no longer leaves the window behind (Direct3D 11): after many quick resizes from a corner, every later resize showed the content about half a second behind the window, until the window closed. Each frame shown at once during a resize left one frame more in the queue of the swap chain; the renderer now counts those frames and takes them back, and the window stays as responsive as before the spam.
0.355.02026-11-24 11:53 UTCrelease

Fixed

  • A failure in an unwatched.run body ends the test at once on Windows: a session's action that fails, or testing.fail_now, ends the body there, its cleanups run on its thread, and run returns. Before, the test blocked until its time limit and leaked the body's thread. unwatched.end_body(t) ends the body for other code that stops a test.
  • ui.view_open on a docked view that is already open shows its tab: the view becomes the tab shown in its stack, a minimised zone is restored, and the focus goes to its first stop. The order of the tabs stays.
0.354.02026-11-24 11:28 UTCrelease

Added

  • Preview_Options.shift_wheel_free: Shift+wheel over a preview is the program's, neither a zoom nor a pan. ui.wheel_free gives the program the wheel that no box took, with its modifiers. A box leaves Shift+wheel to what is around it with .Shift_Wheel_Free.
  • ui.swipe_step: a horizontal swipe of the fingers on a touchpad gives one step, +1 or -1, per gesture (ui.Swipe). A gesture ends when the fingers lift or after 150 ms with no scroll. A wheel's notches never count.
    • platform.Event.scroll_source says whether fingers or a wheel made a scroll, and scroll_end that the fingers left the touchpad. Wayland says both; Windows counts a delta that is not a whole notch as fingers; X11 gives notches only.
    • On Wayland, the axis events of one pointer frame now come as one Scroll event.
    • session.finger_scroll and session.finger_lift drive it in a test.
0.353.02026-11-24 10:59 UTCrelease

Added

  • Mermaid diagrams in Markdown (markdown.Diagrams, View_Options.diagrams): a closed ``` `mermaid `` block shows its diagram, laid out on a chore (mermaid.layout) and kept by its text and the theme's lightness, its text shown until then; markdown.diagram_block for a program's own code blocks and markdown.diagram_view` for a diagram zoomed and moved in a preview.
  • prefs_page.program_files, prefs_page.prefs_open: a program's standard files (preferences, themes, views, the palette's and the file dialogs' memory) in one value, empty in memory for a test; and the start of its preferences in one call: the standard ones, the program's, What's new's version, the file, then --pref.
  • host.instance_serve, host.instance_serve_stop: a program's single instance served for its window: PING answered, QUIT and each second start's launch handed to the window's thread, the window raised with the launch's token. A post that fails at the window's end loses nothing.
  • instance.Launch, instance.launch_encode, instance.launch_decode: one message for a program's second start: the launcher's activation token and a list of words (paths, or a command's words), each word kept whole whatever bytes it holds; a PING, a QUIT or broken bytes are no launch.
0.352.02026-11-24 10:33 UTCrelease

Added

  • desktop.handler_icon and Handler.icon: an "Open with" application's icon, from its desktop entry on Linux and from the shell on Windows.
  • ui.Open_With: the "Open with" submenu (open_with_ask, open_with_items, open_with_chosen, open_with_run, open_with_destroy): the applications that open a file, with their icons, the default first, read on a chore; the file opened with the one chosen. The file picker's row menu of a local file has it.
  • The file picker shows a folder's changes with no F5: a file added or removed in the folder shown appears or goes, the selection kept. A source follows the folder with File_Source.watch and says a change with file_reply_changed; the computer's source does it with fsx.Watch.
  • fsx.Watch: folders followed (watch_open, watch_set, watch_wait, watch_stop, watch_close): a thread waits until a folder of the set changes and gets their paths, close changes told as one (WATCH_QUIET_MS, WATCH_MAX_MS). inotify on Linux, change notifications on Windows.
0.351.02026-11-24 10:00 UTCrelease

Added

  • ui.Status_Line: a status bar's message that goes by itself. status_say(&s, format, ..args, shown_ms = STATUS_SHOWN_MS), status_text(&s) ("" once its time is past; the window wakes then), status_clear, status_destroy.
  • ascii.compare_natural: names in the order a person reads them: "file 2" before "file 10", "a1" before "a01", case ignored, digit runs of any length.
  • host.restart_after_exit(&p, args): "Restart now" after an update. program_end ends the session, then starts the executable program_start read (Program_Start.executable: the new copy, not <exe>.old), then closes the log. Program_Start_Options.launch replaces the start in a test.
  • process.start, process.run, process.pipe: a child started under one lock of the process, held around the spawn only, never around the wait. run(command, Run_Options{dir, env, input}) waits for the child and gives Ran{started, ok, code, stdout, stderr}, its output and error read at once and its input written on a thread. A pipe's ends are inheritable on Windows only while their own child starts. The toolkit's own children (the desktop's tools, the thumbnailers, NixOS's patch, the file picker's portal, the plugins, the film's ffmpeg, setup.launch, the tools) start through them.

Changed

  • Natural order in the tables and the file picker: every text column of ui.Table, the file picker's path bar and the settings' path completion sort names with ascii.compare_natural: "file 2" comes before "file 10".
0.350.12026-11-24 09:30 UTCrelease

Fixed

  • The annotation editor's style line no longer stacks its controls. The colour swatches, the "No fill" button, the Width and Corners sliders and the line choice each keep their own place at every width of the editor; the bar wraps onto more lines when it lacks room.
0.350.02026-11-24 07:04 UTCrelease

Added

  • ui.Mark_Editor, ui.mark_editor_dialog and gt:marks: a person draws on a picture before it is sent: boxes, ellipses, arrows, lines, ink through gt:ink (pressure, smoothing), a highlighter, text, pixelated and blurred parts, a crop; selection, handles, order, zoom and pan, undo and redo, keyboard shortcuts. The program chooses the tools, their first styles and the colours. Done gives the picture with its marks as RGBA, flattened on the chores. The editor goes in any box, or in a dialog with one call ([docs/mark-editor.md](docs/mark-editor.md)).
0.349.12026-11-24 06:41 UTCrelease

Fixed

  • gt-file-picker shows WebP pictures on Linux: its thumbnails and its preview decode WebP files (the toolkit's decoder), as they decode PNG and JPEG, instead of showing their icon when the system has no thumbnail of them.
0.349.02026-11-24 06:17 UTCrelease

Added

  • gt-file-picker looks like the desktop: it shows the Ember theme in the desktop's light or dark version, follows a change while it is open, and --theme NAME[:light|dark|system] lets a caller choose another look.
  • The file picker's preview can be closed: a button at the right of the path bar and Alt+P show or hide it, and each dialog's remember_id keeps the choice. A closed preview reads no file.

Fixed

  • A card's thumbnail fills its card: thumbnails are asked at the card's size (128, 256, 512 or 1024 pixels), so the large views of the file picker no longer show a small picture in a large card; a card that grows keeps its picture while the larger one comes. thumb_cache_get takes the card's size.
0.348.02026-11-24 05:25 UTCrelease

Added

  • ui.path_bar_pointer_on: whether the pointer is on a path bar's dropdown, a popover outside the bar's parent: a press on a program's part counts it too.
  • gt-file-picker: a file picker any program calls, on Windows and Linux: gt-file-picker open|save|folder prints the paths chosen (or JSON with --json), exit code 0 chosen, 1 cancelled, 2 an error; --portal makes it the desktop's file chooser through the XDG desktop portal (Linux). Each release ships gt-file-picker-windows-x64.zip and gt-file-picker-linux-x64.tar.gz (tk file_picker_package).
  • gt:file_request: a picker's request and answer as text: a command line (parse_args), JSON both ways (parse_request_json, request_json, answer_json, parse_answer_json), the exit codes, and the XDG desktop portal's FileChooser calls (portal_read_call, portal_write_reply); on Linux, the portal's backend that answers each call with a process (Portal_Server, portal_open, portal_run).
  • A file picker's request as a value: platform.File_Request (a kind and a File_Dialog), choices beside the files (File_Dialog.choices, File_Choice; their values in Dialog_Result.choices, shown by the toolkit's picker as check boxes and drop-downs), platform.file_dialog_clone, file_dialog_free and dialog_result_clone.
  • ui.File_Picker: the file picker as a component a program builds in its own layout (a side panel, an "Open" page, a docked view): file_picker_init, file_picker(id, &p) at each build, file_picker_destroy. A build returns File_Picker_Events (the answer, another folder, another selection); file_picker_folder, file_picker_selected, file_picker_focus, file_picker_start and file_picker_stop complete it. Several live at once; each reads the keyboard only with the focus in it.

Changed

  • ui.file_dialog is a picker in a view: the same call and the same done, rebuilt over ui.File_Picker. File_Dialog_Kind moved to platform; file_browser_counts(s) is file_picker_counts(file_dialog_picker(s)); the FILE_BROWSER_* constants are FILE_PICKER_*, and the dialog's sizes FILE_DIALOG_*_EM; a source's File_Reply names its picker and its request (picker, serial) in place of dialog.

Fixed

  • A window that closed after a right click on a file no longer hangs: ui.shell_menu_destroy stops the system menu's worker before it lets its answer's gate go; the answer of a query still on its way read freed memory, and the close waited for ever.
  • The file picker's side buttons: the mouse's Back and Forward buttons go back and forward in its history, as Alt+Left and Alt+Right, with the pointer on the picker or on its path bar's dropdown, a field with the keyboard or not.
0.347.02026-11-23 20:52 UTCrelease

Added

  • A test's crash names its place on Linux (gt:testkit/crashsite): session.start, unwatched.run and testkit.temp_folder chain a handler after the test runner's: a SIGSEGV, SIGILL, SIGFPE or SIGBUS writes its module, offset and nearest symbol to the log, and a fault on a thread the runner does not stop ends the run at once instead of spinning until the CI's time limit.
0.346.12026-11-23 20:20 UTCrelease

Fixed

  • A segmented control's chosen label always reads on its pill: when a theme's or a program's accent_text does not reach WCAG AA (4.5) on the accent, the label takes the page's or the text's colour made readable there, so a light accent no longer leaves the chosen word unreadable.
  • Opening the file browser on Windows no longer crashes with 0xC0000374 (RtlFreeHeap). Odin's os.stat aliases the caller's path string inside File_Info.fullpath whenever FILE_ATTRIBUTE_REPARSE_POINT is set (NTFS junctions in a user's folder such as My Documents or Application Data, symbolic links, and OneDrive cloud files), so os.file_info_delete freed the path a first time and the caller freed it a second time. fsx.stat_follow now resolves links and file sizes directly from the OS without heap allocation in the file browser, thumbnail loader, and themes watcher.
0.346.02026-11-22 06:25 UTCrelease

Added

  • Pen pressure and tilt on X11: the X11 backend now optionally loads libxcb-xinput.so.0 (XInput 2.0), discovers pen and eraser devices (including hot-plug), and emits Pointer_* events with measured pressure, tilt in turns, barrel button, and eraser state alongside emulated Mouse_* events, matching Windows and Wayland.
0.345.02026-11-21 23:48 UTCrelease

Added

  • Command palette file source (ui.Palette_Files): plugs a gt:filesearch index into ui.Command_Palette under the / (Paths) prefix (palette_files_add, palette_files_set, palette_files_opened, palette_files_destroy) with background search and asynchronous LMDB frecency recording.
  • System shell context menus with icons (ui.Shell_Menu, ui.file_dialog, desktop.Context_Item.icon): desktop.Context_Item now carries optional RGBA icons extracted from Windows IContextMenu bitmaps (MIIM_BITMAP) and Linux KIO/Nemo/Thunar icon names; ui.Shell_Menu renders async shell menus with bitmap icons inside any ui.menu, and ui.file_dialog now shows system shell actions for local files without delaying menu open.
0.344.02026-11-21 22:54 UTCrelease

Added

  • Fast file search (gt:filesearch): new optional native package backed by fff-search (native/filesearch, toolbox.Feature.Filesearch, -define:GT_FILESEARCH=true) with typo-tolerant name search, match byte ranges, mixed file and folder search, pagination, live filesystem watching, and shared LMDB frecency ranking (note_opened).
0.343.02026-11-21 20:49 UTCrelease

Added

  • Portable SIMD UTF-8 validation (gt:utf8), SIMD ui.fuzzy_score and ui.Frecency:
    • gt:utf8 validates UTF-8 16 bytes at a time (#simd[16]u8, base:intrinsics only, optional reject_controls), verified against a scalar reference across 400 000 fuzz inputs and boundary windows; gt:site now uses it.
    • ui.fuzzy_score runs a portable #simd[16]u8 fast path on ASCII candidates up to 128 bytes with bit-exact results verified over 200 000 fuzz inputs.
    • ui.Frecency adds a storage-independent frecency ranking table (frecency_note_use, frecency_score, frecency_bonus, frecency_encode/frecency_decode), sharing modus's exact decay and bonus model.
0.342.02026-11-21 18:48 UTCrelease

Added

  • ui.ink_for(row, fg) and custom-drawn .Chosen rows:
    • ui.ink_for(row, fg) exposes the toolkit's selection-ink mapping (title ink, weak/faint/soft ink, or custom colour pushed to 4.5:1 contrast, returning fg unchanged when row == nil or not chosen) for programs that pass an explicit fg inside a selected row.
    • Custom-drawn .Chosen rows (without .Draw_Background) now use their target_bg selection fill as the ground when computing inks, fixing dark ink on Old Head's navy selection.
0.341.12026-11-21 17:52 UTCrelease

Fixed

  • Input on secondary windows on Wayland: pointer, keyboard and other events arriving on any shown window other than the first now wake host.hosts_wait (wl_wait) at once instead of piling up until the first window receives an event.
  • Readable details and search highlights on selected rows: secondary (weak, faint, soft) and coloured text inside a selected row now adapt their ink to the selection's background (at least 4.5:1 contrast at rest and hovered, in every theme), matched letters in a selected row (match_runs, label_fuzzy, palette) are underlined in the row's ink instead of tinted with match_bg, and find-bar matches switch their text ink to black or white when a theme's tint over a selection would leave find_text hard to read.
0.341.02026-11-21 17:22 UTCrelease

Changed

  • Scroll wheel on every steppable control and sleeker sidebar rows:
    • Numeric preference fields (including Size fields such as "4 MiB" and unbounded numbers) now step with the mouse wheel and Up/Down/Page keys (focus required inside scrolling views, Shift multiplies by feel.step_shift).
    • Closed ui.dropdown, ui.segmented (both looks) and closed ui.font_picker now step to their previous/next choice on the mouse wheel (wheel_steps).
    • .Row navigation buttons stay on one line, truncate cleanly with … and show a hover tooltip when narrow; non-.Row buttons that wrap onto multiple lines keep vertical padding above and below their text.
    • Collapsed sidebar icon rails (icon-only .Row buttons and folded view-zone rails) show their tooltip immediately on hover with zero delay (Button_Options.tip_now is also available on any button).
    • The showcase sidebar is now a resizable, foldable ui.Side_Panel, and its Light/Dark toggle now switches to a theme with the requested version when the current theme is single-mode (such as Graphite).

Fixed

  • Node graph minimap freeze and Back to content: dragging near or past the edge of a node graph's minimap no longer accelerates the view exponentially into a float32 grid-loop freeze (the minimap transform freezes during the drag and the grid loop is bounded in f64), and panning all nodes off-screen now shows a "Back to content" button above the minimap to fit the graph back into view.
0.340.02026-11-21 16:58 UTCrelease

Added

  • Asynchronous system shell context menu (gt:desktop): Context_Menu (context_menu_query, context_menu_invoke, context_menu_clear, context_menu_destroy) queries and invokes third-party shell actions off the interface thread (Windows IContextMenu / IContextMenu2 / IContextMenu3 on a dedicated COM STA worker; Linux KIO service menus, Nemo actions, and Thunar uca.xml), with caller-supplied exclude_verbs, mnemonic stripping, and submenu/separator pruning.
0.339.12026-11-21 16:27 UTCrelease

Fixed

  • Linux platform.open_path opens files with the default application: open_path (and open_url on file: URIs) calls xdg-open directly instead of sending file:// to org.freedesktop.portal.OpenURI.OpenURI, which rejects file: URIs while call_noreply hid the rejection.
0.339.02026-11-21 11:05 UTCrelease

Changed

  • Every angle is in turns: a whole circle is 1, a quarter turn 0.25, in every package (src/md/infrastructure/angles.md). The new package gt:turn gives sin, cos, sincos, tan, atan2 (in turns), asin, acos, wrap and the conversions from_degrees, to_degrees, from_radians, to_radians ([docs/turn.md](../docs/turn.md)); a multiple of a quarter turn is exact (sincos(0.25) is (1, 0)), so a rotation by a quarter turn is an exact matrix. Degrees and radians remain only where a system, a file or a person gives them (a pen's tilt, SVG, CSS text, a COLR font, the PDF engine), converted once; tests/angles holds the rule. A program changes each of these calls (the direction and the zero of each are unchanged):
    • draw.affine_rotate(radians) -> affine_rotate(turns); draw.affine_skew(ax, ay): radians -> turns
    • draw.filter_hue_rotate(radians) -> filter_hue_rotate(turns)
    • draw.Gradient.angle (Conic, clockwise from up): radians -> turns
    • draw.path_arc(p, center, radii, from, to): radians -> turns (a whole ellipse: 0 to 1)
    • paint.rotate_at(m, degrees, cx, cy) -> rotate_at(m, turns, cx, cy); paint.arc(p, x, y, w, h, start, sweep): degrees -> turns
    • image.hue_rotate(img, degrees) -> hue_rotate(img, turns); image.Fill.angle (0 upward, as CSS): degrees -> turns
    • ink.Sample.tilt (-90..90 -> -0.25..0.25) and ink.Pen.nib_angle (30 -> 1.0 / 12): degrees -> turns
    • platform.Pointer_Info.tilt (-0.25..0.25) and .twist (0..1), so ui.pointer_device().tilt: degrees -> turns
    • pdf.Stamp.tilt (-45..45 -> -0.125..0.125): degrees -> turns
    • a count of quarter turns is named quarters, an angle turns: pdf.Stamp.turns -> pdf.Stamp.quarters, pdf.Page.turns -> pdf.Page.quarters, image.rotate(img, quarter_turns) -> image.rotate(img, quarters) (the values unchanged)
    • render.Video_Picture.rotation: an int of degrees (0, 90, 180, 270) -> an f32 of turns (0, 0.25, 0.5, 0.75)
    • ui.Exploded_View.yaw and .pitch, ui.Licence_Card_Look.rx and .ry, ui.licence_card_seal_reveal(rx, ry): degrees -> turns
    • ui.srgb_to_hsl, ui.hsl_to_srgb, ui.srgb_to_oklch, ui.oklch_to_srgb, ui.to_oklch, ui.from_oklch: the hue in degrees -> turns (CSS text keeps its degrees: color_parse and color_text convert)
0.338.02026-11-21 09:27 UTCrelease

Added

  • ink.Sample.tilt, ink.Pen.tilt: a stylus's lean changes the ink as a real pen's does. A leaned felt or brush lays its side, a broader and lighter line (up to +60% width and -35% ink at Pen.tilt 1); a fountain pen's broad nib turns with the pen, so its thick and thin strokes follow how the person holds it. The presets lean: ballpoint 0, fountain 0.7, felt 0.8, brush 1. An upright pen, or a device without tilt, lays the same ink as before.
  • Marks that are one. pdf.Stamp and pdf.Shape have a group: the engine ignores it, and a program reads the stamps and shapes of a page with the same non-zero group as one mark (a signature's ink, its mention and its caption move and go together).
  • ink.lay, ink.levels: a pen's ink as ink, not a flat fill: Pen.ink (Ink: opacity, dwell, pool, skip, grain, pressure) lays a stroke as pieces of varying density and pools (Laid), the same for a given seed, and levels groups them into a few fills of one alpha each, every contour counter-clockwise. A translucent ink darkens where strokes cross and under its pools, a slow hand lays more ink, a ballpoint skips in bursts and keeps one edge where it starves, a felt or a brush streaks. The presets carry an ink each; every Ink field zero is the solid ink of before.
  • A pen's pressure reaches a program: ui.pointer_pressure() gives the pressure of the pen on the screen (0..1, 0 for a mouse or a device that measures none), as gt:ink's samples take it, and ui.pointer_device() the device that moved the pointer last (pen, finger or mouse, its tilt and eraser). Wayland now gives a tablet's pens (Pointer_* events with their pressure, and their mouse emulation), as Windows did; Pointer_Info.measured says whether the device measured the pressure. A test draws with a pen through session.pen_drag, pen_press, pen_move, pen_hover and pen_release. X11 has no pen pressure.
  • Transitions: a value and a place that change in a set time, and the update badge that morphs from one face to the next.
    • ui.tween takes a curve (ui.Ease: .Linear, .Out, .In_Out, .Sine, .Emphasized; .Out by default, was a smoothstep). A target that changes at every frame moves at every frame.
    • ui.swap(id, face): a place whose content changes face. Its size glides from the last face's to the new one's, the face is drawn at that size with its round ends, its colour morphs, and its words roll character by character. What is in it keeps its own size, never wrapped.
    • ui.morph_text and ui.morph_label keep the characters two texts share (their longest common subsequence) where the new text has them, instead of only those at the same place.
    • The update badge (prefs_page.update_badge) morphs from the "Install" button to its download's bar, which fills from nothing, then to "Restart", in one place. The Updates page says the sizes ("12 MB of 28 MB") above its own bar.
    • The updater says how far a download is: update.Status.received and .size, and update.progress(st).
    • ui.progress(..., lively = true) and ui.progress_fill: a bar in a success button's green, for what the user watches come.

Changed

  • ink.lay: a broad nib (.Chisel, the fountain pen) lays what the nib touches: its rectangle swept along the stroke. The top of a tight loop is the nib's flat side, as a broad pen writes it, where it showed a notch between two lobes. outline and polygon stay the approximation used to draw the stroke under way.
  • ink.Blob: a pool of ink is a drop, not a disc. Its edge varies by about ±15 to 20 % of its radius, and at an end of the stroke it is drawn out into the line, as the ink a nib leaves when it lands or lifts. Each pool of a stroke has its own shape, the same at every render for the same seed. Blob gains direction (into the stroke from its end) and seed; levels draws each pool as 32 points instead of 18.
  • A pen's translucent ink is laid normally in a PDF. gt:pdf lays an Outline's alpha with normal blending (GtInk<alpha>), as gt:ink's stacked levels are computed for; multiplied, a felt's or a brush's ink came out a fifth darker than the program draws it. Other shapes' translucent colours still multiply, as a highlighter.

Fixed

  • ink.outline, ink.lay: a tight loop is round, not a polygon. The outline's points come closer where the stroke turns, so an edge turns by about 8° at most between two of them, where it turned by 30° or more and read as a near right angle (most visible with a fountain pen's broad nib). A broad nib's hairline also begins without a corner.
  • A filled path has no seam where it overlaps itself. draw.path_fill and draw.push_clip_polygon soften only the edges where the fill changes: a pen's ink crossing its own line, or two contours over each other, no longer show a light line through the fill. A path's edges on its bounding box are no longer softened twice.
0.337.02026-11-20 11:34 UTCrelease

Changed

  • Every menu filters what is typed: a menu bar's, a tool bar's, a drop-down's list, a view's menu, the file browser's row menu and a number field's menu now show the field at their top, as the context menus did: the items that do not match go, the first match is selected and Enter chooses it. A letter typed in an open submenu closes it and filters its menu. A drop-down still opens on its current value. Until something is typed, Space chooses the selected item. A panel opened as a menu with no item (a slider) has no field. No menu selects the next item starting with a typed letter any more: the filter's first match does it. For a program's author:
    • menu_open has no search parameter: remove search = false and search = true.
    • Toolbar_Tool has no menu_search field: remove menu_search = false.

Fixed

  • Frames just in time after a window opens: the frames of a resize at a window's opening no longer turn the start just in time off for the rest of the run; an animation reads its input as late as it can from its first frames.
0.336.02026-11-20 10:41 UTCrelease

Added

  • ui.duration_field, ui.parts_field, ui.wheel, ui.wheel_number, ui.wheels: a duration, a time of day or any value of a few parts in one field, each part typed or stepped on its own (Left, Right, Up, Down, digits that go on by themselves), and a click opens the parts' drums below it. A drum turns with the wheel, a drag and a throw, a click on a row and the keys; it rests on a row with a detent and gives one change, at rest. The showcase's Wheels scene shows them.
0.335.12026-11-20 10:32 UTCrelease

Fixed

  • Drawn arrows on the sites: the changelog's Subscribe button, each version and the docs' groups show a chevron drawn on the page, not a character of the font that sat low and read as a "v". A program's site gets its versions' arrow from the toolkit and keeps no rule of its own.
0.335.02026-11-20 09:50 UTCrelease

Added

  • A frame starts just in time: in an animation, a scroll or a drag, render.pace_frame starts each frame as late as it can and still present it before the deadline of its refresh, so its input is read as close to the screen as possible. It times the frame from the screen's vblanks, the deadline the compositor keeps before each one (learned from its answers: Vblank_Timing.lead_ns) and the 90th percentile of the recent frames' cost (platform.Frame_Cost, jit_start, Frame_Decision.just_in_time). A frame later than that goes at once, a key or a button ends the wait, and the first frame after a rest is not delayed.
  • Vblank timing on X11: the Present extension's answers (PresentCompleteNotify) say when each picture reached the screen, as Wayland's presentation answers do (platform.vblank_timing), when the Vulkan driver presents with Present (a software one draws with PutImage: no answer). The answers end no wait of the loop.
  • Vblank timing on Wayland (platform.vblank_timing, platform.vblank_ask, Vblank_Timing): the compositor's presentation answers (wp_presentation) say when each picture reached the screen. render.measured_refresh_hz and render.vblank_grid now answer on Wayland, a frame after a rest takes the measured refresh as its dt, and render.present_totals counts the pictures the compositor showed, not the presents.
0.334.02026-11-20 09:01 UTCrelease

Added

  • The file browser's row menu has the toolkit's own acts, before the program's row_actions, so it always opens: Copy path, Copy name and Copy relative path on every source (one line per entry chosen); Open with its program and Show in folder on the computer's files; Rename (F2, the name edited in its row or its card) and Move to the trash (Delete, a toast whose click puts the entries back) on a source that has the new File_Source.rename, .trash and .restore (answered by file_reply_renamed, file_reply_trashed, file_reply_restored; the computer's source has them). File_Dialog.row_actions_off (a bit_set[platform.File_Row_Builtin]) removes the ones a program does not want. Also new: platform.move_to_trash and platform.put_back (the freedesktop.org trash on Linux, the Recycle Bin on Windows), and Table.editing, edit_id and edit, a name edited in place in any table.
  • A program's flake builds from GitHub. nix run github:owner/program fetches a tarball without the toolkit's submodule; a program's flake now takes the toolkit from a gui_toolkit input pinned to the submodule's commit (docs/toolbox.md, "The flake's toolkit"), and the check's new step Flake_Toolkit holds flake.lock's pin equal to the submodule's commit. A program without that input is not checked.
0.333.02026-11-20 06:58 UTCrelease

Added

  • tk_site.Meta.docs: a site with a Docs section (build_docs) says so, and the home page's nav links it as "Docs", after Features; the classic pages link the same.
0.332.12026-11-20 06:51 UTCrelease

Fixed

  • A Wayland window takes the refresh rate of the monitor it is on (platform.display_info): it read the first monitor's, and a window on a 144 Hz monitor beside a 60 Hz one was held to 60 frames a second by its pacer. The rate is now that of the outputs the window is on (the highest when it spans several), and the pacer replans when the window moves to another monitor. The first frame after a rest moves an animation by one refresh of that monitor, not by 1/60 s, wherever the renderer measures no refresh (Linux); host.DT_RESTED_S is gone.
0.332.02026-11-20 06:29 UTCrelease

Added

  • File_Source.generation: the version of what a source's paths name. The file browser keeps a thumbnail by the source's user, its generation and the file; another value asks the thumbnails again at the next dialog. A source whose listing has no size nor date gets a picture changed since, and one source object that reaches another server no longer shows the last server's thumbnails. A source that leaves it at 0 is unchanged.

Fixed

  • A card's icon follows the card's size: in the Cards views, a row with no picture (a folder, a file without a thumbnail, a table without Table.picture) shows its kind's icon at half the picture's height at every card size, not at the rows' font size in the middle of the card. ui.table_card_icon_size(size) gives that size to a program's picture callback that falls back to an icon.
0.331.12026-11-19 22:09 UTCrelease

Fixed

  • Smooth animations on Wayland: an animation (a palette that opens, a view that changes, a switch's move) goes on at each refresh of the screen with no input, at its own speed. It moved only while the pointer moved, or a few pictures a second: a 300 ms animation took four seconds.
0.331.02026-11-19 19:15 UTCrelease

Changed

  • file_thumbnail_make answers a File_Thumbnail: its pixels and their size, and the size of the picture it was made from, so an inspector shows that size without decoding the file again. file_thumbnail_decodes(name) says which files the toolkit decodes.
0.330.02026-11-19 18:18 UTCrelease

Added

  • The view pieces for a program's own views: what classeur needed to drop its own code around them.
    • Item_Band leaves the rows that cannot be selected (Item_Rows.selectable) as they are and never puts the cursor on one.
    • Item_Band.changed (with Item_Band.user) is told each row the band puts in or takes out of the selection, at the press, during the drag and at Escape: a program keeps a sum over the selection row by row.
    • thumb_cache_clear forgets every thumbnail made; the asks out stay and their answers land; safe in a build.
    • file_thumbnail_make(path, side, system, allocator) is the local source's thumbnail work, public for a program's own workers; system false leaves the system's cache and thumbnailers alone.
    • The local source asks the system's thumbnailer for a picture it fails to decode: a WebP in a program built without IMAGE_WEBP gets a picture again.
0.329.02026-11-19 16:42 UTCrelease

Added

  • The file browser's views: a button at the end of its bar opens a menu of the list's views (details, names, columns, cards of four sizes); Ctrl+wheel over the list and Ctrl+= / Ctrl+- in it step them. A card shows the file's thumbnail (the computer's pictures, the system's thumbnails of other files, a program's source through File_Source.thumbnail) or its kind's icon, and its size. Several files are selected with a rectangle. Each dialog remembers its view by its remember_id; the preview is the same in every view.
  • Thumbnails of files: File_Source.thumbnail asks a source for a picture of a file, answered with pixels by file_reply_thumbnail, so a server's source can make its own. local_files() decodes the pictures gt:image reads (a large one read from, and kept in, the system's cache) and gives the system's thumbnail for the other files. Thumb_Cache keeps them as textures under a count and a byte budget: only the cards built ask, the newest first and a few at a time, an ask whose card scrolled away is dropped, and what is on screen is never evicted (thumb_cache_get, thumb_cache_frame, thumb_picture, thumb_key).
  • A table's views (Table.zoom): the same rows as details, as names alone, as names in columns scrolled sideways, or as cards at four sizes (a picture, the name cut in its middle with its extension kept, a weak line), the filter, the sort and the selection the same in every view. In the grid the arrows move by card and by row, in the columns view by name and by column. Table.zoom_keys gives Ctrl+wheel and the zoom keys to the table (Table_Events.zoomed), Table.rubber_band selects the items a rectangle covers (Escape gives the selection back). table_zoom_step, table_set_zoom, table_set_view, table_zoom_label, table_zoom_icon, table_zoom_key; for a program's own view of items, item_move_target and Item_Band. A table starts in Details, as before.
0.328.22026-11-19 16:02 UTCrelease

Added

  • gt:pdf signs: a program's own fonts and a pen's ink. pdf.font_add gives the engine a TrueType or OpenType font; a stamp with that face is written with the font embedded as a subset of the glyphs it uses, its text copyable. A stamp also takes the effects of a signature: a tilt, a heavier pen (weight), a flourish under it and a caption line (the place and the date). The shape Outline fills closed contours: a pen's ink whose width changes along the stroke.
  • gt:ink: pen strokes turned into ink. ink.outline turns a pointer's samples into a line whose width follows the speed (or a stylus's pressure): quick flourishes thin, slow strokes and corners full, ends tapered or round. Round, chisel (a fountain pen's broad nib) and brush nibs, and the presets PEN_BALLPOINT, PEN_FOUNTAIN, PEN_FELT and PEN_BRUSH; ink.polygon and ink.triangles give the ink to a path filler or to a renderer of triangles.
  • toolbox.Project.thumbnailer: the package of a program's thumbnail provider. On Windows build_native builds it last as thumbnailer_path(p) (<name>_thumbnails.dll, optimised for a release: build_native(p, release)), every odin command of the program embeds it (-define:GT_THUMBNAIL_DLL=<file>), and check_windows checks it.
  • desktop.Part.Thumbnails: the file managers show a program's document_types as thumbnails the program draws (Integration_Options.thumbnails). On Windows the install writes the program's provider DLL beside the executable (thumbnail_dll_file, the bytes the build embedded or thumbnail_dll) and registers it in HKCU under thumbnail_clsid; an update's next start rewrites it, and a DLL Explorer holds is renamed aside and reported to the uninstall. On Linux a .thumbnailer in $XDG_DATA_HOME/thumbnailers (thumbnailers_dir, <prefix>THUMBNAILERS_DIR) runs the program itself with thumbnail_arguments (default --thumbnail %i %o %s). A setup Choice ties a box to {.Thumbnails}.
  • shell_thumbnail: a program's own thumbnail provider for Windows Explorer. The program's small DLL package gives its render of a document's first page to set(clsid, render) and exports dll_get_class_object and dll_can_unload_now; the package does the COM plumbing (the class factory, the document read whole from the shell's stream up to 256 MB, an opaque top-down bitmap). See docs/shell-thumbnail.md.
  • gt:pdf: shapes on a page. Page.shapes: rectangles and ellipses (filled, outlined), lines, arrows and free lines, written into the page's content under its stamps; a colour less than opaque multiplies with the page, as a highlighter's ink, so the words under it stay readable.

Fixed

  • An empty state's note stays in a narrow pane: in the file browser's preview, a source's message wraps inside the pane instead of running over the list beside it.
  • The system's file dialog no longer crashes on Windows. It runs on a thread of its own, in a single-threaded apartment it opens and closes. Before, it closed its apartment at once (a defer in a block) and ran in the caller's thread, which was in the multithreaded apartment as soon as another thread of the process made one (UI Automation, a decoder): the dialog's Explorer view then corrupted the heap while it listed the files.
  • A DLL that links the native library links on Windows. Every package that links gt_native.lib also names Synchronization.lib: Rust's standard library waits with WaitOnAddress, which a program got from elsewhere and a DLL (a thumbnail provider) did not.
0.328.12026-11-19 03:06 UTCrelease

Fixed

  • A download's part file goes at the program's end on Windows: another thread can remove an fsx.Writer's temporary file while the writer still holds it open; the file goes when that writer closes it, instead of staying.
0.328.02026-11-19 02:08 UTCrelease

Added

  • Project.native_carried and Project.systems: a program whose own Rust library carries the toolkit's native crates sets native_carried, and build_native then builds none of the toolkit's library (native_parts): only the Windows resource, the console launcher and the Lucide subset. systems names the systems the program is built for ({}: Windows, Linux and macOS, as before): check checks only those other systems (project_systems).
0.327.02026-11-18 23:51 UTCrelease

Changed

  • ui.find_is_open(s, view = 0) takes the window's State, as find_open and find_close do: a program asks it between two builds, for any window, and closes the find when a panel closes without a flag of its own. The form without a State is gone: pass s.

Fixed

  • A jump to a far match ends with the match in view: ui.find_set_current, a step or a revealed part over rows a lazy column never built no longer stops where the match stood before those rows were measured (the top of the view, the match below it). The view follows the match at each build until it rests with the match inside, for at most ui.FIND_SETTLE_BUILDS builds; a wheel turn or a drag of the scroll bar's thumb ends it.
0.326.02026-11-18 23:00 UTCrelease

Added

  • A program's build takes what opencode native's built by hand: Project.defines (every system, every odin command), Project.link (static_vcruntime on Windows, strip for a Linux release, in the one -extra-linker-flags of linker_flag), Build_Mode with Dev (-o:minimal) as Build_Options.iterate and build debug, the mode written beside the program (build_mode_of), Build_Options.fresh (built into <name>-new, then swapped in, so a running program is never overwritten) and Build_Options.pinned_odin (odin version against odin.version, GT_ANY_ODIN=1 to build anyway). Every option is off by default.
0.325.02026-11-18 22:35 UTCrelease

Added

  • fsx.Writer: a file written in parts (writer_open, writer_append, writer_commit, writer_abort). The parts go to a temporary file beside the target, which takes the target's name only when the commit comes; an abort, or a failed write, leaves the target as it was and no file beside it.
  • File_Dialog.row_actions: a program puts its own acts ("Download") in the context menu of an entry of the toolkit's file browser, opened by a right click or the Menu key. An act gets the path of each entry chosen that it takes (files, or folders too), and the dialog stays open.
  • platform.Notification.progress: a notification shows a progress bar (a value from 0 to 1, or not known, and the words under it), and a replace with a new value moves it in place. Windows 10 1607 and later: the toast's bar, updated without a new popup or sound while the rest of the notification stays the same (notification_shape). Linux: the value hint that KDE Plasma, dunst, mako and Xfce draw; the words are a line of the body. A system without a bar shows the notification without it.
  • http.receive: a request whose body comes to a callback chunk by chunk, on the request's thread, and is kept nowhere: a download of any size takes the memory of one chunk. Each Body_Part carries the answer's status, the bytes received so far and the body's length; the callback's .Stop or a Stop asked from another thread ends it. Its timeout is the longest silence, and the body has no bound unless max_bytes gives one. Windows and Linux.

Fixed

  • The Menu key opens a table's row menu while its list has the keyboard: Shift+F10 too. Before, only a right click or the keyboard in a filter field opened it.
  • The toolkit's file browser opens in File_Dialog.start_known: a dialog asked to start in Downloads (or another folder the system names) now opens there, after start_dir and the folder the dialog was last left in. A program's source answers it with File_Source.known; a source without such folders starts as before.
0.324.02026-11-18 22:07 UTCrelease

Added

  • ui.view_size(v, width_em, height_em, min_width_em): a dialog's opening takes a least width. The dialog is never narrower: not its size asked, not its fit to what is in it, not the user's grips; the window's edge still holds it (an image viewer's bar of buttons under its picture).

Fixed

  • Side zones that fit a narrow window: a panel docked at the right beside one at the left no longer runs past the window's edge (opencode native's /btw panel beside its sidebar, under about 52 em). The right zone gives way first: it narrows down to its least (the largest View_Options.min_width_em of its views), then folds to its rail; then the left zone does the same. A zone whose views give no min_width_em folds at its extent, as before. A narrowed zone's handle moves from the width shown.
0.323.02026-11-18 21:01 UTCrelease

Added

  • ui.find_set_current(s, index): a program makes a match of the open find current by its index, clamped to the matches, and the view brings it in as the arrows do; asked before every row is counted, it waits for the count.
  • Find_Result.scrolled: the find bar's result says when the find moved the view to bring a match in, so a program can react (a log stops following its bottom).

Changed

  • The find bar keeps the keyboard in its field: a click on match case, whole word, a scope or an arrow leaves the keyboard in the field, as a browser's find bar does, so the person goes on typing. A click on an unchosen scope no longer leaves the keyboard nowhere.
  • ui.find_open(s, view, text), ui.find_close(s) (breaking): they take the window's State, and work between two builds on the interface thread as in a build, for any window, not only the current one: a program opens its find from its command line, a menu or a key it routes itself. The next build of that window applies the change; ui.needs_frame(s) asks for it. A program adds the State to each call (ui.current_state() in a build).
0.322.12026-11-18 20:31 UTCrelease

Fixed

  • A plugin slow to start no longer stays "not responding": once its start ends, it runs, even when the start took longer than the bound (a slow machine, a first compile).
  • A plugin that dies at its start on Windows is seen as crashed: another plugin's process no longer holds its pipe, so the plugin no longer stays "starting" for ever.
0.322.02026-11-18 19:57 UTCrelease

Added

  • A panel's menu on a right click of its top area: a right click on the free part of a docked panel's top area (the strip's free part, or the band at the body's top) opens the view's menu, as the header, a tab and the fold button do; the body's own right clicks there still come first. The menu now has a panel's Minimise (or Restore) beside its Maximise, and a resizable dialog's Maximise. Its moves are the palette's: an act that does nothing where the view is (Detach into a window without a backend of windows, the Dock items without a frame) is absent instead of inactive.
0.321.02026-11-18 19:18 UTCrelease

Added

  • cdp.connect_wait takes its step: a tool that measures a program's first screen tries the connection more often than every 50 ms, so the wait adds less to what it measures.
0.320.02026-11-18 18:47 UTCrelease

Added

  • ui.caption_text(): a program that draws its own title bar gives the words in it the bold face of the theme's band, as ui.title_bar does.
0.319.02026-11-18 18:20 UTCrelease

Added

  • A theme's knob and switch (Theme_Look.knob, Theme_Look.toggle): a theme gives the form of a slider's knob and of a switch. Knob_Form.Keys draws a slider's knob, and a range slider's two, as a key of the relief, taller than wide, on a well of the relief with no lit run (ui.slider_key_rect, ui.slider_key_track place them); Toggle_Form.Check draws a switch as the theme's check box, centred in the switch's box, its hit area and layout unchanged. Old Head takes both: a trackbar's thumb and a check box. A theme that says nothing keeps the round knob and the rounded track.
0.318.22026-11-18 17:45 UTCrelease

Added

  • A program's own title bar takes the theme's band: ui.caption_band(dc, r, active) draws the band of the theme shown, and ui.caption_band_ink() and ui.caption_band_bold() give its text, for a program that draws its own bar (a row of tabs) in place of ui.title_bar.
0.318.12026-11-18 17:14 UTCrelease

Fixed

  • A window closed while a font family loads no longer crashes: ui.destroy waits for the family loads that still read the fonts (at most 5 s), so the program may free its fonts once it returns.
0.318.02026-11-18 15:52 UTCrelease

Added

  • A theme's title bar (Theme_Look.caption): a theme gives the caption band of the title bar a program draws (title_bar): one colour or two stops from left to right, for the active window and for a window behind. It also gives the text on the band, bold or not, and the caption buttons' style: the system's, or square keys of its relief. Old Head's caption runs from navy to blue (grey behind), with white bold text and square keys; a dialog's title strip takes the band too. Every other theme keeps the program's title bar and the system's buttons.
  • A theme's scroll bar (Theme_Look.scroll_bar): a theme gives the bar's form, not only its colours. Keys draws a flat light trough, and arrow buttons and a thumb that are keys of the theme's relief. Old Head's bars are keys of its two-tone bevel. Every other theme keeps the standard bar.

Changed

  • A relief of rings in every widget: under a theme's relief of rings (Old Head), a lamp and a radio's dot are flat discs of their colour, a pip is a round well, a tile and a stacked bar's part have the raised rings, a caption's face is the theme's band, a switch's and a slider's knob take the theme's raised face, and a selected node has no halo. They no longer show the machined finish's beads, lines and metal. The finishes look as before.
0.317.02026-11-18 15:27 UTCrelease

Added

  • A lazy list's active row and onActivate (plugin API level 8): a plugin's list shows its active row as the toolkit's lists do; a press on a row sets it, and Up, Down, Page Up, Page Down, Home and End move it while the list has the keyboard. Enter on the active row, or a double click on a row, calls the list's new onActivate(index). A move of the active row is not sent to the plugin. plugins.List_Info gives the active row and whether the list has the keyboard. Plugins of levels 1 to 7 keep working.

Fixed

  • A plugin's settings in the person's language at once: when the person changes the language, the titles and descriptions of a plugin's settings take the translations of its manifest's l10n at the next build, with no reload of the plugins and no restart of the plugin. Before, they changed only at the next read of the plugins' folder.
0.316.12026-11-18 14:53 UTCrelease

Fixed

  • session.save_png without a renderer: in a session started with no_renderer, it ends the test with "this session has no renderer", as capture does, instead of crashing it.
0.316.02026-11-18 13:18 UTCrelease

Added

  • The theme Old Head: Windows 95, made of data alone: one grey for every surface, white fields, the 16-colour hues, square corners, two-tone bevels around keys, fields and panels, a dotted focus rectangle, white on navy for every selection, no motion, no shadow. Its look wins over the program's finish. Its film: tk film oldhead.
  • Relief as data (ui.Relief, Theme_Look.relief, Theme.relief): how surfaces are raised and sunk is a value. Each finish names a preset (relief_of(finish): RELIEF_FLAT, RELIEF_GRADIENT, RELIEF_GLASS, RELIEF_MACHINED, RELIEF_EDGED) that draws as before; a theme can give its own relief, which wins over the program's finish. A relief of rings (each ring's width, its tones as steps of the face toward white or black, its blur) is drawn by the primitives a program calls (machined_bevel, machined_well, machined_groove, machined_plate) and by relief_rings, relief_round, relief_lines; RELIEF_BEVEL is Windows 95's two-tone bevel.
  • A theme's font (Theme_Look.font): a theme can name the interface's family, loaded as the person's family is, and a factor of the program's font size. The family the person chose wins over the theme's; the factor scales the person's text size.
  • A still theme (Theme_Look.still): a theme can have no motion in its look. While the person's motion setting follows the system, such a theme turns the animations off as the system's "less motion" does; the person's "on" keeps them.
  • A theme's focus style (Theme_Look.focus): the keyboard's focus is a ring and its glow (as before), a ring alone, or a dotted rectangle inside the box (on a row's face; on a selected row in its text colour), with its width, its inset and its colour.
  • A theme's selections and the text on them (Theme_Look.selections): for the text, a list's row, a menu's item, a navigation's row and a list without the keyboard, a theme gives the fill and the text colour (the ink). What a selected row holds (a list's, a menu's, the palette's, the file browser's, the font picker's, a dialog's choices) takes the ink as its text, down to a box with a face of its own: white on navy is now possible. A theme that gives none looks as before.
  • A theme's corners (Theme_Def.look, Palette.look: Theme_Look.shape): a theme gives the radius of each role (Shape_Role: a control, a row, a card, a dialog, a menu, a tooltip, the scroll bar's thumb and arrows), which the rounding setting still scales; ui.shape_of(role) reads it for a program's own controls. A theme that gives none keeps SHAPE_DEFAULT, the corners every theme had. CONTROL_RADIUS_EM and DIALOG_RADIUS_EM are gone: ask shape_of(.Control) and shape_of(.Dialog). A program's own Theme_Def literals take the new last field ({}).
0.315.02026-11-18 12:22 UTCrelease

Changed

  • A lone panel's strip waits for a rest at its top edge: the strip (tab, moves, Maximise, Close) shows after the pointer rests ui.VIEW_HOVER_DWELL_MS (300 ms) in the top band with no button down, stays while the pointer is anywhere in the panel, and goes when the pointer leaves it, on Escape or after a click on the strip. A pointer that crosses the band to a control near the top (a fold button) moves nothing, and its click reaches that control. VIEW_HOVER_KEEP_EM is removed. A right click on ui.view_fold_button opens the view's menu, which now has Maximise or Restore for a panel; ui.side_fold_button takes a tooltip hint, and View_Labels.menu_hint gives the fold button's.
0.314.02026-11-18 11:54 UTCrelease

Added

  • plugins.start: a program starts a plugin's process before its first use, so a plugin it knows will be used soon is ready when the person reaches it.
  • Plugins in the palette, the menus and the tool bar, in the person's language (plugin API level 7): a manifest's palette declares a source under a prefix of the palette (@, #, /, or the plain search), which the plugin answers with palette.source(id, search, { onChoose }) as the person types, one query at a time, the newest waiting and an older answer dropped; a source that does not answer leaves the palette working and says "not responding". Its menus and toolbar put its commands in the places the program names (Host_Options.menu_places, plugins.menu_entries, plugins.toolbar_entries, plugins.toolbar_tool), without running it. Its l10n translates its manifest's words for the toolkit's language, and its code reads context.language. The log explorer demo searches its lines under @.
  • A program's own plugin module, from "app": a program declares its calls, events and permissions with structs in Host_Options.app (plugins.App_Module), with a level of its own; a plugin calls them as promises with one argument object, hears the events with on(name, f), and asks for app: permissions shown in the program's words. A call runs on the program's interface thread and may answer later (plugins.app_answer, plugins.app_fail); plugins.app_emit sends an event to the running plugins that listen. plugin_api.app_module_dts and app_module_markdown write the module's app.d.ts and reference page, and toolbox.generated_files writes or checks a tool's generated files. A manifest's "app": n says the level it needs; gt-runtime gives no module "app".

Fixed

  • Removing a palette source no longer crashes. A source's last query and error were kept in the allocator of the build that asked, and freed with the allocator of the code that removed the source; a program that removed one outside its builds (a plugin turned off, a reload) freed them with the wrong one.
0.313.02026-11-18 09:31 UTCrelease

Added

  • The settings' sidebar folds to a rail: in a narrow window or dialog (when the page would get less than 26 ems), or by its fold button at the start of the search's row. The rail shows the pages' icons (the title as the tooltip, the page shown lit, Up and Down change the page), a magnifier that opens the sidebar with the search focused, and a … menu with the version, the settings file, Export and Import. A pull of the rail's edge opens it. The icons-only column under 40 ems is gone.

Changed

  • A side panel folds by one rule, and a choice by hand holds until the next crossing (ui.Side_Fold, ui.side_fold_follow, ui.side_fold_set, ui.side_handle, ui.side_fold_button, ui.Side_Panel): a views side zone folds to its rail when the space leaves the content less than its least, and opens again 1 em past it (SIDE_FOLD_GAP_EM: a width swept around the threshold no longer flaps). A Minimise, a Restore or a pull now holds only until the width next crosses that threshold, either way; before, a Minimise was kept forever and an opening while narrow was lost at the next start. The space's memory keeps both bits (left.min=1 left.narrow=1). VIEW_RAIL_PULL_EM is now SIDE_PULL_EM; a program's own split (a list beside its preview) can use the same panel.
0.312.12026-11-18 09:11 UTCrelease

Added

  • A runtime can take its cells from the program's allocator alone: Host_Config.reserve_bytes below 0 reserves no block of addresses natively, so every chunk of cells comes from the allocator given to engine_new. A program whose values hold 32-bit pointers keeps every cell in its own low range again; with the block, the system placed the cells anywhere.

Changed

  • What's new stacks on a narrow page: under 34 em of page (the settings in a dialog), no timeline rail, and each kind of change is its pill on a line of its own over its changes, which take the card's whole width instead of about a third of it. A wider page keeps the rail and the pill beside its changes.
0.312.02026-11-18 08:28 UTCrelease

Added

  • ui.box_rich_runs: the runs of a rich paragraph's box as built, so a test or a tool can read their styles (a highlight's background, a run's face).
  • lucide.glyph_of(name) and lucide.NAMES: a Lucide icon found by its name at run time ("search", "alert-triangle"), from a table that tk gen_lucide generates with the constants.
  • Rich views in plugins (plugin API level 6): a plugin's button, text, heading, field and switch take an icon by its Lucide name; a text takes a tone (info, good, warn, bad, weak), mono for the monospace face and highlight to mark what a search found in the find bar's colours; a new badge node shows a level, a state or a count in its tone's colour. An unknown icon draws nothing and the plugin's log says it once. A program older than level 6 ignores these fields. The log explorer demo uses all of them.
  • Button sizes. Button_Options.size is Small, Medium or Large: its line, its room, its words and its glyph change together. A plugin's button also takes a look (raised, ghost, link) and a size, so an act repeated in each row of a list can be a small ghost button instead of a block of full buttons.
  • Agent skills for opencode and Claude Code: gt-plugin teaches a coding agent to write, run and test a plugin in JavaScript or a small application for gt-runtime; gui-toolkit teaches it to build a program in Odin on the toolkit and points it to the page to read per subject. Add "skills": ["https://gt.sacha.house/skills/"] to opencode.json, or unpack gt-skills.zip, attached to each release, into ~/.config/opencode/skills or ~/.claude/skills ([docs/skills.md](docs/skills.md)). odin run tools/tk -- skills <out> writes the catalog, -zip:<file> the zip, and tk ci checks the skills (skills -check).

Fixed

  • A file another program reads is still written on Windows. fsx.write_atomic replaced a file in one try: while a reader, an antivirus or the indexer held it, the write failed and the settings it held were lost. It tries again a few times now; plugins.toml is also written again after a failed write.
  • The Plugins page keeps the last change. Changes made one after another (a plugin turned on, then off, a grant) were each written on their own, and an older write could land last: the plugin was on again at the next start. They are written one at a time now, the last state last.
  • A field's hint is kept with its build. A field kept its caller's hint, which a plugin's view frees when its next display list comes. Reading the window between two frames (the accessibility tree, the developer tools, a test's record of a failure) then read freed memory and could crash the program.
  • A plugin's check box or switch in a row shows its label. Built in a row of a plugin's view, it had the width of a box with no text, and its label did not show.

Security

  • A plugin's process is isolated by the system on Linux: before the plugin's code runs, its process takes away its own access to every file (Landlock), every socket (a seccomp filter) and, on recent kernels, its signals to other processes. It reads its modules before that, and the program writes its log. Host_Options.sandbox (If_Available by default, Required, Off) says what happens where the kernel has no Landlock; plugins.sandbox_available says whether this system can, and plugins.test_escape lets a test check it.
0.311.12026-11-18 07:38 UTCrelease

Fixed

  • A program no longer hangs or crashes when a background task answers at once. Since 0.311.0, a task's answer could run on the interface's thread while the worker that posted it was still unlocking: it unlocked freed memory, and closing the window then waited for ever, or the program crashed. Rare, and possible in every program on 0.311.0.
0.311.02026-11-18 06:29 UTCrelease

Added

  • ui.vlist_row_top, ui.vlist_total, ui.vlist_row_at: the top of a virtual list's row, the content's height and the row at a place in the content, each in O(log n) rows, as vlist_row_extent gives a row's top and height.

Changed

  • A long list stays smooth while its rows are measured: scrolling a ui.vlist of a million rows, a plugin's lazy list among them, no longer makes each build that lays out new rows go over every row. A row measured at a new height costs the same in a list of a hundred rows or a million; only new ids, or heights forgotten, place every row again.

Fixed

  • A task's data is freed when its window goes before its answer runs: an answer of ui.task already queued when its State was destroyed was dropped without calling lost, so its data leaked. The install's jobs also keep their memory in the heap from start to end: a program that checks its memory saw blocks made on the chores freed by its own allocator, which Windows' checks could take for a double free.
0.310.02026-11-18 05:05 UTCrelease

Added

  • Vlist_Rows.guessed: the first build of a virtual list says that its rows are a guess made from the window's height, and asks for the next build, which has the real rows. A program that fetches rows for a list waits for it instead of fetching more than the list shows.
  • Lazy lists in a plugin's view (plugin API level 5): a list node shows up to a million rows and asks the plugin only for those in view and a margin, as the person scrolls, with row(i). A row not answered yet shows a placeholder, a slow plugin leaves the window scrolling, and a new version asks the rows again. plugins.list_info and plugins.list_scroll_to read and scroll such a list. A plugin's own key can no longer hold ~.
0.309.02026-11-18 02:38 UTCrelease

Added

  • platform.sigpipe_ignore: a write to a pipe whose reader is gone is an error of that write, not the end of the program, on Linux and macOS. A plugin's process that dies no longer takes the program down with it.
  • http.Request.no_redirects: a request whose redirect is its answer (its status and its Location), so that the caller checks each hop before it follows it.
  • A plugin's permissions, files, network and clipboard (plugin API level 4): a manifest asks for permissions (files, folder:documents, folder:downloads, net:* or net:<origin>, clipboard.read, clipboard.write); a plugin that asks is off until the person allows it in a dialog that says each one in words, and a version that asks more asks again. files.read, files.write, files.pick, http.fetch, clipboard.read and clipboard.write are done by the program, which checks the grant: a call without it rejects with PermissionError, a path that leaves its folder or goes through a link is refused, each redirect is checked, and the clipboard is read only while the person acts in the plugin. Each plugin has a data folder of its own. plugins.grant and plugins.revoke give and take back.

Changed

  • A plugin runs in a process of its own: its first use starts the program's own executable again as the plugin's host, and every command, view, event and setting crosses its pipes. A crash of a plugin's engine no longer ends the program: the plugin is Failed, its views say so with Restart, and three crashes in one run suspend it. Stop kills a process that does not answer within a second. A program needs nothing new in its main. plugins.restart makes a failed plugin ready again; plugins.test_crash and plugins.test_hang are a test's hooks.
0.308.02026-11-18 00:12 UTCrelease

Added

  • The plugin API explorer and a guide to gt-runtime on the site: gt.sacha.house/plugins/api/ shows every call of each module with its TypeScript signature, its level and its permission, every node of a view with its fields (the ones the host keeps marked as state), and what each level added. A search box filters the calls and nodes; each has its own anchor (#views.register, #node.field); gt.d.ts downloads from the page. The page is made from plugin-api/api.json at each build of the site, and the build fails when that file is missing or malformed. "Plugins and gt-runtime" in the Docs says what a plugin is, its manifest, a first plugin, and the counter and todo demos with their source. api.json gives each field a state.
  • ui.view_refit, and ui.view_not_ready for internal windows: a view whose content comes late holds its internal window unseen until it is there (100 ms at most), and asks for the height of what is in it once it came or changed size. The window the person resized keeps its height.
  • A plugin's settings (settings.get, settings.onChange, plugin API level 3): the settings a plugin's manifest declares are the program's preferences (plugins.<plugin id>.<setting id>), shown on a page of their own in its settings (plugins.settings_pages) and kept in its file. A plugin reads them at once and hears each change.
  • gt-runtime: a program that runs one plugin as an application, gt-runtime <folder> or gt-runtime <main.js> (a lone file's manifest is implied). The plugin's first view fills the window; the palette, the settings and the toasts are the toolkit's. A release attaches gt-runtime-windows-x64.zip, with two JavaScript demos, a counter and a todo list.
  • A plugin's views (views.register, views.update, plugin API level 2): a plugin declares views in its manifest and gives each a render that returns a tree of nodes (text, heading, button, row, column, card, space, field, check box, switch, separator). The window shows the view with the toolkit's own widgets, among its views (plugins.open_view, or the palette) or in a program's own layout (plugins.view_body). A click, a change or Enter runs the plugin's handler on its own thread, then the view renders again. What the person types stays while a slow plugin catches up, a key given twice is dropped and logged, and a view whose plugin hangs keeps drawing with a Stop button.
  • Plugins in JavaScript (gt:plugins, gt:plugin_api): a program that imports gt:plugins reads the plugins' folder, puts each plugin's commands in the command palette, and runs a command in the plugin's own thread and runtime, started at its first use. A plugin calls commands.on and toast.show from import { commands, toast } from "gt". The settings' Plugins page (plugins.page_info) shows each plugin's state, turns it on (it is off until then), stops it and reloads the folder. A handler that never returns leaves the window drawing: the plugin is said not to respond, and Stop interrupts it. A plugin inside which the program ended is suspended at the next start. tk plugin_api writes plugin-api/gt.d.ts, plugin-api/api.json and docs/plugin-api.md from the declarations, and tk ci checks them.
    • gt:js: a runtime's cells live in a block of reserved addresses (Host_Config.reserve_bytes), so engine_new works on any allocator. An allocation that fails, or one past the block's soft end, raises the uncatchable "out of memory" error instead of ending the process.

Fixed

  • install_init with a new settings registry: called again with another registry (a program that reads its settings anew), it moves its watch of "In the application menu" and "Start with the session" to the new one, instead of keeping an id that named another observer there; the refusal's message is in French too.
0.307.02026-11-17 23:35 UTCrelease

Changed

  • Page_Options.diagnostics is a prefs_page.Diagnostics_Source, so a program with a loop of its own shows the Diagnostics page. The source is plain data: the renderer, the window, a host.Frame_Ring and whether partial redraw is on. A program on the host writes diagnostics = prefs_page.diagnostics_of(&app.main) in place of &app.main. host.frame_add records one picture in a ring, and prefs_page.diagnostics_rows gives the page's lines.

Fixed

  • The tooltip of an icon button shows its words: it took the icon font of its button, which measured the words at almost no width, so only their first letter showed. A tooltip now always writes in the interface's font.
  • What's new shows its versions in every program: its search field and its count of versions had no height of their own and could take the whole page, which pushed the list of versions out of view. Each now has the height of its content. The "Latest" pill keeps the card's margin on its right.
0.306.02026-11-17 23:06 UTCrelease

Added

  • prefs_page.install_follow: the settings "In the application menu" and "Start with the session" work in every program. The installed copy's launcher and its start with the session follow the two settings, on a task, from the start's reading of the install, after an install or an uninstall and at each change; a copy that is not installed writes nothing and the settings page hides the two. install_init takes an announcer to say when the desktop refuses. A program needs no code of its own for them.
  • gt:pdf: PDF files opened, rendered and written, inside the program. pdf.open (with a password), page_count, page_size, render (the page's own content, or with its annotations' layer), write (a new file from the program's list of pages: turned, removed, added, moved, from several files, the base file's outlines, form and metadata kept, removed pages gone from the file), stamps of text in the standard fonts with a background (Stamp, stamp_size). The engine is hayro in native/pdf, a part of the native library: toolbox.Feature.Pdf builds it in, nothing ships beside the program. The notices also take a crate's licence files one folder down when its root has some (hayro-font's Foxit fonts).
  • platform.add_recent_file on Windows: a file opened goes to the user's Recent folder and to the program's jump list (SHAddToRecentDocs), as it goes to recently-used.xbel on Linux; the call exists on every system (a no-op where there is no list). It is a blocking call: a debug build says so when the interface's thread makes it.
  • Print a document (platform.print_document): the system's print dialog with its page range and copies, then every page chosen. The program gives its page count, each page's size and a callback that renders a band of a page's rows; it runs on the calling thread, which blocks: run it on a worker. On Linux the XDG print portal gets the program's own PDF when it has one (the printer gets vectors), else a PDF of the rendered pages (print_document_pdf). On Windows each page is rendered at the printer's resolution, placed by print_page_fit, its sheet turned to its orientation. docs/printing.md.
  • OpenGL when Vulkan is missing: on Linux, a machine with OpenGL and no Vulkan driver (an old graphics card, some virtual machines) draws through OpenGL instead of saying it cannot; TOOLKIT_WGPU_BACKEND=gl forces it.
  • ui.find_bar, ui.find_open, ui.find_close: one find per window over a view, with its bar at the view's top right (left of its scroll bar): the field, the count ("3/17", "No results", "12…" while counting), previous and next (Enter, Shift+Enter, F3, Shift+F3), match case (Alt+C) and whole word (Alt+W), the program's scopes (Find_Options.scopes) as a segmented choice, Escape to close. A view whose rows a lazy column declares (lazy_begin(rows = ...), ui.find_rows for another view) is counted whole, built or not, folded parts included, in bounded slices at each frame; a step to a match in a row not built builds it and brings it in, a match in a folded part asks the program to open it (Text_Rows.reveal), then lights it. Every match is a tick on the view's scroll bar (ui.find_ticks). ui.find_count, ui.find_index, ui.find_pending, ui.find_needle, ui.find_matches and ui.find_row_matches read it. Design: src/md/features/find-in-view.md; use: docs/find.md.
  • desktop.Integration_Options.document_types, open_documents and default_documents: a program registers itself as a handler of its document types (Document_Type: extension, MIME type, description), as the parts Part.Documents and Part.Default_Documents that install, remove, status and apply handle like the others, so a setup Choice can offer "Open PDF files with the program" and show its state. On Linux the desktop entry lists the types in MimeType= and takes one file as %f (hidden from the menu with NoDisplay=true when the launcher is off), and the default is the types' line of mimeapps.list, the former default given back on removal. On Windows a ProgID per type, OpenWithProgids, Applications\<exe>\SupportedTypes and Capabilities named by RegisteredApplications put the program in "Open with" and in Settings > Default apps; Windows lets only the person choose a default, so default_documents opens Settings at the program's page instead. opens_documents says whether options ask for the association.

Changed

  • ui.scroll_marks: the magnifier above a bar with marks opens the find over its view (a second press closes it), and a character typed while the marks have the keyboard opens it with that character; the find's matches are ticks on the same bar, over the marks.
  • ui.Text_Rows: its text takes whole (false: a row's text as its boxes show it, for a copy; true: with every part the program can open opened, for the find), and it gains stamp (a row's text changed), version (any row changed) and reveal (open the folded part that holds a match). A program's row text procedure takes the new parameter.

Removed

  • The marks' filter and the find in page's own calls: ui.scroll_marks_shown, ui.scroll_marks_query and the marks' filter field are gone (the find bar and its scopes do it); so are ui.find(needle, scope), ui.find_set_current, ui.find_sweep, ui.find_all, ui.find_progress, ui.find_refresh and lazy_begin's sweep (a lazy column's rows are counted by their text, never built for a sweep): a program opens the find over its view and calls ui.find_bar.

Fixed

  • Notifications no longer pause the window on Windows: platform.notify_async (and so ui.announce) returns at once. A notification thread of the toolkit shows the toast, and done runs from the window loop when it answers, as on Linux. A replace, notify_close and the click and button events work as before. On an offscreen window notify_async now returns false, and done does not run.
  • The notices of a program with gt:pdf. alloc-stdlib (of hayro's Brotli decoder) ships no licence file in its package: the toolkit gives its BSD-3-Clause text (native/pdf/licences), as it does AccessKit's.
  • The settings fit a dialog narrower than their page (prefs_page): the page's body is what the sidebar leaves, never its content's width; What's new no longer runs past the dialog's edge (280 px in a 1000 px dialog). Its search, kind toggles and count, and a version's number, day and "Latest", flow onto more lines, each whole, and the changes wrap at the width shown.
  • The notices of a program with accessibility. AccessKit's crates ship no licence file in their package: the toolkit now gives their texts (MIT, Apache-2.0 and the part from Chromium, native/a11y/licences), so notices of a program with Feature.Accessibility no longer fails asking the program for them.
0.305.02026-11-17 20:45 UTCrelease

Changed

  • The engraving on the back of the licence card blends into the foil: it is struck in the card's own silver now, and still waits for the right angle.
0.304.02026-11-17 20:33 UTCrelease

Changed

  • Go to brings the element to the top: Shift+Enter in the palette (ui.act_go) puts the setting or the element it reaches at the top of its view, where one starts reading, instead of just inside its bottom edge; the end of the page stops it lower.
  • A side zone's fold button is the view's to place, and its rail opens by a pull. ui.view_fold_button(v) draws the zone's Minimise when it is expanded and its Restore when it is collapsed, in a row the view already has. Put it at the same place in both forms and it stays under the pointer. The row that 0.300 added above a view with rail_em is gone: such a view must call the button in its compact form, and the toolkit's rail no longer draws a Restore for it. A strip leaves its Minimise out when the view shows the button. A minimised side zone (both rails) keeps its edge line against the content. Pull that edge outward and the zone opens and follows the pointer; drag an open zone down to its rail and it folds.

Fixed

  • A capture started from a menu no longer shows the menu: on Windows, capture.output and capture.desktop wait at most 400 ms for a popup menu (a tray icon's, a context menu) to finish its fade-out and leave the screen, then take the picture. A menu that stays longer is captured with it, and the capture does not fail.
  • ui.segmented: the hover no longer looks like a second choice. A hovered segment's face stops short of its cell's edges, so it never touches the key beside it; the chosen segment has no hover face, which covered the key; in the finishes other than machined the chosen label takes the theme's text colour for the accent (the new colour name accent_text).
0.303.02026-11-17 18:05 UTCrelease

Added

  • Something engraved on the back of the licence card: turn the card over and look at it from the right angle.
0.302.02026-11-17 15:40 UTCrelease

Changed

  • gt:js: two runtimes run at once: each runtime keeps its own state, so several run in one process, each on its own thread, and a contextless entry point (the members of a lazy object) allocates through the runtime's allocator, not the process heap. The embedding API changes:
    • The hooks are Host_Config fields, set at engine_new or later in rt.config: date_now_hook, timezone_offset_proc, clock_hook, span_hook, poll_hook, stack_move_hook, native_stack_low_hook, auto_init_getter. They were package globals (js.date_now_hook = ..., jsdate.timezone_offset_proc = ...).
    • The poll word is rt.poll_word; the JIT's settings rt.jit_cfg; jit_configure(rt, ...) and jit_stat(rt, which) take the runtime; -define:JSRT_TRACE_LAST_OP writes rt.trace.
    • gt:js/datetime: get_date_fields, set_date_fields, parse and parse_bytes take the time zone, a Timezone_Offset, as their last argument (nil: UTC).
0.301.02026-11-17 15:07 UTCrelease

Added

  • Demo states: a program names the screens that need an account (a vault unlocked, a PIN asked) with devtools.demo_state(srv, name, enter, user), and its tool enters one before a picture, with no change to the code. Toolkit.demoStates lists the names and Toolkit.demoState {name} enters one. In a tool: cdp.demo_state and cdp.demo_states; in a script, a timeline or tk cdp: demo <name>, and tk cdp demos lists them. A build without the devtools endpoint keeps none of it.
0.300.12026-11-17 14:17 UTCrelease

Added

  • A stitch that leaves a scroll bar out: image.Stitch_Options.ignore_right leaves columns at the right edge out of the comparison between frames (still in the picture). A window's scroll bar, whose thumb moves with every step, no longer stops a scrolling capture from joining its screens.
  • platform.send_wheel: turns the mouse wheel by a number of notches for whatever window is under the pointer, another program's (a scrolling capture scrolls it a step at a time); positive notches scroll down, to read further. Windows: SendInput; X11: XTEST (libxcb-xtest); Wayland: none (false), as only the RemoteDesktop portal can do it. See docs/platform.md.
  • ui.Signal.second_click: clicked, its press the second of a double click, so a box that acted at the first click ignores it; ui.palette_run_keep: a run mode's control asks what Enter does (a row clicked).

Fixed

  • A click on a row of the palette's closed list is Enter on it: in a command's form it writes the row and steps on (the next argument, or the command run on the last), where it only wrote and the person had to press Enter; in a setting's list it keeps the value and goes back to the list. The second click of a double click acts on no row of the palette.
0.300.02026-11-17 13:21 UTCrelease

Added

  • image.Stitcher: joins the screens of a scrolling capture into one tall picture of the page (stitch_begin, stitch_add, stitch_end, or stitch over frames already taken). A sticky header and footer are kept once, each frame's overlap with the one before is found by exact rows, a frame that adds nothing reports the page's end, and max_height bounds the picture.
  • A side zone's Minimise at its Restore's place: a lone panel whose view has a compact form (View_Options.rail_em) shows its zone's Minimise as a small button at the top of the zone, at the place and size of the rail's Restore, so the person folds and unfolds it from one place; its strip on hover has no second Minimise. A zone without rail_em is unchanged.

Fixed

  • A text area cuts its lines at its padding: a line scrolled half out of a multi-line field (ui.text_edit) stops at the text's edge, above and below, instead of running under the field's border and its rounded corners.
0.299.02026-11-17 12:37 UTCrelease

Added

  • toolbox.test262_fetch: a project's tool fetches the ECMAScript test suite and QuickJS-ng 0.17.0's runner configuration, pinned by SHA-256, into one run folder, so that every runner of test262 judges against the same suite. tk js_test262 runs it on gt:js with the native judge; tk gen_js_unicode makes gt:js's Unicode tables.
  • gt:js, a JavaScript engine: a program runs ECMAScript scripts and modules in Odin, natively, with no C and no download: Wren's engine, with its own compiler, Promises and async functions, regular expressions, BigInt, typed arrays, SharedArrayBuffer and Atomics, and Date without Intl. The program gives the allocator and every procedure a script reaches ([docs/js.md](docs/js.md)). tools/js_judge runs test262 on it natively; tools/js_parse_judge judges its compiler.

Fixed

  • The views' frame keeps its zones in the window: the central content and the docked panels of views_frame keep the width their split gives them; a tool bar inside no longer pushes the dock zones out of the window (a program needed .Fits_Width on them since 0.297.0).
0.298.02026-11-17 11:07 UTCrelease

Added

  • fsx.path_join, fsx.safe_file_name, base.read_be16 and base.read_be32: a program joins a name to a folder by its system's separator or a given one, turns a person's name for a thing into a file name that every system accepts, and reads big-endian integers without a panic past the end. ui.file_path_join is gone: call fsx.path_join(dir, name, sep). A licence file's name is made by safe_file_name too: an order number with other characters than letters, digits, _ and - now keeps them where a system allows them.
  • ui.elide, timefmt.stopwatch, timefmt.rate, timefmt.weekday, timefmt.iso_date: ui.elide(font, size, text, width, at = .End | .Middle) cuts a text to a width with "…" at its end or in its middle, between characters, found in a few measures and cached, so a program's own drawing needs no cutter of its own; a box's cut text now measures its kerning and drops the spaces before its ellipsis. timefmt.stopwatch(ms, {padded, days}) writes "0:07", "1:02:03", "00:07" or an uptime "3:04:12:09". timefmt.size takes Size_Options{decimal} (powers of 1000 and "kB", as browsers count network bytes) and no longer writes "10.0 KB" nor "1024 KB" (it writes "10 KB", "1.0 MB"); timefmt.rate writes a size per second ("1.2 MB/s"); timefmt.write_size and timefmt.write_rate write them into a buffer without allocating, for a column of rows. timefmt.weekday names the day ("Monday"), timefmt.iso_date writes "2026-11-10" (and "2026-11-10 14:32"), timefmt.date takes year, and timefmt.moment takes weekdays ("Monday 14:32" from 2 to 6 days back), all translated.
  • A program's start, its updates and its vendor mark in the toolkit: the lines every program wrote around them are calls now.
    • host.program_start({name, folder, version}) -> Program opens the log, installs the crash handler, begins the session and reads the last report, in that order (Program.logger, Program.last_crash); host.program_end(&p) is the clean end.
    • A window owes host.AFTER_INPUT (3) frames after an event by default (Host.after_input, when the program set no count), and host.host_settle(h) owes them after a change that came with no event: a program drops its FRAMES_AFTER_INPUT.
    • prefs_page.updates_start, updates_follow and updates_stop run a program's Updater: the folder from update.base_url or the repository's latest release (update.latest_release_folder), update.auto for the installed copy only, followed with no call of the program, and the installed copy's manifest written on a chore. updates_follow says when to show the change (update.notice); the restart stays the program's.
    • prefs_page.install_vendor_mark(&install, &renderer, png) makes the "By" line's mark once; install_end frees it.
  • toolbox.Program_Session, toolbox.free_port, cdp.connect_wait, cdp.wait_still: a tool's live, shots or bench starts its program on a desktop nobody sees with its DevTools server on a free port (program_session_start, with files written before the start and the program's own quit command), connects with a bound that fails at once when the program ended or another program took the port (program_session_connect), restarts it (program_session_restart) and ends it with its exit code (program_session_stop). cdp.connect_wait(port, limit, program) is the bounded connection for a program started without the desktop. cdp.wait_name takes a text (the box of that name whose text holds it), and cdp.wait_still(c, still, limit) waits until the window's picture stops changing, for what the box tree does not show: a tool now waits for a condition instead of sleeping. cdp.quote is removed: use json.quote of gt:json.
  • toolbox.build_commands: a program's build, test and check commands from its Project and a Build_Options. A program's tool no longer writes them: it gives its test packages, its catalogues, whether it ships notices, what it builds first (prepare) and its own checks (checks). Every program's check now runs the same steps in the same order: the changelog and the roadmap, the scopes, its own checks, every catalogue of its folder, the notices, odin check for this system, for Windows and macOS, of its tool, the tests, a release build without a console on Windows, then its console launcher. test takes test names in every program. program_build, program_test and program_check are the same steps for a tool's other commands. write_if_changed is now public: the one writer of a generated file, under write_stamp.
  • The demo programs on each release: every GitHub release of the toolkit offers its demo programs for Windows to download, one zip each (showcase-windows-x64.zip, fidget-windows-x64.zip...), built from the release's tag. tk demos builds the same zips locally.
  • instance.running and instance.quit, and a default wait. A program asks whether its copy runs, or asks it to quit, with one call each, in place of a send of MESSAGE_PING or MESSAGE_QUIT it wrote itself. Instance_Options.wait_ms 0 now waits instance.WAIT_MS_DEFAULT (2 s), so a program gives no number of its own; a single try, which 0 meant before, is now a value below 0.
  • render.read_pixels_bgra: an offscreen frame as the card stores it, in B, G, R, A order, with no copy and no pass over its pixels.
  • A segmented control too wide for its row becomes a dropdown. With no width given, ui.segmented asks for its labels' width and gives way to a dropdown's: in a row that cannot hold its labels it shows a dropdown of the same choices, and its segments again when the row holds them. ui.dropdown_width gives a dropdown's own width.
  • ui.box_find finds a box of the last build by its name or its words, under a box or from the root: what a film and a test's session act on (tk_session.find uses it).
  • gt:film and tk film: videos of an interface. A program made with the toolkit is recorded as a person uses it: a pointer that glides and clicks, keys, typed words, on the film's clock and on the graphics card, each frame raw to ffmpeg (NVENC, else x264) on a thread of its own; a window smaller than the film stands on a stage. tk film makes the toolkit's own films of the showcase into build/films: the exploded view, themes, the command palette, a layout that narrows, tool bars, each with a title card drawn by the toolkit. docs/film.md.
  • host.Open_Options.headless_gpu: a window with no system's window draws on the graphics card when there is one, else on the software renderer as before. Tests and screenshots keep the software one, the same pixels everywhere; a long run of pictures (a film of the interface) goes as fast as the card.
  • Standard_Targets.window: the title bar setting applied by the toolkit. With it, standard_watch gives the window the system's title bar or the program's own at once when window.system_title changes (the program's where the system has none). ui.Box_Flag.Fits_Width marks a box that fits what it shows to its width itself (a folding tool bar has it).
  • One height for every control: ui.CONTROL_HEIGHT_EM and ui.control_height(). Buttons, fields, lists to choose from, numbers, segmented controls in form rows and tool bar items are all 2 em tall (a button was 2.2, a form row's control 2.3, a field 2.1): controls one under the other no longer touch, and those side by side line up.
  • Columns that go one under the other. In a ui.flow, children sized as a share of the width are columns: side by side while the line holds them at the width their content needs (or their own least), one under the other when it does not, the rest of each line shared by their values; a column starts at the top of its line. And a row or a column puts its gap between its children, as CSS's gap: a stack of cards takes gap = {0, em * ui.ITEM_GAP}.

Changed

  • The vendor's facts and the logo's shrink, once in the toolkit: a program no longer copies them.
    • site.SELLER_FROMENT is the imprint's seller, site.meta_default(name, url, repository, tagline, theme, accent, card) a site's Meta with the vendor's fields filled, and site.NETWORK_UPDATES_ONLY the privacy sentence of a program that only connects for its updates.
    • desktop.identity_of(vendor, title, slug) derives an Identity's key, vendor key, marks, manifest and environment prefix; a program sets only its own lines after it.
    • toolbox.Logo.render(size, user) is replaced by draw(pixels, size, user): write_logo draws each size at draw_size (0: master) or more and shrinks it by LOGO_SHRINK_STEP at most per step. logo_picture and logo_shrink are public.
  • prefs_page.licence_init needs the logo and the vendor: Licence_Options.logo and .vendor are required (an assertion at the start), so no program ships a licence card with a bare back.
  • The showcase's commands act. In its palette, Theme: next, Theme: light or dark, Finish: machined and Settings change the look or the page; the others say what they would do. Its top bar gives way in a narrow window (the version cut, the search field down to 10 em): the window's buttons stay.
  • The showcase holds any window size and draws its own title bar. Its columns go one under the other when narrow, its rows of buttons wrap, the Values choices become a list when seven words do not fit, and stacked cards have room between them. Its top bar is the window's title bar with the window's buttons, and a button beside the settings switches to the system's title bar and back. The Themes page sets the corners with the finish and the version.

Fixed

  • The toolkit's dialogs summoned by a key appear as fast as the palette, at their size. The shortcuts' sheet (F1), a question to type such as Rename (F2), the file browser (Ctrl+P) and the key recorder fade in over 70 ms. A dialog whose build asks another size with ui.view_size as it opens shows first at that size, not one frame at the size it was registered with.
  • Fonts compiled into a program, loaded many times: on Windows, a program or a test package that loads a font compiled into it many times, in one font state or in many, no longer crashes or hangs.
  • Escape closes a submenu under the pointer. With the pointer resting on a submenu's row, Escape closed the submenu and the row opened it again at once: Escape seemed to do nothing. The row now waits for the pointer to move, as the system's menus do; a second Escape closes the menu.
  • A compositor that stops answering no longer holds a capture for good (Wayland). Each round trip of gt:capture waits two seconds at most. Without an answer, the session's connection is given up and the next call opens another. A program's worker waited forever before, and every capture after it with it.
  • A node let go in ui.node_graph stays where it was let go. The frame of the release drew the moved nodes back at their old place, before the program applied Graph_Moved: they jumped there and back, and the widgets in them glided both ways.
  • The font picker and ui.dropdown follow the rounding setting. Their buttons had square corners whatever appearance.rounding said; they now have a control's corners, as buttons and fields.
  • Nothing spills past its box when the window narrows. A box is never narrower than its content needs: a card with a row of fields stays as wide as the row instead of letting the fields and their + buttons pass its edge, a slider or a range slider keeps its track, and wrapped words break between words, never between letters (a stepper said "Unp / ack"); only a path or an address longer than 8 em may break. What is too wide goes up to the view that scrolls. Design: src/md/features/least-width.md.
0.297.02026-11-16 21:33 UTCrelease

Fixed

  • The command palette appears at once, with its rows. It opened after three or four unseen frames, began to fade in before its rows had come, jumped when a frame was late, and redrew the whole window before it showed. Now a dialog of a known size shows in its first frame; a view can say its content is not ready yet (ui.view_not_ready), and its dialog waits for it, 100 ms at most; the palette waits for its first ranking; a dialog's fade moves by 25 ms a frame at most, and the palette's lasts 70 ms (View_Options.quick); and an unseen dialog redraws nothing.
0.296.02026-11-16 18:49 UTCrelease

Added

  • Palette_Commands_Options.initial: the value a command's argument starts on, read from the program when its form opens (a session's title, the model in use); without it, the argument's default.
  • ui.palette_open_form: opens the palette straight on a command's form, at its first argument, so a button that sets what a command sets (a model) needs no chooser of its own; Escape at the first argument closes the palette.

Fixed

  • A closed list in the palette's run mode is read once per step: the program's choices and the translation of each label no longer run at every frame, and a list the program changes while the step is open no longer shifts its rows; the new list shows when the step opens again.
0.295.12026-11-16 17:51 UTCrelease

Added

  • ui.tooltip_beside(at), ui.focus_by_keys, ui.keyboard_focused: a tooltip can stand beside a box instead of the pointer, and a list's own Up and Down can move the focus as the keyboard does (its ring, into view), with its tooltip shown for the row the keyboard reached.
0.295.02026-11-16 17:36 UTCrelease

Added

  • A roadmap's ## Maybe. A project's ROADMAP.md may end with a ## Maybe section: what may be done one day and is not decided, each entry with the ways open and what each waits for. The changelog's check accepts it after ## Later, and only there.
  • A path completes in the palette. A path setting or argument changed in the palette lists the entries of the folder typed that start with its last part, folders first; Tab puts the one chosen in the field, Enter keeps it. The folder is read off the interface's thread. For a run mode's control: Palette_Run_Keys.tab and ui.palette_run_set_text.
  • ui.act_command: a program's own button of a command states it with ui.act_command(box, command.id), and the palette's Shift+Enter on that command goes to the button. A toolbar's tool of a command does it by itself.
  • ui.licence_card: a registered licence shown as a card, the same in every program: a dark foil engraved like a banknote, iridescent, a light that sweeps across it, the name raised in brushed silver, a gold-and-enamel seal, and a back with the program's logo raised. It tilts towards the pointer, turns over (Turn over, a drag, the arrows; Escape brings it back), and asks for no frame at rest; with less motion it stays still. Where its shader cannot be had it is drawn flat and reads as well. The settings' Licence page shows it for a registered licence: prefs_page.Licence_Options takes the program's logo and its vendor for it.
  • A side panel folds to a rail. A stack of views at the left or the right has a Minimise: its zone becomes a narrow column with a Restore and a button per view, and a click on one brings the zone back with that view shown. A side zone also folds by itself when the window is too narrow for it and the content, and unfolds when the window is wide again. A view that states View_Options.rail_em keeps a column that wide instead, built with View.rail set so it draws its own compact form (a column of marks). In a narrow stack, its Minimise, Maximise and Close are small icons and the view's moves go to its menu, so the buttons are never cut.
  • A text selection across rows built only in view. A selection in a diff's view or in a lazy column now stays when its first row scrolls far out, and a copy has every row between. A container declares its rows with ui.selection_rows_begin(ui.Text_Rows{...}), ui.selection_row and ui.selection_rows_end, builds the rows of ui.selection_held_rows() wherever they are, and gives a row's text by its index, and its identity (Text_Rows.id) when rows can be inserted above a selection, as a page of older messages; ui.lazy_begin(rows = ...) does it for a lazy column, gt:diff's view does it already.

Changed

  • The shop's thank-you page is Wren's, for every program (site.licence_thanks_block, licence_pages/thanks.html): the program's logo floats in a glow of its accent, three dots breathe while the Worker makes the licence, and on its arrival a warm line, one burst of confetti, the card rising in with a sheen and six gold stars. The key has a champagne-gold edge with a slow glint, Copy keeps its width when it says "Copied", and the help block fills the order number in the help address, never the key. The colours are the site's own; prefers-reduced-motion stops every motion, the confetti included.
    • The template's hero takes the new placeholder {{logo}} (the icon at 104 pixels on its stage) instead of {{icon}}, and loses its lead line: the warm line now comes with the licence. The block's spinner (.shop-spinner) is gone, replaced by .shop-dots. A program that keeps its own thank-you page puts <span class="shop-stage"><img class="shop-logo" ...></span> in its hero.
  • A selection dragged to the edge of a view scrolls fast. It scrolled three lines a second at the edge, and a maximised window left no room to go past it. Now the view scrolls a screen a second as soon as the pointer nears its edge, and up to 8000 pixels a second past it.

Fixed

  • A selection dragged past a view's edge scrolls the view, even with text beyond it. Dragged above a conversation with a header over it, the selection jumped to the header and the conversation did not scroll. Now the selection stays in the view while the view can still scroll towards the pointer, then goes on past it.
  • Notification-area icons on Linux carry the program's own id: the panel kept one choice (hidden, shown, its place) for the icons of every program made with the toolkit, as they all said gui_toolkit; each now says its program's id (platform.set_app_id, else the executable's name).
0.294.02026-11-16 14:26 UTCrelease

Added

  • The first window can close while others are open. host.host_close of the first window hands the renderer to another open window, which becomes Shared.main: a program started from the tray can close and open its windows freely (a Wayland overlay made again on another output). render.surface_adopt makes a second window's surface the renderer's own, for good.
0.293.02026-11-16 13:40 UTCrelease

Changed

  • A test session's home is its folder. With homes, toolbox.sway_start gives its programs the session's folder as HOME (it was <dir>/home): the config, data and state folders are under it, so a path a program shows in a picture reads ~/config/..., never a path of the machine. An install a live test makes lands in <dir>/.local/opt.
0.292.02026-11-16 12:59 UTCrelease

Added

  • render.Fault.D3D_Device: with TOOLKIT_RENDER_FAULTS, refuses Direct3D 11's CreateDevice call by call, so a test sees a machine with no graphics driver. The Windows tests now prove the fallback to WARP and the message box of a program with no console that cannot open its window.

Fixed

  • One notices file for every system. toolbox.third_party_notices writes its lines with LF whatever the licences it reads end theirs with, so a file made on Linux is up to date on Windows too (cliche's Windows release failed on it). A stale file now says its first line that differs.
0.291.02026-11-16 11:54 UTCrelease

Added

  • platform.overlay_move: moves an overlay over another output, at that output's size and scale, on Windows and X11 (false on Wayland, where a layer surface stays on its output). An overlay that is a program's first window, which cannot be closed and opened again, can thus follow the pointer to another monitor. On Windows, an overlay moved to a monitor of another scale keeps its monitor's size.
0.290.02026-11-16 11:39 UTCrelease

Fixed

  • A test session's programs keep out of your home folder. With homes, toolbox.sway_start also gives its programs a HOME of the session's own: an install a live test makes (now in ~/.local/opt) no longer lands in the person's home.
0.289.02026-11-16 10:52 UTCrelease

Added

  • Views' windows in a program's own tests: host.view_windows opens offscreen windows when the owner window is offscreen (they build and draw no picture: Host.no_picture), and session.view_window gives each window of an attached application as a session. A program's test of a view in its own window needs no backend of its own.
  • ui.views_set_window_end(vs, end, user): the program sets one hook that builds its overlays (a context menu, a chip) at the end of each build of each view's window, in that window's State. A view's build no longer calls them itself.
  • The palette's run mode (ui.Palette_Run, ui.Palette_Runner, prefs_page's runners): Enter on a setting that is no switch unfolds its control under its row, from the settings page's table (a sub-list the field filters for a closed list, a family in its face or a theme with its hues; the colour picker; keys; a number's steps and slider; a field). A change is written at once, Enter keeps it, Escape puts back the value of before (a value another path wrote since is left). Each row shows its value in use at its right; a locked setting shows its value and why. palette_run_level, palette_run_item, palette_run_error, palette_sublist.
  • Go to by act name: ui.act_name(box, name) states what an element acts on (setting:<name>, command:<id>); ui.act_shown and ui.act_go find and show it: its view forward, scrolled into view, focused and lit once. Shift+Enter in the palette goes to an item's place (Palette_Item.act, Palette_Source.reach); the settings page names each setting's line, and the settings source shows the setting's page. The hint row offers it only where it can be done.
  • Commands with arguments: ui.Command.arguments (each a config.Def) opens the command's form in the palette, each argument with its control; Enter on the last gives the choice with Palette_Choice.arguments. A closed list the program fills: Palette_Commands_Options.choices. prefs_page.palette_forms_use for a program without the settings source; ui.palette_command_arguments, ui.palette_command_choices.
  • ui.color_picker's text: false leaves out the format switch and the text field, for a caller whose own field is the colour's text. ui.font_families_read and ui.font_families_ask are public, for a list of families of one's own.

Changed

  • A view's window keeps its owner's time: a window with no clock of its own (ui.set_clock) reads the clock of the window it follows, so session.advance moves its delays (a tooltip) too.
  • ui.palette_chosen makes the run mode's writes: call it at the top of the build, before the program's content, so a page shows a value in the same frame as the palette. Enter on a setting that is no switch no longer opens the settings page: Shift+Enter does.

Removed

  • Palette_Alternates.shift and Palette_Commands_Options.shift: Shift+Enter is go to in every source. A source that gave Shift+Enter its own meaning gives it on Ctrl+Enter or Alt+Enter.

Fixed

  • A server's events arrive at once on Windows: an event stream read whole chunks and waited for one to fill, so a live server's first event never came and a program never saw its server online; it reads what has come.
  • No crash on closing after What's new was shown: a release whose text had no capital letter was freed twice when the program ended, which Windows stopped as heap corruption; ascii.lower now always returns a copy.
  • Closing your session no longer reads as a crash. A program the system ends ends its crash session cleanly, so the next start no longer shows an "unclean" report after each logout. On Linux this covers SIGTERM when the desktop session closes, SIGHUP and Ctrl+C; a program that handles these signals itself keeps its own handler. On Windows it covers a sign-out or a shutdown.
  • The light of go to stands off its element: the ring that Shift+Enter in the palette draws around a settings line or a button no longer touches its words; it sits a little outside, with rounded corners.
  • The palette's keys work in a view's own window: Ctrl+K and Ctrl+Shift+P pressed in the window of a view (a panel floated into a window of the system) open the palette over that window; asked from another window it moves there, and asked again where it is it closes. A choice made there reaches palette_chosen; the recorder of a key opens in that window and gives the palette back there.
  • A WebSocket to the loopback needs no libcurl (Linux): ws://127.x.x.x and ws://[::1] connect over a TCP connection of the package's own, so gt:cdp drives a program from a shell without curl again; since 0.287.0 cdp.connect failed there (ws_connect answered .No_Client) and a program's live test stopped at "the window serves the DevTools protocol".
  • http.request reuses its connections: requests to a server go on the connections already open (keep-alive) instead of a TCP connection and a TLS handshake each; one pool for the process, safe from any thread, with no client to keep (Linux: idle libcurl handles matched by origin, at most POOL_IDLE; Windows: one WinHTTP session). Five requests in a row now open one connection, not five.
  • session.advance on a view's window: it looped for ever, because that window's clock never moved. It now advances the application's clock.
  • ui.view_close of a view in a window of its own closes that window: the window and its State stayed open and empty. A closed view now keeps its record until the next step has closed its window.
  • The shop's pages keep the site's bar as it is. The program's name in the bar no longer turns to the accent's colour on the pricing and the other shop pages: the shop colours only its own links, in its content.
0.288.12026-11-16 08:22 UTCrelease

Added

  • A crate with no licence file in its package: a program gives that crate's licence text (Project_Work.crate), and the notices list it with the crates; the error names every such crate at once.
0.288.02026-11-16 08:03 UTCrelease

Added

  • A program's own Rust libraries and works in its THIRD-PARTY-NOTICES. toolbox.Project takes crates (the Cargo manifests of the program's own Rust libraries) and works (Project_Work: a name, a licence and the licence's file or text); third_party_notices gives their licences with the toolkit's. The crates are those of Linux and Windows together, so one file covers both builds and its check says the same on each system; cargo metadata is no longer --offline (a build fetches only its own target's crates). A path crate is walked, never listed: it is the program's code or the toolkit's. The list names each library (gui_toolkit's native/text): a program runs its notices command again.
  • The showcase's Values scene: choose how a value is stored, what it is, its unit or its closed list, and see the control the settings page gives it, live (--scene=values --value=size); tk screenshots takes four pictures of it.
  • ui.number's parse (ui.Number_Parse): a number's field reads what is typed with the program's own reader, a unit's suffixes for one ("1.5 s" in a field of milliseconds); ui.font_picker_open opens a font picker's list from elsewhere, as a click does.

Changed

  • The glow in percent: the settings page shows appearance.glow from 0 to 100 %, as every share; the file keeps 0 to 1.
  • A setting's control comes from its value (prefs_page.control_of): the settings page gives each setting the control of its storage, value kind and choices, never of its name. A program's own font setting gets the font picker, its own theme setting the cards, a colour the colour picker in a popover under its button, keys the recorder, with no code. A closed list of up to 6 choices is a row of buttons (4 before). Page_Options.hotkeys is gone (a Keys setting records keys) and differs_from_default takes no keys argument. setting_line draws one setting's line out of the page, control_open opens a setting's control.
  • What a setting's value is (config.Def.value_kind, Def.unit): a setting says what its value is (a font family, a theme, a colour, a path, an address, keys, a size, a time, a share, a length, a factor, a rate), and a number's unit comes from one table (config.UNITS). A size is typed "4 MiB" and shown so, a time "1.5 s", a share "45%"; a colour that does not parse, an address with no scheme or keys with an empty part are refused, with what is taken said under the field. Def.unit is now a config.Unit (it was a text) and Def.bytes is gone: a size is value_kind = .Size. src/md/features/everything-palette.md.
  • term: the grid draws each row as a retained picture keyed by the row's content: a line printed records one row, and the rows it moves up replay their pictures. In opencode native, a grid at rest costs 0.009–0.019 ms of the interface's thread instead of 0.21 ms, and a line printed costs 0.47 ms instead of 0.66 ms. On a screen of 40 by 120 cells (-define:TERM_TIMING=true), a draw at rest costs 0.02 ms instead of 0.9 ms. View.rows_recorded counts the recordings.

Fixed

  • No rule under a settings group's last line: the settings page draws its carved line between two lines of a group only, not under the last one.
  • Lazy columns: a view brought to its top by its anchor reads exactly 0 (it stopped at 0.003 near 3000 px): the anchor's move is rounded to 1/64 px, and what rounding leaves is kept for the next move, so tiny moves add up instead of drifting.
  • draw.Picture: a picture replayed in another draw context (a widget moved to a window of its own) uploads there; it drew the other renderer's pictures at its offsets. draw.destroy gives back the ranges of its pictures, which keep their recording. picture_release(pic) and picture_destroy(pic) take no context: the picture knows its owner (Picture.owner).
0.287.02026-11-16 06:53 UTCrelease

Added

  • A floating view can open against an edge. View_Options.float_edge opens a view's floating window, the first time, against that edge of the content instead of centred: a tool window at the top right, beside what it acts on.
  • The exploded view opens from the page and has a panel. Turned on, the flat page eases into the turned planes in about 600 ms, and back when it is turned off. Its panel, "Exploded view", is a view in the program's look: it floats at the top right at first, and moves, docks or goes to a window of its own as any view. It sets the mode, the yaw, the pitch, the spread and the zoom, and resets them; its close cross turns the view off. In the Layers mode, a small surface (a pill, a button, a thin band) stays on its parent's plane instead of floating over the words beside it.

Fixed

  • Notices of a crate that wraps a C library. notices takes the licence files one folder down when a crate has none at its root (libwebp-sys keeps libwebp's COPYING and PATENTS in vendor/), and reads a PATENTS file as a notice: a program that links WebP writes its notices again.
  • A decoded answer says no encoding, on every system. With compressed, the headers of the body given decoded no longer carry Content-Encoding nor the encoded Content-Length, on Linux as WinHTTP already did on Windows: the Windows tests were failing on it.
0.286.12026-11-15 23:52 UTCrelease

Fixed

  • Each group once in the keyboard shortcuts: a program whose commands alternate between groups no longer shows a group's heading twice; its commands stand together where its first one is.
0.286.02026-11-15 23:44 UTCrelease

Added

  • ui.shortcuts_sheet_set(sheet, commands, version, extra): gives the sheet of the keys a new table and new extra lines without opening or closing it, so a program that makes its table again in another language no longer reopens the sheet.
  • ui.card_box(): inside a card or a list_card (a row of it too), the box of the innermost card, to give it the keyboard or read its rect; nil outside a card. It replaces parent_box().parent.parent, which counted the card's inner boxes.

Changed

  • The sheet names an extra line's keys in the person's language: Sheet_Line.keys is written in English as a table's keys ("Esc, Esc", "Up / Down") and reads as a command's keys do ("Échap, Échap", "Haut / Bas" in French); a word that names no key ("Middle click") stays as written. platform.key_text reads / between two keys as it reads a comma.
  • A card can ask for no edge: Plate_Look.border and the border of machined_plate, machined_plate_corners, machined_plate_frame and machined_plate_frame_corners are a Maybe(Color): nil is the finish's edge, a colour of alpha 0 (Color{} included) is none. Migration: a look that left border zero for the finish's edge leaves it unset; a call that passed Color{} for the relief's edge passes nothing.
0.285.02026-11-15 23:19 UTCrelease

Added

  • Faint, soft and bright text in every theme: besides text and weak text, a program asks the theme for faint text (a hint, a line number), soft text (code, a tool's output) and bright text (a title, what is selected), and ui.theme_color(name) reads any colour of the theme shown, so a program keeps no colours of its own.
  • gt:http: compressed answers and a bound on the connection: Request.compressed asks for gzip or deflate and gives the body decoded (max_bytes counts decoded bytes), for a request and an event stream; Request.connect_timeout bounds the name's lookup and the connection of a request, a stream and a socket (0: timeout).
  • The sheet of the keys lists keys that are no command: shortcuts_sheet_open's extra takes Sheet_Line{group, keys, label} (Up and Down in a history, a middle click), each after the last command of its group, or under its own heading; its keys are shown as written.
  • ui.card with its own look: ui.card(title, icon, id, o) and ui.list_card(id, o) take Card_Options (a radius, and a Plate_Look: a face from a top colour to a bottom one, an edge, a rim, a shadow; a zero field is the theme's), in every finish; id sets the box of a card without a title. A .Plate box takes a look through Box.plate.
0.284.02026-11-15 22:42 UTCrelease

Added

  • A program's move of its folders can leave one kind where it is: platform.user_dirs_move takes kinds, so a program whose older install lived in its data folder keeps that install, its menu entry and its updater working.
0.283.02026-11-15 22:32 UTCrelease

Added

  • A picture held as text, decoded off the interface: pictures.get takes a prepare that makes the picture file from what the program holds (base64, a data URL) on the chores, before the decode, so the interface never spends the time.
0.282.02026-11-15 20:59 UTCrelease

Added

  • An exploded 3D view. ui.set_exploded (Ctrl+Alt+Shift+E in a build with the devtools) draws the window's boxes as planes in depth, each parent behind its children, the menus, toasts and tooltips on their own planes. A drag turns it, the wheel spreads the planes, Escape closes it; the page takes no input meanwhile.
  • macOS's folders. platform.user_dir gives macOS's own places: settings, data and state in ~/Library/Application Support/<program>, the cache in ~/Library/Caches/<program>, the runtime files in the user's $TMPDIR; log.default_dir gives ~/Library/Logs/<program>, and the setup's install folder is ~/Applications/<name>.app.
  • Event streams and WebSockets in gt:http. events reads a server's event stream (Server-Sent Events) and calls the program for each event; ws_connect, ws_send, ws_recv and ws_close hold a WebSocket over ws:// or wss://. Both run on a worker and stop at once when another thread asks. Windows uses WinHTTP; Linux uses any libcurl, also one built without WebSockets. The DevTools client (gt:cdp) now uses it (docs/http.md).
  • A wireframe mode. ui.set_wireframe (Ctrl+Alt+Shift+W in a build with the devtools, or Chrome DevTools' "Layer borders") draws every box of the window as its outline and each gap in the colour of its step of the spacing scale, a gap off the scale in red, with the name and size of the box under the pointer.
  • SVG: <use>, and gradients an editor writes. The SVG reader draws a <use> of another element (a logo's repeated arm), reads a fill or a stop colour written in the style attribute, and follows a gradient's href to the gradient whose stops it shares, as Inkscape writes them.
  • A cache of decoded pictures. gt:pictures keeps the textures of picture files under a byte budget: a program asks for a picture at each frame that shows it, at the size of its place, and gets its texture once a worker has decoded it. Places of nearly one size share one texture, the last pictures asked decode first, and what is on the screen is never evicted.
  • Secrets sealed for the user. gt:secrets seals a password or a token for the user's account: seal gives a field to keep in the program's file, open gives the secret back, forget removes it. Windows uses DPAPI, Linux the Secret Service. When no store is there, seal says so and the program chooses what to do (docs/secrets.md).
  • One URL escaper. http.component_encode(s) percent-encodes one part of a URL (a path's segment, a query's value): a space is %20, a slash %2F, as a path needs, where form_encode writes a form's +. The crash bar's issue link uses it.
  • One spacing scale. ui.SPACE_1..ui.SPACE_6 and the roles every page uses (PAGE_MARGIN, CARD_PAD, ROW_PAD, GROUP_GAP, ITEM_GAP, LINE_GAP, ICON_GAP, CONTROL_GAP, TOOL_GAP, INNER_PAD), ui.space(step), the list card (ui.list_card, ui.card_row: rows split by hairlines), and a well's pad and edge. A card's content now sits the same inset from its four edges, and a card adds no gap after itself: the page spaces its cards.

Changed

  • A program installs into its vendor's folder, apart from its data. A new install goes to %LOCALAPPDATA%\Programs\FromentSoftware\Papier on Windows and ~/.local/opt/FromentSoftware/Papier on Linux, never beside the settings and data an uninstall leaves. An install already made stays where it is.
  • A new setup screen. The program comes first: its logo large on a band of its accent, its name, what it is, its state as a pill beside its version. The options are a list of switches, the details (where the parts are, Uninstall) fold under one line, and the footer signs it with the vendor's mark beside the buttons. A copy from the Nix store gets a screen of its own: Nix's snowflake, "Managed by Nix", and nothing to do. ui.toggle takes wrap for a long label, as checkbox does.
  • The settings and the setup use the spacing scale. The settings' pages, the sidebar, the changelog, the licence and Diagnostics pages, and the setup's view and page use the same steps as every other page. Two places side by side now have the same gaps and insets.

Removed

  • gt:cdp's own WebSocket frames. ws_encode, ws_decode and the WS_* opcodes are no longer public: the client's WebSocket is gt:http's (ws_connect, ws_send, ws_recv), which keeps the one codec of the toolkit.
  • One install command line. desktop.parse_cli, desktop.cli_run and Identity.cli_flag (--desktop-integration) are gone: no program used them any more. A program's install command line is gt:setup's (--install, --uninstall, --setup, --status, --quit).
0.281.02026-11-15 20:53 UTCrelease

Added

  • A JSON value as a person reads it: json.display shows a value without quotes, a number as written, a boolean and null in the program's own words, and a structure as indented JSON, so a program no longer keeps its own.

Changed

  • One row of a label and its value: ui.stat_row takes its options (Stat_Row_Options): its width (its parent's by default), a column of labels with the values after them for a list of properties, a value's colour, selectable text, its height and its insets. A program no longer keeps its own key and value row. stat_row(id, label, value, width) becomes stat_row(id, label, value, {width = px(width)}).
0.280.22026-11-15 20:43 UTCrelease

Added

  • The toolkit's colour tints for programs: ui.with_alpha, ui.lighten and ui.darken, which the toolkit used inside, are public, so a program no longer keeps its own copies.
0.280.12026-11-15 20:11 UTCrelease

Added

  • WebP from a program's own Rust library: -define:IMAGE_WEBP_NATIVE_LINK=false lets a program that builds native/webp into its own Rust library use gt:image's WebP without linking the toolkit's native library, as with text and Mermaid.
0.280.02026-11-15 20:08 UTCrelease

Added

  • The vendor signs the setup. The setup's view and the Installation page show "By", the vendor's mark and its name under the version, as the foot of the program's site; the name opens the vendor's site (Setup_Options.vendor_url, setup.set_vendor_mark, prefs_page.Install.vendor_mark). setup.logo_make makes a mark or a logo from a PNG's bytes.
  • A program's folders under its vendor's. platform.USER_DIR_SEPARATOR writes a program's folder as its vendor's then its own (FromentSoftware/Papier: %APPDATA%\FromentSoftware\Papier, ~/.config/FromentSoftware/Papier), and platform.user_dirs_move(from, to) moves its old folders there once, at start, so its settings, history and licence come along.
  • Personal keys and aliases in every program. In the command palette, Ctrl+Enter on a command records a key of one's own for it, or a sequence of two (Ctrl+M, then T: the first chord shows in a bubble at the bottom of the window until the second); Alt+Enter makes the letters typed an alias that puts the command first and finds it by its first letters. A person's key wins over a command's own key; the menus, the tooltips, the palette and the sheet of the keys (in the accent's colour) show the keys in effect, and alternative keys read Ctrl+K / Ctrl+Shift+P. The keys are stored in English, so a language switch keeps them, in the advanced settings keys.custom and keys.aliases (prefs_page.Standard_Set.Keys, in STANDARD_ALL). For a program: ui.Command.id (each command's name for good, also the palette's memory key command:<id>), ui.command_ids_check, ui.Keymap with keymap_use, keymap_known, keymap_read, keymap_texts, keymap_bind, keymap_unbind, keymap_alias, keymap_alias_command, keymap_destroy, binding_text, binding_store_text, binding_parse, command_keys_in_effect, KEYMAP_RECORDER_VIEW, platform.key_english, and prefs_page.Standard_Targets.keymap for standard_watch. Palette_Commands_Options.names, .keys, .first and .alternates are removed: the ids, the keymap and the aliases replace them, and Palette_Commands_Options.shift is the program's Shift+Enter.

Changed

  • WebP inside the program. A program that reads and writes WebP pictures is standalone on every system: no gt_webp.dll beside it on Windows, no system libwebp on Linux; a program with toolbox.Feature.Webp builds libwebp into gt_native (tk build_native, part webp) and builds with -define:IMAGE_WEBP=true. tk build_webp and desktop.TOOLKIT_FILES are gone.

Fixed

  • The shop's pages wear the site's dress. Pricing, the thank-you page, the terms, refunds, privacy and imprint have the home page's icon, bar and footer, as the changelog and the roadmap do, in place of a bar and a footer of their own. When Paddle refuses a checkout (a seller not yet open for sales), the pricing page says so under the button instead of nothing.
0.279.02026-11-15 18:48 UTCrelease

Added

  • Zoom zones (ui.zoom_zone, ui.Zoom_Memory): an area of a window can have a zoom of its own, beside the interface's. The same zoom keys (Ctrl+= and Ctrl++, Ctrl+-, Ctrl+0) zoom the area that has the keyboard focus, Ctrl+wheel the area under the pointer, and the whole interface elsewhere. Each thing an area shows (a session, a shell) keeps its own zoom, between runs if the program gives a file; one never zoomed follows the program's default, and Ctrl+0 brings it back to it.

Changed

  • A terminal's zoom is a zoom zone: its zoom keys and Ctrl+wheel are the interface's (term.event leaves them, .Zoomed and term.ZOOM_STEP are gone), it steps by the interface's zoom step, and each shell keeps its zoom through View.zone and term.build's zoom_key.
0.278.02026-11-15 17:49 UTCrelease

Fixed

  • A machine with no graphics driver: a program on a machine with no usable graphics driver says so and ends, instead of crashing. host.host_open returns false and says why in the log, on standard error and, for a Windows program without a console, in a message box (host.open_error, render.init_failure_text); a Direct3D 11 window falls back to WARP when no hardware device can be made.
0.277.22026-11-15 17:35 UTCrelease

Changed

  • The sites' scroll bar is the toolkit's. Every page of a site the toolkit builds, its documentation too, draws the scroll bar of the programs' windows: the thin bar with its trough, its thumb and its arrows, the site's accent under the pointer (Firefox: the bar's two colours).

Fixed

  • Windows: a frame no longer reads the registry or asks the shell for a folder. The light or dark choice is read once and again only when Windows says it changed, and the person's folders (Documents, Downloads...) once each, the home from %USERPROFILE%: a theme that follows the system, or a path shown in a frame, waits on nothing.
0.277.12026-11-15 17:26 UTCrelease

Fixed

  • A card stack's arrows keep off its edges: the Previous and Next arrows under a stack of cards touched the edges of what held them (a panel's side, a dialog's resize grip); they now have room on each side.
0.277.02026-11-15 17:19 UTCrelease

Changed

  • One native library. The text backend, Mermaid and AccessKit are one static library, build/native/gt_native.lib (libgt_native.a), built by tk build_native -features:text,mermaid,a11y with one copy of Rust's standard library; build_text, build_mermaid and build_a11y are gone, and toolbox.build_native builds the parts a program's features ask for. A program with a Rust library of its own still builds the part's crate (native/text...) into it.
0.276.22026-11-15 16:48 UTCrelease

Fixed

  • A dropdown without a width shows its item: in a row as wide as its children, a view's header tools among them, a dropdown with no width given was squeezed to an empty sliver. It is now as wide as its widest item and its arrow.
0.276.12026-11-15 16:47 UTCrelease

Fixed

  • The roadmap page's links work. Its own anchors (Now, Next, Later) stay on it, and a link to a file of the repository (an intent) opens that file on the repository's site; the site's build no longer stops on them as dead links.
0.276.02026-11-15 16:09 UTCrelease

Added

  • A program's tests find what blocks its window. A program's tests now run with the blocking check, and a test session fails when one of its frames waits on the system (a file read, a process, a D-Bus call): the CI finds it before a person's window freezes. session.allow_blocking(s) is for a test of a step meant to wait. The system's light or dark and the person's folders are read once before the first frame, and the frames wait on nothing for them.
  • The zoom's keys, the same in every program. ui.ZOOM_IN_KEYS, ZOOM_OUT_KEYS and ZOOM_RESET_KEYS hold Ctrl+= and Ctrl++ (Ctrl+Shift+=, as an AZERTY keyboard types +), the keypad's + and -, Ctrl+- and Ctrl+0: a program's Zoom in answers Ctrl++ on a French keyboard too.

Changed

  • What's new is searched and filtered. The page shows every version, with no "Show older versions" to press; a search keeps the versions whose number, day or changes hold its words, a toggle per kind of change (Added, Fixed...) hides or shows it, and the page says how many versions are kept.
  • A command ends with a cli.Exit, not a number. A tool's command (Command.run, run_with), a program's line (cli.check) and the install's commands (setup.command_run) end with cli.Exit: .Done, .Failed or .Usage; toolbox.done(why) and toolbox.ended(ok) give it, and only cli.exit (and tool_main) turns it into the process's exit code. --status ends with .Done for an install there whole and .Failed otherwise. EXIT_DONE, EXIT_FAILED, EXIT_USAGE, cli.EXIT_OK, cli.EXIT_USAGE and setup.COMMAND_* are gone.
0.275.02026-11-15 15:40 UTCrelease

Added

  • Button_Options.busy: a button whose act is under way shows the spinner in its glyph's place, keeps its size, ignores clicks and is busy to a screen reader; no spinner beside it any more.
  • process.processes_of(exe): the processes of this user that run the file exe, found by its full path (never by its name), each with its start time (Process_Ref). On Windows, process_start_time and signal_process (Terminate, Kill: TerminateProcess) work now too.
  • instance.MESSAGE_PING and instance.MESSAGE_QUIT: the two messages every program's single instance takes the same way: a ping that only says a copy runs, and a request to end as the program's own Quit does.
  • <program> --quit (setup.Command.Quit, Setup_Options.quit): asks the copy that runs to end through its single instance, then waits until it has ended, at most setup.QUIT_WAIT (exit code 0 ended or not running, 1 still running). --status says quit: yes when a program can be asked, so an installer closes a running program before it replaces it.
0.274.02026-11-15 15:18 UTCrelease

Added

  • Partial redraw in a program's tests. session.damage_verify, damage_settle, damage_px, damage_expect_exact and expect_opaque check that each partial frame is the whole frame and that no pixel is left less than opaque, as the toolkit's own tests do.
0.273.02026-11-15 14:31 UTCrelease

Changed

  • Rows draw their hover and their selection as an inset, rounded face: a row of a list, a table, a menu, the command palette, a file browser's places and a settings sidebar no longer fills its whole width with a square, flat block. Its face stands a little in from the row's sides, with a button's corners (the rounding setting scales them; rounding 0, the edged finish or a row given radius 0 keeps them square), and is drawn in the finish: a soft gradient, a calm gloss with a fine edge of the accent in glass, a low plate in machined and edged. Selected rows that touch form one rounded block. A sidebar's page shown, a place and the palette's row have a short bar of the accent at their leading edge; a sidebar's page is a button of the new face .Row (selected on the page shown). Nothing in a row moves.
0.272.02026-11-15 14:05 UTCrelease

Added

  • A pill, the toolkit's. ui.pill(id, text, icon, color) marks a version, a kind of change or a state: rounded at its ends, a wash and a line of its colour, an icon, its words lighter. What's new draws its versions and types with it.
  • A version's time beside its day. The release writes each version's heading with its time, UTC ("## [1.2.0] - 2026-11-15 14:07"): several versions a day are told apart, on the sites and in the programs alike. changelog times (tools/changelog -times for the toolkit) gives the versions of before their tag's time.
  • What's new, in every program. Page_Options.changelog adds a What's new page to the settings: the program's changelog, in English, or in the language in use when the program gives a translation. After an update, a message "Updated to 1.2.0" stays until it is clicked, and opens that page (changelog_after_update; ui.announce takes stays).
  • Text that changes without a blink. ui.morph_label shows a new text by flipping only the characters that differ, left to right, in 300 ms, at the new width at once: a count or an address that another source replaces no longer flashes.

Changed

  • What's new is a timeline. The settings' What's new page shows each version as a card on a rail: its number, its day and time, the newest marked Latest, its changes under a coloured tile of their type.

Fixed

  • The pricing page's logo has no frame. A program's logo, drawn on nothing, showed in a dark rounded tile (a shadow around its picture); it now stands alone, as on the home page.
0.271.02026-11-15 13:40 UTCrelease

Changed

  • Hover, press and selection are drawn by each widget in its own design: under the pointer a face lifts (a button's gradient or bevel, a field's border and well, a check box's own box and ring, a switch's track), pressed it sinks at once (a gradient turns over, glass loses its gloss, a machined key goes in), a ghost button's face appears in its own shape, a hovered selected row lifts; no more translucent layer over the widget, and a check box no longer shows a plate larger than its box and off its centre.

Fixed

  • An opaque theme can no longer show the desktop through a window (Windows): a window whose theme is opaque is now shown with its transparency ignored, so no part of it (a panel, a dialog, a list's rows) can show the desktop or the window behind it. A translucent theme still shows the desktop's backdrop, and a switch between the two changes the window at once. On Linux, a see-through window (an overlay) with an opaque frame is shown opaque the same way.
0.270.02026-11-15 12:39 UTCrelease

Added

  • A program ships WebP on Windows with one word. toolbox.Feature.Webp builds gt_webp.dll and puts it beside the program; a release's package and the setup take it with the program (desktop.TOOLKIT_FILES), and the notices name libwebp.
  • WebP on Windows. tools/tk build_webp builds the toolkit's own libwebp from its sources (native/webp: libwebp and sharpyuv, compiled with MSVC) into build/webp/gt_webp.dll; gt:image loads it beside the program, so a program that ships it reads and writes WebP pictures on Windows. Without it, WebP is not available, as before.
0.269.02026-11-15 12:17 UTCrelease

Added

  • The frame rate is a standard setting. Settings › Rendering › Frame rate (rendering.frame_rate): the screen's rate, 30 to 240 a second, or no limit, applied to the window's pacing (Standard_Targets.pacer). Every program has it, with the same words.
  • A range slider comes back to its default. ui.range_slider takes an optional default range: a double click on its track sets both ends again.
  • A slider and a number come back to their default. ui.slider and ui.number take an optional default: a double click on the slider's track sets it, and a number's field has a right-click menu, "Reset to 10".
  • Every site shows its roadmap. The site command makes a roadmap page from the project's ROADMAP.md (what is being done now, what comes next, what comes later), in the changelog's look; the changelog's first paragraph links to it. Every program's site gets it at its next build.
  • A Subscribe menu on every site's changelog. Beside the changelog's title, a menu leads to the releases' feed (RSS) and to the repository's releases on GitHub, where Watch follows them; a press elsewhere or Escape closes it. Every program's site gets it at its next build, with no change of its own.

Changed

  • The arrows choose among radio buttons. The radio buttons of one choice are one Tab stop, the chosen one; the arrows, Home and End change the choice and the keyboard follows it, as in a segmented control and a row of tabs. A row of tabs or a segmented control left out of the Tab order the choices that are not chosen.
  • The arrows choose in a segmented control and a row of tabs. Each is one Tab stop, the chosen one; while it has the keyboard, Left and Right (and Up and Down in a segmented control), Home and End change the choice and the keyboard follows it. Before, each choice was a Tab stop of its own and the arrows did nothing.
  • A lone panel's controls never cover its content. On the hover of its top edge, a lone docked panel shows its stack's strip (its title, its moves, its buttons) and its content moves down under it; the strip goes when the pointer goes down into the content, and does not come back by itself. Before, two icons floated over the content's top right corner, over its own buttons, and neither could be clicked on purpose.
0.268.02026-11-15 10:10 UTCrelease

Added

  • setup.Choice.parts: an option of the install tied to parts of the integration starts, once a program is installed, from what the system has (Facts.parts), not from its default: the box of "open folders with the program" is ticked only when it does.
  • desktop.Integration_Options.default_file_manager: a program opens folders in place of the system's file manager, as the part Part.File_Manager that install, remove and status handle like the others. On Windows, Win+E and the folders and drives opened from the shell run the program (keys in the user's Software\Classes, removed with the system's own verbs back). On Linux, the program is the default of inode/directory in mimeapps.list, and removal gives the former default back. config_dir (<prefix>CONFIG_DIR) points the tests at a scratch $XDG_CONFIG_HOME; mimeapps_default and mimeapps_with_default read and edit a mimeapps.list text.
  • ui.stepper: the stages of a long work as nodes joined by connectors, each pending, active (the spinner's arc turns), done (a disc pops in and its check draws itself, the connector after it fills), failed or skipped. Left to right, top to bottom or reversed; labels and a second line below, above or beside the nodes, in the state's colour, an intent's or any colour; a compact form with the words in tooltips. It follows the animation setting, asks for frames only while something moves, and a screen reader hears "Step 2 of 4: Install, in progress".
  • archive.Zip_Writer (zip_begin, zip_add, zip_end) writes a zip file by file, deflated or stored, alone or after the bytes of a program, and archive.open_as opens a file as a given kind whatever its name: a program reads the files it carries after its own bytes.
0.267.02026-11-15 09:25 UTCrelease

Added

  • A resizable dialog maximises to fill its window: a Maximise button left of its close cross, or a double click on its header, makes it take the whole window but a small margin, and it keeps filling the window as the window is resized; Restore gives it back the size it had, which stays the one remembered. A program opens a viewer maximised with ui.view_maximise(vs, id, true) after view_open, and reads it with ui.view_maximised.
  • A program's own words are links: ui.link_words_set(prefixes) makes each word that starts with one of them (a session's id, ses_…) a link, in plain text and in Markdown, its target the word itself. Empty inline code is no longer read as a link.
0.266.02026-11-15 08:34 UTCrelease

Added

  • A window ready ahead. host.ahead_due says once when to open a hidden window that must show at once later (an editor at a screenshot's shortcut); with no window yet, the graphics driver is made on a thread first and its end wakes the program, so the interface never waits for it.
  • A program's steps in the renderer's trace. With TOOLKIT_RENDER_TRACE=1, render.trace_start, trace_mark and trace_note print how long each step from a trigger took, beside the renderer's own timings: one switch and one list for a latency, from a shortcut to the first picture.
  • A worker thread's own fonts. host.Worker_Fonts with host.worker_fonts gives a worker that draws text (a watermark on a picture) a font state of its own, made at its first use with the interface's face; host.load_ui_font is that one rule, the window's fonts included.

Changed

  • Fields have the corners of buttons. A text field, a text editor, an input frame, a shortcut field and a number's field are rounded as a button is (the same radius, scaled by the rounding setting); they were square beside rounded buttons. next still gives another radius.
0.265.02026-11-15 08:05 UTCrelease

Added

  • A menu under a button lines up with its right edge. ui.menu_open(..., align = .End) puts the menu's right edge on the button's, at the width the toolkit measured: a button at the end of a toolbar opens its menu without the program knowing its width (ui.Menu_Align).
  • The rows of a program's tables are a standard setting. The set Standard_Set.Rows registers appearance.rows.zebra (alternating rows) and appearance.rows.rules (a line under each row), with the program's defaults from Standard_Defaults.values; prefs_page.rows_look(prefs) reads them for its tables. Every program with tables then has the same two settings, with the same words.
  • The main window's place is a standard preference. window.placement (hidden) with prefs_page.placement_restore before the window shows, placement_track at each frame and placement_keep at the close: the window opens where it was, on the monitor it was on, at its size, maximized again, and a crash or an update's restart finds it kept.

Changed

  • A dock's stack with too many tabs scrolls them with arrows. Its tabs are on a strip, as every row of tabs of the toolkit: an arrow on each side that hides tabs, the wheel along them, the tab on top brought into view; the stack's fold and menu buttons stay at its end. Before, the tabs past the room were cut.

Fixed

  • Windows: an offscreen window's placement reads back maximized. platform.set_placement with maximized on an offscreen window makes it maximized at once, as on Linux; get_placement said it was not until it was shown, which an offscreen window never is.
0.264.22026-11-15 07:52 UTCrelease

Changed

  • The bubble of a cut text is compact: Copy and close are two small glyphs in its top right corner, without words, and its text wraps at a reasonable width instead of taking the window's.
0.264.12026-11-15 07:38 UTCrelease

Fixed

  • 0.264.0 builds again: the bubble of a cut text used a point-in-rect test that 0.263.0 had removed; it now uses draw.rect_contains.
0.264.02026-11-15 07:34 UTCrelease

Added

  • A cut text shows itself whole: the "..." at the end of a text too long for its place is now a target in every program. A click on it opens a bubble under it with the whole text, which can be selected and copied (Copy, or Ctrl+C), and which stays until its cross, Escape or a click outside it. The rest of a row still acts as before.

Fixed

  • A dialog's long title stays inside it: a title of one long word, a file's path, ran past the dialog's edge and under its close cross. It now gives way to the header's tools and the cross, and wraps between its characters.
0.263.02026-11-15 07:32 UTCrelease

Added

  • fsx.private_dir and platform.session_runtime_dir: private_dir(path) makes a folder only its user can enter (POSIX: 0700, one of this user's open to others closed) and refuses a folder of another user or a link at the name, the checks made on the opened folder. session_runtime_dir() says whether the session has a runtime folder of its own, the one gvfs and the portals use ($XDG_RUNTIME_DIR, else /run/user/<uid>), and which.
  • gt:json: one JSON helper for every program. Path reads over core:encoding/json values with a default that never panics (tk_json.text(v, "data", 0, "id")), one string quoter (control characters and DEL escaped, text past ASCII kept as UTF-8, a byte that is no UTF-8 as U+FFFD) and a streaming writer that places the commas, compact or indented. The flowgraph's store, the preferences' JSON and TOML export and the crates' notices use it.
  • GIF pictures open (image.decode, gif.decode): a GIF file opens as its first frame, as a browser shows it before it plays: both colour tables, transparency and interlaced files; a damaged or cut file is refused, and a file that declares a picture past 8192 x 8192 pixels is refused before any memory is taken for it. image.file_format names it Gif.
  • ui.context_take(box): a block's context menu. A block that is no button (a message, a card, an image) takes a right press for its menu: the innermost that asks keeps it, a field's own menu keeps its press, and nothing under a dialog or a floating panel takes it.
  • A project's site build makes its pictures light. Project_Site.images (tk_site.images_default(): the folder img, copies at 720 and 1100 pixels) makes them WebP at their widths and points the pages at them, as opencode native's site already did.
  • store.Kept: a number kept per id. Read once from a program's store as numbers, clamped, forgotten at its rest value so that it follows the rest when that changes (a session's zoom, a shell's, a pane's width per document).

Changed

  • The runtime folder is never one another user can take (platform.user_dir(.Runtime)): on Linux without $XDG_RUNTIME_DIR, it is the session's /run/user/<uid> when it is there, else runtime-<uid> in the temporary folder, made closed to the others; "" when another user made that name first. It is no longer the shared /tmp, so a program's folder in it needs no check of its own. On Windows it is the system's temporary folder as Windows gives it (GetTempPath2W, else GetTempPathW), never %LOCALAPPDATA%.
  • ui.paste_request / ui.paste_answer paste files and images, not only text: one paste API gives one answer, with one kind (text, files, or an image), and the toolkit chooses the kind once for every program. Files win over text, and text wins over an image.
    • paste_request(key) → paste_request(key, kinds = {.Text}, decode = false). decode gives an image its pixels, decoded on the chores.
    • paste_answer(key) -> (string, bool) → paste_answer(key, kinds = PASTE_KINDS_ALL) -> (Paste_Answer, bool). Read the text in .text.
    • Text_Edit_Options.paste and .paste_decode set what the editor's Ctrl+V, Shift+Insert and menu ask for. The editor takes the text; the program takes the files or the image after it.
    • edit_menu and edit_paste take the same paste kinds and decode flag.
    • The toolkit reads an image only when the clipboard holds no files and no text.

Removed

  • desktop.xdg_desktop_dir and desktop.user_dirs_desktop: platform.known_folder_path(.Desktop) gives the desktop folder. $XDG_DESKTOP_DIR of the environment is no longer read (GLib does not read it either); a desktop folder the person disabled gets no shortcut.

Fixed

  • A panel's hover icons never cover a strip: over a lone docked panel whose top area holds a strip in their corner (a sidebar's row of server tabs), the Detach and Close icons do not show, so the strip's arrows are always reachable; the panel's menu and the palette still float and close it.
  • A strip's arrows look alike and never touch a cut choice: both arrows have the ink of the text around them, at rest and under the pointer (the left one looked faint beside the right one just clicked; the hover shows by its plate), and a clear gap of the strip's surface separates each arrow from the content, which fades in only past it: the tail of a tab cut at the arrow, its raised plate and its glyph, no longer shows glued to it (ui.STRIP_GAP_EM).
  • The person's folders on Linux are their desktop's (platform.known_folder_path): a localized desktop's folders (~/Bureau, ~/Téléchargements) come from xdg-user-dirs' user-dirs.dirs, read once per process as GLib reads it, so they are in the file browser's places and the dialogs start there. A folder the file disables (set to the home) is none; one it does not name is still $HOME/<English name>. known_folder_path is a blocking call on every system (it reports a call on the interface's thread), and a folder's icon key (desktop.file_icon_key) is its path, as on Windows, so a frame never reads the file.
  • An overlay that takes the keyboard takes it each time it shows (Windows). Shown again, it took the keyboard only at a first click, so a region chooser's Escape did nothing until then.
  • A capture on Windows is never black. A new screen duplication can first give a frame with only the pointer, over a surface not drawn yet; on a screen that did not change, that black surface was taken now and then. The capture now waits for a frame with a picture, else reads the screen through GDI.
  • Every icon the toolkit draws is in a program's font. A program built with only the Lucide icons it uses missed those of toolkit files that import the icons with no alias, such as a strip's left arrow, which showed as an empty button.
0.262.22026-11-15 06:37 UTCrelease

Fixed

  • The palette puts the whole word first: a search for a name now ranks the item whose word ends there above a longer one that only starts with it ("inspecteur" above "inspecteurtool", "End task" above "End tasks"). Both counted the same before, and the list's own order decided.
  • A view in a window of its own closes again on Linux (Wayland): its window's close button, or the compositor's, left the window on the screen. The close of one window is read in another window's frame there, and the window marked closed was skipped before its own frame, the one that takes the close back and puts the view back in place. A window with a close_asked hook keeps its frame until it took the close back, and the loop does not sleep over it.
0.262.12026-11-15 00:44 UTCrelease

Fixed

  • Linux: the session bus kept in memory it did not own: a thread's session-bus connection (the tray, notifications, the portals, the screen saver's inhibitions, the accessibility bridge) took its memory from the first caller's allocator, and kept writing in it after that allocator freed it. It lives in the heap now, as long as its thread, with the accessibility bus's address and the list of inhibitions. The host tests run on Linux too (they crashed there after a few tests).
  • Two instances of a program no longer hide each other's crashes: every instance keeps its own session file (crash.session_file, session-<pid>.txt). One shared file was overwritten by a second instance, so a crash or a kill of the first went unreported, and the clean end of either removed the other's trace. A start reports every session whose process is gone, and leaves the ones that still run. A clean end now marks as seen what was there when its session began: a crash of another instance while it ran is still shown at the next start.
0.262.02026-11-14 23:28 UTCrelease

Added

  • Toggle commands and a detail per command in the palette (docs/palette.md): a command with ui.Command.toggle is a switch: its palette row shows its check (Palette_Commands_Options.checked(user, index), the program's state, read for the rows in view) and choosing it leaves the palette open, as a setting's switch does; its menu line takes the same state (menu_item(..., checked = on)). Palette_Commands_Options.details gives each command a detail shown after its title ("Session · Fix the build"), part of version, not searched. The views' moves source reads again only when the moves it lists change, not at each step of a view (the palette's own included): a flip with the palette open ranks nothing again.
  • .Scrollbar_Reserve: a box that scrolls keeps the room of its scroll bar even while its content fits, so a list that grows past its view does not narrow under the reader (ui.next({flags = {.Scrollbar_Reserve}}) before scroll_y, list, vlist, text_edit). By default the room is kept only while the content overflows.
  • ui.strip: a row, a column or a block of choices (tabs, chips, a program's server tabs, a sidebar's buttons) that scrolls with arrow buttons when its choices do not fit, never with a scroll bar. An arrow shows only on a side that hides choices, as a small button over the edge with nothing of the content under it, the content fading out beyond it; a click brings the next hidden choice fully into view, held it repeats. The wheel over it scrolls it the way it goes (on one axis every wheel form, on both the wheel Y and Shift+wheel X), and passes through when it fits. Strip_Options: axes ({.X}, {.Y}, {.X, .Y}), a step of one choice or a page, the fade's length; ui.strip_reveal brings the chosen choice into view when it changes; ui.strip_view; the box flag .Strip_Wheel; Box.edge_hold, a band at an edge where a box's content does not show (draw.mask_edge_fade's hold).

Changed

  • The command palette gives what the first programs lacked (docs/palette.md): the sheet of the keys lists the palette's command itself, the settings source reads its options when it needs them, one usage memory per file is shared by a program's windows and keeps a choice made just before quitting, a question can be ended from any thread, a list's selection version follows its active row, and the node graph's add palette is a source of the toolkit. Migration:
    • A table's line for the palette's command (Ctrl+K, Ctrl+Shift+P) → none: ui.palette_keys reads its keys and ui.shortcuts_sheet_open lists ui.palette_command() after the program's commands. A menu line reads ui.palette_command() at its build.
    • prefs_page.palette_settings_add(&p, &s, &prefs, &page, options, open, user) with options: Page_Options → options: proc(user: rawptr) -> Page_Options, asked when the source reads or acts; add it once (a second add does nothing). A change of the pages shown: s.source.version += 1.
    • Command_Palette.memory: Choice_Memory → ^Choice_Memory, shared per file (ui.choice_memory_acquire(s, path), ui.choice_memory_release(m)); ui.palette_memory_open is unchanged for a program. ui.choice_memory_close keeps a choice made before the file was read.
    • Ending a Palette_Question (palette_answer, palette_answer_error, palette_question_drop) is safe from any thread: off the palette's interface thread it is posted there (palette_answer then returns false). ui.palette_answer_free(&a) frees an answer never given, instead of virtual.arena_destroy(&a.arena).
    • Item_Selection.version (a list's, a Virtual_List's, a Table's) also moves when the active row moves (Ctrl+arrows, a right click on a selected row, list_select).
    • ui.flow_palette(g, cat, from) -> (commands, disabled) → ui.flow_palette(&palette, &fp, g, cat, from, version), a ui.Flow_Palette source (a chooser; c.index is the kind, c.id its name); ui.flow_palette_items(g, cat, from, allocator) gives its items.
    • src.read == nil to know whether a source is added → ui.palette_has(&p, &src); ui.palette_add is idempotent.
    • Palette_Question.prefix: where the query was typed (.None: the plain search); a searching source is asked again when only the prefix changed.
    • Palette_Choice.query: the query the item was chosen for, without its prefix (reading the field after the close goes).
    • p.ranked.valid and p.ranked.text in a test → ui.palette_ranked_for(&p, text).
  • Every row of tabs shows its chosen tab as a raised plate: in ui.tabs, a stack of views and a dock's stack, the chosen tab stands on the finish's face of a button, the others are flat in the weak ink with a plate of the hover tint under the pointer; the accent underline and the views' tinted block are gone. Each tab of a stack of views is a Tab stop, and the tab shown is brought into view when it changes.
  • Rows of tabs scroll with arrows, not a scroll bar: ui.tabs and the tabs of a stack of views no longer show a scroll bar under them when they are too many for their row. The edge that hides tabs fades and a chevron button stands on it: a click brings the next tab fully into view, held it repeats, and the wheel scrolls the row sideways. A tab reached by the keyboard comes into view.
  • One command palette fed by sources (docs/palette.md): the palette asks its sources, ranks every item together on a chore (the interface's thread matches none, 10 items or 100 000; a ranking that a newer one replaced stops early), drops an answer or a ranking for an older query, a former opening or a removed source, and keeps the selection on its item when rows arrive. One closed table of prefixes for every program: > commands, @ go to, / paths, # choose, : settings, $ secrets; a character without a source is text. Every row has one shape (icon, title with what the query lit, detail, mark, keys); with nothing typed, Recent and then the commands, the disabled ones greyed and last, the selection on the first row that acts; a hint row at the foot shows the prefixes and the keys of the selected row; a source that reads says "Sessions: reading…". Enter while a ranking is in flight waits for it: the row the person moved to, else the first that acts. Tab puts an item's completion in the field. A switch flips and the palette stays open. Ctrl+K and Ctrl+Shift+P are the toolkit's window command, ui.palette_command(), read by ui.palette_keys. Migration:
    • ui.palette_set(&p, commands, disabled, {memory, names, first, keys, version}) → ui.palette_commands(&p, commands, disabled, {names, first, keys, version, alternates}) at each build: it adds the commands source and the views' moves source, and compares version only (a change of disabled needs a new version; 0: the addresses are compared).
    • ui.palette_chosen(&p) -> (index, mods, ok) → ui.palette_chosen(&p) -> (Palette_Choice{source, id, index, mods}, ok), and ui.palette_chosen_command(&p, c) -> (index, ok) for a command. Call it at each build: the toolkit's sources act in it.
    • The index decoding by ranges (i < len(own), then the settings, then the moves) goes: the settings and the moves act themselves.
    • Palette_Options.memory and ui.choice_note for each choice → ui.palette_memory_open(&p, s, path): the palette owns its Choice_Memory and notes each choice, the key <source>:<id> (command:<label or name>, setting:<name>).
    • prefs_page.palette_commands(&prefs, o) and prefs_page.show after the choice → prefs_page.palette_settings_add(&p, &settings, &prefs, &page, o, open, user).
    • ui.views_commands_update and ui.views_command_run for the palette → nothing: the moves source follows the views of the window the palette is over. View_Commands.serial goes.
    • Palette_Options.recent_title and .foot → gone: "Recent" and the hint row are the toolkit's.
    • ui.key_press(.K, {.Ctrl}) → ui.palette_keys(&p), the one reader of the palette's keys; ui.palette_toggle(&p) for a button.
    • A program's own source: ui.Palette_Source, ui.palette_add; it ends each Palette_Question once with ui.palette_answer(q, &answer) (a Palette_Answer built in its own arena, taken without a copy), ui.palette_answer_error or ui.palette_question_drop.
    • Command_Palette.rankings still counts the rankings; .asks and .dropped count the questions and what was dropped; palette_row_count, palette_row, palette_selected, palette_busy and ui.rank_matched() are for tests. Search_Band_Options.busy adds "…" after the count.

Fixed

  • A panel's hover icons no longer take a click meant for what is under them: in a lone docked panel, the Detach and Close icons do not show over a control the pointer is on in their corner (a strip's arrow in a sidebar's top row), and that control takes the click. A click on the server tabs' right arrow at the top of a sidebar floated the sidebar instead of scrolling the tabs.
  • A notification closed at once is known as closed (Linux). The program listened for the notification server's "closed" signal only after the server answered, so a notification it closed at once stayed known as shown, and the next one replaced it instead of showing beside it.
0.261.12026-11-14 21:46 UTCrelease

Added

  • ui.view_dock_line says where a dock handle's rule is drawn. A program's line that goes on across its title bar or its status bar takes its place from it, so the two meet on one pixel column during a drag, after it and at every scale. ui.splitter_line and ui.splitter_line_width give any handle's rule the same way.

Fixed

  • A splitter's rule is sharp. Its middle rule started half a pixel off and was drawn across two pixel columns, so nothing could line up with it; it now starts on a whole pixel.
  • A panel moved into a window of its own shows its content. Under the program's own title bar, the window's header took the whole height and left the view nothing (a terminal showed its header alone, in the middle of an empty window); and a docked panel opened in a window of the size of another edge's zone, not its own.
  • The file browser hides the files that Windows marks hidden: on Windows, a file or folder with the hidden attribute is now hidden in the folder shown and in the search in subfolders, until Hidden files (Ctrl+H) is on, as in Explorer. Before, only names that start with "." were hidden. A system file without the hidden attribute stays shown. fsx.read_folder gives a folder's entries with the system's hidden mark.
0.261.02026-11-14 21:26 UTCrelease

Added

  • The Ember theme: a near black with a peach accent, and in the light version white with a deeper orange, among the toolkit's themes (ui.THEMES), for every program. Its colours are those of opencode native's own theme, which can use this one instead of its copy.
0.260.32026-11-14 21:22 UTCrelease

Added

  • toolbox.odin_symbol: the name of an Odin procedure as the crash reports show it (pkg::[file.odin]::proc gives pkg.proc and its file), for a program that reads symbols its own way, as Wren's PDB reader does.
0.260.22026-11-14 19:42 UTCrelease

Fixed

  • The launcher check asks --version. toolbox.check_launcher runs <launcher> --version, the form that gt:cli gives every program, instead of version, which a program that reads its line with gt:cli does not know.
0.260.12026-11-14 19:16 UTCrelease

Fixed

  • A resized dialog reopens at its exact size: the size a person gave a dialog, and the width of a docked panel, were remembered to a tenth of an em, so a dialog of 400 px could reopen at 401 px. They now come back to the pixel.
0.260.02026-11-14 18:21 UTCrelease

Added

  • Window commands work in every page and whatever has the keyboard: ui.Command.scope = .Window marks the palette, the keyboard shortcuts, the settings, close and quit. command_pressed takes their keys while a text field, a list or a docked or floating view has the keyboard, and over a view shown as a dialog (the settings of a program). A widget that owns every chord while it has the keyboard keeps them with ui.keys_claim(owner, ..pass); the shortcut recorder (hotkey_field) does while it records. ui.chord_pressed(chord, scope) reads one chord by the same rules, for a program with a table of its own. ui.command_window_typing_keys lists a window command's key that a field would keep: a program's test expects none.
  • The selection of several rows, the same in every list (ui.Item_Selection): a list, a virtual list or a table with multi selects as a file manager does. A click selects a row alone, Ctrl+click toggles it, Shift+click selects the range from the anchor (a second one replaces it), and Ctrl+Shift+click adds the range. Shift with the arrow keys, Page Up, Page Down, Home and End extends; Ctrl with them moves the active row only. Ctrl+Space toggles the active row, Ctrl+A selects all, and Escape clears. A program's own grid gets the same rules from item_selection_click, item_selection_move and item_selection_key. The marks (list_is_marked, list_mark_count, marks) are replaced by list_is_selected, list_selected_count, list_selected_ids and selected_changed. A selection is always explicit: one row clicked is in it, and the active row can be outside it. Screen readers hear a multi list as multiselectable.
  • A command's key that types text leaves it to a focused field. ui.command_pressed no longer takes a letter, a digit, a punctuation mark, Space or Backspace (alone or with Shift) while a line edit or a text area has the keyboard: the field gets the character, and the command waits until no field has the keyboard. ui.command_key_types_text(chord) says whether a chord types text, and ui.command_typing_keys(table) lists the keys of a table that do, for a program's unit test. A program whose field always has the keyboard expects none: its menus then never show a key that cannot work.
  • A selection dragged to the edge of a scroll view scrolls it (ui.drag_autoscroll, ui.drag_autoscroll_own): near or past the edge, the view scrolls toward the pointer, slowly in a band of 1.5 em inside the edge and faster past it, and the selection extends to what scrolls in, so a selection can span several screens. Text selection, text_edit, line_edit and the terminal's grid do it; nested views scroll the innermost one that can still move that way.
  • A tool bar can centre its groups: ui.toolbar(id, {align = .Center}) centres each line of a wrapping bar, the last one too, and the groups left in a folding bar in the room before its "…" button and its pinned groups. Cancel and Done stay at the bar's end, in a wrapping bar at the end of its last line. By default (.Start) the groups start at the bar's start, as before. In every bar, an item now sits on the middle of its line, a control taller than a tool too.
  • ui.toolbar_menu_show(id) opens a tool bar's "…" menu: as a click on its "…" button does, under the button. A picture or a tour can show the menu open. It returns false while the bar shows no "…" button yet; call it until it returns true.
  • A tool bar's tool takes its tooltip and its menu's search: ui.toolbar_tool(id, {..., tip = "Zoom"}) shows that tooltip whatever the tool shows, its words too (a zoom showing "100 %"). Without a tip, a tool with a command shows the command's tooltip. menu_search = false opens the tool's menu without a search field, where a typed letter selects an item (a menu of a few fixed choices); by default its menu searches, as every menu.
  • A tool bar's tool opens a menu: ui.toolbar_tool(id, {..., menu = "insert_menu"}) opens the menu that the program builds as always (if ui.menu("insert_menu") { ... }, outside the bar). In the bar the menu opens under the tool, which stays lit while it is open. Folded into the "…" menu, the tool is a submenu row, and the same block builds its submenu, by the pointer or by the keyboard. The spacing of a tool bar is now one rule for every program: 0.2 em between two tools, 0.5 em between two controls, 0.8 em between two groups or a separator's room, all following the density.
  • A stack's tab strip with "+", moves and window-like buttons: View_Options.tabs_always shows a stack's strip for one view (a terminal). View_Options.new_tab: proc(data: rawptr) puts a "+" right after the last tab: the program opens a new instance, which joins the stack as its last tab; the same act is in the band's menu and the palette, in new_tab_label's words. The shown view's moves (Float, Open in a window, Re-attach) sit right after the tabs, its tools after them, and at the right end Minimise (top and bottom zones, remembered), Maximise (the stack fills the dock space; again or Escape restores; ui.views_space_maximised) and Close (every view of the stack), drawn as the window's caption buttons.
  • Views: a size per opening, what floats over a view, moved at a direct opening: ui.view_size(v, width_em, height_em) sizes this opening's dialog (a viewer hugs its picture, past the 46 em cap of a dialog sized by its words). ui.view_occluders(v) and ui.views_floating_rects(vs, s) give the rects of the floating windows and dialogs over a view, for a page with a native child window to step aside. A view that opens straight into a window of its own now gets moved too.
  • Views with instances reopen at start: each instance of a view (a journal per service, a terminal per shell) has its own line in the views' memory, with its presentation and its place. ui.view_restored_instances(vs, id) lists the instances open at the last quit; the program reopens each with its own data, and each opens where it was. view_was_open(vs, id, instance) now reads that instance's line.
  • The layout of a dock space as at first: ui.views_space_reset(vs, name) puts a space's zone sizes, splits and tabs back to their defaults and every view docked there or homed there back to its home, for a program's "Reset the layout" command.
  • Dock zones sized by a share of their space: View_Options.extent_frac and View_Dock_Options.extent_frac / extent_em (per edge, also for views_frame(vs, o)) give a zone's size at first as a share of its space's width or height, so it follows the window's size. A zone the user resizes keeps its unit: a share stays a share in the memory (left.frac=0.300).
  • A program asks which view has the keyboard, and opens its panes at the first start: ui.view_has_focus(vs, id, instance) and ui.views_focus(vs) say whether the focus is in a view, whatever its presentation. ui.view_restore(vs, id, data, first_start_open) opens a view at start-up when it was open at the last quit, or at the very first start when asked; a view the user closed stays closed. F6 and Shift+F6 between the areas of a window are now read last in a frame: a program that binds F6 itself keeps it, wherever it reads its keys.
  • A font picker for the family settings: the interface, monospace and reading font settings open a list of the system's families, each name drawn in its own family, with a search field that finds a family as it is typed. Default is at the top, the current family is selected, the monospace families are marked and come first for the monospace setting, and a choice is set at once. A program's own screen uses it with ui.font_picker (its families read once on the chores through a ui.Font_Source, ui.font_system_source for the system's; docs/font-picker.md). gt:font names the family of any face with font.family_of (an embedded or file face reads its name table), and font.system_families now returns font.Family values (name, monospace): read .name where it returned names.
  • A setup logo given later, and the views' palette commands kept: setup.set_logo(&d, logo) gives the setup dialog its logo after it opened (a logo made from a task's answer), shown from the next frame. ui.View_Commands with ui.views_commands_update keeps the views' palette commands in memory of their own, made again only when a view opens, closes, moves or changes its title, or the language changes: the palette holds its table while it is open, which temporary memory did not allow.
  • Panels split inside a dock zone: a zone holds several stacks of panels, one above the other at the sides, side by side at the top and the bottom, each with its own tabs (none for a lone panel) and a handle between two. While a view is dragged over a stack, a cross shows at its middle: its centre makes the view a tab there, its sides put it in a new stack before or after. A dock space without content (ui.views_dock(vs, name, {})) has a centre zone where panels go. Each zone's axis and its stacks' shares are remembered with the space (ui.View_Space_Memory, views_space_format, views_space_parse), and each view's stack with its place (View_Place.stack).
  • A view detaches into a window of its own: "Detach into a window" in a view's header and menu, and the palette's "Open <title> in a window", put the view in a window of the system, with no frame where it shows nowhere and no flash: the old place stays until the window's first picture is out. The window's header has Re-attach and Close view; Escape and Ctrl+W close the view; the system's close of the window brings the view back home, still open. The focus goes into the window and back to the main one when it closes. On Windows and X11, a floating window let go outside the main window opens in a window there, and a view's window dragged by its header onto the main window's dock targets docks again; on Wayland the buttons and the menus do it (platform.positions_known, asked at run time). The window's size and place are remembered, and a view open at quit opens there again. host.view_windows(&app.main) is the backend for a host program (ui.views_set_windows); session.view_windows(s) the one of the tests, with session.view_window, session.window_shown and session.system_close. View_Options.moved is called when the view changes window; the scroll and the focus follow it (ui.state_carry); its settings follow the main window's (ui.style_follow). Without a backend, or when the system refuses a window, the view floats inside its window and says so. The docking example shows every presentation.
  • Views dock as panels around a window's content: ui.views_frame(vs) around the content gives the window four edges where views dock (View_Options.home = .Panel, home_place), and ui.views_dock(vs, name, o) is a dock space inside the program's own layout. A panel alone at an edge adds nothing to what it draws; two at one edge are tabs. The hover of a panel's top shows its Float and Close icons, a right click there opens its menu, and the menu of every view now docks it left, right or at the bottom. Dragging a dialog's header, a floating window's header, a panel's tab or its title (ui.view_drag_handle(v, box)) shows four targets at the edges: let go over one, the view docks there; elsewhere it floats. The handle of each edge resizes it, and the sizes are remembered. The code of a panel or of a floating window reads keys only while the focus is in it, and it reads them before the content; F6 and Shift+F6 go through the content, the panels and the floating windows; Ctrl+W closes a panel. ui.views_commands(vs) and ui.views_command_run give the palette the same acts ("Dock Files to the right", "Float Files"...), in the language in use. The docking and panes examples now use views.
  • A dialog detaches into a floating window inside its window: the small Detach icon of a dialog's header, or a drag of the header, makes the view an internal window: not modal, moved by its header, resized by its edges and corners, in front when pressed, with Re-attach and Close in its header; Escape and Ctrl+W close it while it has the focus. The views remember where each one was and whether it floated (view_present(vs, id, .Internal) from a program; View_Options.first = .Internal). A right click on a view's header opens its menu: Open as a floating window, Re-attach, Close (Detach into a window and the docks come with the next presentations). View_Labels has the words of the menu (reattach, window, floating, dock_left, dock_right, dock_bottom). The header of a dialog whose program gives no tools has no tools box.

Changed

  • Text a person reads is selectable by default: paragraph and rich_paragraph select and copy without a flag (selectable = false for a control's part, as a list row's lit name), a diff's lines always (View_Options.selectable is gone), the file browser's preview, an empty state's title, Markdown without its list markers. A control's label stays unselectable. Selectable text inside a clickable box keeps the box's click: a press that moves more than 4 px first selects, and the box gets no click. Ctrl+C and Ctrl+Insert are the selection's while the last press made it (selection_takes_copy): a program's command on the chord waits until a press elsewhere. A copy across Markdown's blocks has a blank line between them, as the source (.Selection_Block).
  • Escape on several selected rows keeps the cursor's row: in a list with multi, Escape takes several rows back to the cursor's row alone; on one row or none it is the program's Escape (cancelled: clear its filter, hide, close), where it first cleared the selection. A list never shows no row while an act still takes the cursor's. ui.item_selection_escape gives the same rule to a program that reads Escape itself, and ui.item_selection_rekey keeps a row's selection when its identity changes (a row unfolded whose id carries its height).
  • Every scroll bar takes the desktop's form: the bars of views, lists, menus, the palette, text areas and bars with marks have a pale trough, an arrow button at each end and a thumb with a gradient across it and a grip, as ShojiWM draws them. The pointer over a bar lights its buttons and gives its thumb the theme's accent; the part under the pointer and the part held go a step deeper. The colours come from the theme: a dark theme gives the desktop's dark bar, a light one its light bar. By default a bar always shows while its content overflows. "Hide the scroll bars" stays an option, off by default, and is now scrolling.scrollbar_autohide (it was scrolling.autohide_scrollbars): on, a bar shows only while its view moves, while the pointer is over the view or while it is held, and fades otherwise. ui.set_scrollbar_arrows and "Scroll bar arrows" are removed: the arrows are always there. An arrow moves the view a line, and repeats after 400 ms then every 60 ms while held; a press on the track moves it a page instead of jumping there. The new setting "Scroll bar width" (scrolling.scrollbar_size, ui.set_scrollbar_size) is Thin, 9 px and the default, or Wide, 17 px. ui.scrollbar_paint takes the bar's parts and its state (ui.Scrollbar_Parts, ui.Scrollbar_Look); Text_Edit_Draw.bar_hot and bar_held are bar_looks.
  • A floating window opens in the middle of the content: a view that opens as a floating window with no remembered place is centred, across and down, over the program's content (beside the docked panels), instead of near the top of the window, where it covered the page's heading. One detached from a dialog still opens where the dialog was.
  • A view's window follows the program's title bar setting: with the program's own decorations (window.system_title off), a view in a window of its own has no system decoration; its header is the window's title bar (dragged, maximised by a double click) with the window's minimise, maximise and close at its right end, the same as the main window's; that close puts the view back where it belongs. With the system's title bar, the header sits under it as before. A change of the setting applies to the open view windows at once.
  • setup's backdrop knows where the dialog is: Setup_Options.backdrop is now proc(v: ^ui.View, user: rawptr), so a program paints its scrim only when v.presentation == .Dialog (floating, docked or in a window of its own, the setup has none).
  • A view's window looks and behaves like the program's window: from its opening and at every change, it takes its owner's font, size, row height, paddings, radius, zoom, theme, fonts and bold/italic families (shared, never copied: ui.state_families(s) reads them); its title bar is dark or light as its owner's (platform.is_dark_title), and with host.view_windows its ground, its frames after input, partial redraw and the program's input hook are its owner's (the hook's h.owner says it is a view's window). Ctrl+=, Ctrl+-, Ctrl+0 and Ctrl+wheel in it zoom the whole program. A move of the pointer over the main window no longer rebuilds the views' windows (ui.pointer_only_build, ui.view_window_due).
  • The file browser is a view: the toolkit's file dialog (ui.file_dialog) is now the view "file_dialog", one per window, as every other dialog: its header is the views' (its title and its icon), its size is remembered, and the person can float it, dock it or open it in a window of its own from its header's menu. Its question before saving over a file is a confirmation over it. What it does is unchanged: its sources, its path bar, its keyboard, done called once (the close cross and a press outside are Cancel).
  • Views across several windows, an icon per opening, the next field focused: host.view_windows(&app.shared) is now one backend for every window of a program, set once (it took one owner window: a program of several windows set it again in each window's build); each view's window is made after the frames of the window that owns the view. ui.views_commands(vs, allocator, owner) and ui.views_commands_update(vc, vs, owner) list only the moves of the views a window owns, for that window's palette. ui.view_icon(v, icon, icon_font) gives a view an icon per opening, as view_title gives a title. ui.focus_next_field() gives the keyboard to the next field built (a number's value field included), so a view focuses its field on its first build without knowing a widget's inner keys. Fixed: a zone's tab that is not shown was built a second time, over its zone, which kept two panels shown and took the presses on the tabs.
  • A tool bar wraps or folds, and its "…" dropdown is a menu: ui.toolbar(id, {overflow = .Wrap}) takes more lines when the window is too narrow, each group moving to the next line whole, the pinned groups (Cancel, Done) at the end of the last line. .Fold keeps one line and folds what does not fit into the "…" button's dropdown, which is now an ordinary menu: one section per folded group under its title, separators between sections, each tool a row with its icon, label and shortcut, each control a row with its label at the left and its widget at the right. The arrows, Enter and Escape work in it as in every menu. A program declares each item once, in either mode:
    • ui.toolbar_tool(id, {label, icon, shortcut, command, on, words, intent, ...}) is an act: a button in the bar, a row in the menu; it returns true when clicked in either.
    • if ui.toolbar_control(id, {label}) { ... } is a property whose widget the block builds, in the bar or in a menu row (ui.toolbar_in_menu() says which).
    • ui.toolbar_item is gone; ui.toolbar_group takes a title; the bar puts its pinned groups at its end itself (no spacer); ui.toolbar_separator() draws a bar's separator; ui.menu_control(label) makes a row with a widget in any menu.
  • The confirmation, the prompt, the palette, the sheet of the keys and the setup are views: they open once, answer once, and need nothing set up: each is a view of the window being built (ui.views()). Migration: ui.confirm(id, &open, o) each frame becomes ui.confirm_open(id, o) once (its options are cloned) and ui.confirm_answer(id); ui.prompt(id, &open, &field, o) becomes ui.prompt_open(id, &field, o) and ui.prompt_answer(id); ui.palette_open(&p) and ui.palette(&p, commands, disabled, o) become ui.palette_set(&p, commands, disabled, o) when they change, ui.palette_open(&p) and ui.palette_chosen(&p) -> (index, mods, ok) (Command_Palette.open and .size go: ui.palette_is_open(&p), the views keep the size); sheet.open = true and ui.shortcuts_sheet(&sheet, id, commands) become ui.shortcuts_sheet_open(&sheet, commands); setup.dialog(&d, cfg, em, logo) becomes setup.open(&d, cfg, logo) in a build and setup.update(&d, cfg) each frame (Setup_Options.close and Dialog.size go; a screen of the program's own calls setup.start); prefs_page.install_frame(&in) loses its em. Each answer comes one build later than the old return value.
  • Views replace modal dialogs: a dialog is now a view, a build procedure and its data declared once by an id (ui.view_register, ui.view_open, ui.view_close, ui.view_ended, ui.view_end). Every window's ui.State has its views, with nothing to set up (ui.state_views(&state), or ui.views() for the window being built); a program that keeps the user's choices in a file, or whose windows share their views, owns one ui.Views, reads its file with ui.views_init(&vs, {path = ...}), gives it to each window with ui.set_views(&state, &vs) and ends it with ui.views_destroy. The program opens a view and reads its answer in a later build; the toolkit builds it at the end of the window's build, draws its header (icon, title, a small Detach icon, the close cross) and remembers per id the dialog's size, its presentation and whether it was open at the last quit (view_was_open). Escape, Ctrl+W, the close cross and a press outside end it with VIEW_CANCELLED. A dialog still shows only once its layout has settled, and fades in. Migration: if ui.modal(id, &open, {width_em, size = &size}) { body } becomes ui.view_register(ui.views(), id, build, {title, width_em, resizable = true}) and ui.view_open(ui.views(), id, &data), the body in build :: proc(v: ^ui.View, data: ^T); ui.dialog_header goes (View_Options.title, icon, ui.view_title, ui.view_header_tools); open = false in the body is ui.view_end(v, code); ui.modal, Modal_Options, ui.dialog_header, Dialog_Header_Options and ui.modal_corner are no longer public.
  • The family settings apply live, in every program: prefs_page.standard_watch now applies appearance.text.ui_font, mono_font and prose_font itself, with no restart. The family's face is loaded on a chore (with its bold and italic) and swapped in when it comes, in every window, views' windows included; Default puts the program's own face back at once.
    • ui.Text_Face, ui.set_text_faces, ui.use_text_family, ui.state_text_face, ui.text_face, ui.program_text_face, ui.text_family, ui.text_faces_serial, ui.text_font_source, ui.prose_font, and ui.Family_Face with family_face_set and family_face_destroy for a face of a program's own.
    • Standard_Targets.faces gives the program's own faces, Standard_Targets.font_source the families' source; Page_Options.default_fonts, Default_Fonts and Page_Options.font_source are removed.
    • ui.mono_font(), rich text, text edits and markdown tables read the chosen monospace face; a markdown view's text is in the reading face when View_Options.prose is 0.

Fixed

  • On Windows, the paths of the log and of a crash report have backslashes only: log.path and crash.last_report gave C:\Users\you\AppData\…/program.log, with both separators, to the program that shows, opens or copies them. They now have the system's separator only.
  • Wayland: a window knows it is in front without a keyboard. Window.active and focused also follow the compositor's activated state of the toplevel, not only the keyboard's enter and leave. On a seat with no keyboard (a headless session, a touch screen) a window in front was never active, and a program that hides its window only when it is in front kept bringing it forward instead.
  • No holes where the window showed what is behind it: a translucent window that blends in linear light (every window on Windows with DirectComposition, and a Linux window composited with its alpha) no longer shows the desktop or another window through a few pixels: around inline code in a table, along the fading edges of a list, under the text. What is drawn is now kept within its normal range in every frame format, so these windows show exactly what an opaque window shows. render.init_offscreen takes half_float to draw a frame in that format, render.read_pixels_float reads its values as they are stored, render.frame_is_half says which format a frame is in, and the test sessions take half_float with session.capture_float and session.out_of_range. The partial redraw check (render.damage.verify) now also compares frames stored in half floats.
  • Nothing is drawn under a scroll bar any more: a view that scrolls lays its content out beside its bar while the bar shows, so the words and buttons at the right end of a row ("Esc close", "Open", a time) stay left of it, in every list, table, menu, the palette, markdown views, the settings page and text areas. When the content fits again the room comes back, and a content that only overflows beside the bar does not take it: the room never flickers. With "Hide the scroll bars" the room stays and the bar fades in it. The new setting "Scroll bars over the content" (scrolling.scrollbar_overlay, ui.set_scrollbar_overlay, off by default) draws the bars over the content's edge instead. ui.scrollbar_room says the room a scroll box keeps; programs no longer leave room for a bar themselves (ui.scrollbar_gutter() is now only a bar's thickness).
  • No second line under a frame's top edge: in the machined, edged, gradient and glass finishes, a header, a row or a stripe inside a frame, a card or a well no longer gets the lit rim of a raised face. Such a box is part of the face it sits in where it meets that face's top edge or runs across its whole width, so the face's own edge is the only line there. A table's header no longer shows a second line just under its frame's border. Buttons, cards, chips and dialogs that stand on their own keep their rim.
  • The settings open fresh after a jump to one setting. When the palette opened the settings on one setting, closing them and opening them again showed that setting's search still. Now the next opening shows the page you had, with an empty search. A search you typed yourself stays, as the last page does.
  • A tool bar's separator never starts a line: in a wrapping bar, a group that goes to the next line no longer starts it with a separator and its room. A group's separator shows only between two groups on one line, in both modes. Two groups on one line stand a separator's room apart, with its line or without one.
  • A slider in a tool bar keeps its track, and a one-item section no longer repeats its name: a slider is never narrower than its track and its value (about 10 em); with no width given, in a tool bar's control or a menu's control row, it is 12 em. Before, it showed its knob alone, its value far from it. In a tool bar's "…" menu, a group of one item shows its row without the group's title, so "Colours" no longer stands over "Colour".
  • A bar no longer gets a frame from the finish: in the machined, edged, gradient and glass finishes, a box that declares its sides (a sidebar with its right line, a top bar with its bottom line) shows those lines alone, and a bar against the window's edge shows no frame. Before, the finish drew a lit line one pixel inside its top, left and right, so a sidebar under a top bar showed a double line. New ui.box_rimmed says whether a box gets that line; ui.paint_rect_corners takes rim = false to paint a face without it.
  • A panel of a hidden section waits there instead of floating over the page: a view docked in a dock space of the program's (views_dock) that is not shown (another section is) stays open but hidden, and shows in its place when its section shows again. It no longer appears as a big floating window over the section shown (inspecteur's service details over Mission Control at start). Only a panel of the window's frame, in a window with no frame, still floats.
  • The toolkit's name stays as it is in Diagnostics. The line that says which version of the toolkit a program uses reads "gui_toolkit" in every language; French no longer shows it as "Boîte à outils".
  • A floating window no longer cuts its labels: a view that opens as a floating window with no remembered size is as wide as what is in it asks (its width_em at least), centred, and no rect, remembered or resized by the user, makes it narrower than what is in it on one line. A form_row's label is now at least its words on one line, the control beside it giving way ("Saturation" was cut to "Sa…").
  • A "+" whose tab comes later still fills its stack, and the views' words follow the language: a stack's "+" now waits for the instance its new_tab asked for: the next one of that kind that opens within ui.NEW_TAB_WAIT_MS (10 s), even frames later (a shell a server makes), joins that stack as its last tab. View_Options.new_tab_label and the words a program gives Views_Options.labels are translated when shown, so a change of language during the session shows at once, as the titles already did.
  • A panel's menu no longer replaces its body's own: a right click in the top band of a docked view opens the view's menu only when nothing of the body takes it (a tab there with its own menu keeps it). New ui.hit_box_at(p) and ui.pointer_on_at(box, p) say what a press at a given point would act on and what is in front there, by the last layout, so a program can decide per event of a batch, not only at the pointer's last position.
  • Letters typed right after a view opens are no longer lost, and nothing waits: a view that opened as a floating window or as a panel lost the letters typed in its first frames (only a dialog kept them). Every view is now built in the frame it opens, so the field it focuses has the very next keys; a view opening in a window of its own gets what was typed before its window showed. A panel whose dock space is not shown now appears at once as a floating window, and goes to its space when the space shows.
  • A font setting at its default names the font in use: the interface, monospace and reading font settings showed an empty field when they were at their default. They now show the family the program draws in, marked as the default ("Roboto (default)"). The program's own font is named, whatever family was chosen before (Standard_Targets.faces).
  • A view's window hides with its main window: a program that hides its main window (host.host_hide) left the windows of its views on the screen, frozen. They now hide with it and come back with it (host.host_show), where they were; a window that was about to show waits for the main one. ui.views_windows_follow(state, shown) does it for a backend of the program's own; session.hide and session.show in tests.
  • Windows open again after the Wayland compositor ended the connection: once the compositor ended a program's connection (a protocol error, the compositor restarted) and no window of it was left, every new window was refused ("no window: libwayland-client"). The next window now starts a new connection. While a window of the old connection lives, nothing of it is taken down.
  • A test session's failed action says why at once: on Linux and macOS, an action of testkit/session that fails (a box not found, a wait past its bound) now fails the test with its message and goes on with the next test, instead of a "Test timed out" with no message. Windows keeps the time limit of 0, after the message, because of how its test runner handles signals.
  • The Rendering page shows its settings: it showed only a folded "Advanced" part and was empty otherwise. A page whose settings are all advanced now shows them, under a sentence that says they are technical and that their defaults are right for most people; the "Advanced" fold stays on the pages that have ordinary settings too. The Input, Delays and menus and Rendering pages also say in one sentence what they are for.
  • The Updates page's Check now keeps its words on one line: its button was squeezed to its longest word and wrapped onto two lines ("Vérifier / maintenant") although the line had room. The buttons under the update preference now take the width of their words, and wrap only when the page is too narrow for them.
0.259.02026-11-14 11:25 UTCrelease

Added

  • update.notice: what a program says once of a change of its Updater, beside the badge that shows the phase: a failed install (asked or not) and the answer to check_now, never a version on offer, its download or a version in place. Status.install says that a result is an install's; a failed install's result is its reason alone, and status_words says it on the Updates page ("Version 0.16.0 is available. The update failed: …").

Changed

  • prefs_page.update_badge returns its box: nil when it builds nothing, else its box, whose rect is the room it takes, so a bar can fit its other parts beside it and its words are never cut. The badge is the one place of a window that shows the update's phase.

Fixed

  • An empty fill() spacer no longer takes a label's room: in a row that is too narrow, an empty spacer (no children, no text, nothing drawn) now gives all its width before a label is cut. A row of a name and a spacer(fill()) that asks for the whole row keeps the name whole while the row holds it. With room, label … spacer(fill()) … buttons lays out as before.
  • The theme cards of a last row that is not full keep their width: in the settings page, the cards after the last full row were crushed to thin bars with their colour dots piled under them. Every card now has the column's width, at its column. theme_cards takes the number of columns (columns, 3 by default), and a card too narrow for all its dots shows fewer.
0.258.12026-11-14 11:04 UTCrelease

Fixed

  • host: a second window's resize step is drawn at once on Wayland: the paced window's frame draws the resize steps of the other windows first (host_steps, the host_paint path), and platform.wait_slot ends when such a step waits. Before, a window that is not paced waited for the paced window's slot and its work, and the compositor showed its last picture stretched to the new size.
0.258.02026-11-14 10:18 UTCrelease

Added

  • ui.path_bar: a folder's path as a breadcrumb whose parts a click walks (a faint "/" between them, the leading ones in a "…" menu when they do not fit), turned by a click on its empty part (or path_bar_edit) into an address field with a dropdown: the children of the folder typed, by fuzzy matching, then the program's suggestions under their titles; ↓ ↑, Tab, Enter and Escape move, complete, go and come back. It reads nothing itself: it says which folder it wants, and the program answers with path_bar_children or path_bar_failed. ui.choice_row lights a search's letters (ranges) and puts its detail on the title's line (beside).

Changed

  • The file browser's path bar: its breadcrumb is tighter, a "/" between its parts, every part a click away; Ctrl+L or a click on its empty end gives the path as a field with a dropdown of the folder's folders (and files in Open and Save), found by fuzzy matching, then the places and the recent folders. Tab takes the row highlighted; Enter or a click goes there.
0.257.02026-11-14 09:41 UTCrelease

Added

  • A project's roadmap is checked with its changelog: changelog.check reads ROADMAP.md beside CHANGELOG.md (# Roadmap, then ## Now, ## Next and ## Later, each a list of entries that start with a bold summary, no dates) and names each line that is wrong; a project without one does not pass. Every program's changelog check and the toolkit's release run it.
  • Search in subfolders in the file browser: an "In subfolders" toggle beside the filter finds files and folders at any depth under the folder shown, best matches first, their path shown with the matched letters lit; a folder found is entered, a file found is chosen or previewed as any other. A program's source offers it with File_Source.find (ui.file_reply_found); File_Dialog.find_deep turns it on at first, and File_Dialog.act gives the act button the program's own word.

Changed

  • One local time for every program (timefmt.local_offset_minutes): the toolkit reads the machine's time zone offset on a thread of its own, again every minute, so dates follow a change of zone or of daylight saving time during a run. Scroll_Marks_Options.offset_minutes is gone: the scroll marks and the file browser read the toolkit's.

Fixed

  • The file browser keeps the keyboard: while it is open, the program behind it no longer sees a key first (Escape closed the picker and also did what the program does with Escape). ui.file_dialog_shown says whether it is open.
0.256.02026-11-14 08:58 UTCrelease

Added

  • ui.Table: groups and a fuzzy filter: table_data_row's group keeps the rows of a lower group first in every sort (a file manager's folders), and Table_Layout.fuzzy filters by the query's letters in order, the cells lighting the letters matched. ui.code_runs_of colours a text with spans kept from an earlier syntax.spans; platform.file_roots lists the drives on Windows, / elsewhere.
  • A file browser of the toolkit's own (ui.file_dialog): opening, saving and choosing a folder look and work the same in every program and every theme: places (the system's, the program's, the recent folders), a breadcrumb that becomes a path field (Ctrl+L, Tab completes), a sortable list with folders first that filters as you type, a preview of texts and pictures, New folder, Hidden files, and a question before Save replaces a file. It reads the computer's files, or a program's own (ui.File_Source: a server's files), without ever freezing the window. Each dialog remembers its folder, size, sort and recent folders (ui.file_dialog_memory keeps them between runs). The system's dialog stays one setting away: General › File dialogs.
0.255.22026-11-14 07:47 UTCrelease

Fixed

  • A Markdown table's stripes are square and meet the frame's rim, in every theme: a striped row left without a radius took the style's, rounded in a theme that rounds its boxes; it says radius 0. ui.clip_inside_push keeps a frame's border out of its clip only when the frame draws one inside its rect (.Draw_Border): a frame whose rim is drawn outside its rect, as a machined well's, has what it holds up to its rim, with no line of the well between.
0.255.12026-11-14 07:29 UTCrelease

Fixed

  • A Markdown table's stripes run from side to side, square: a striped row stood off the frame's sides with its own rounded corners, a curve inside the frame's curve. Its rows are square and clipped to the frame's inside, where a row that reaches a corner takes the frame's curve: only the frame is rounded. ui.clip_inside_open and clip_inside_close clip what a rounded frame holds to its inside (clip_inside_push from a custom draw, as a floating dock panel does); a table's or a code block's frame has its radius even when the program draws it.
0.255.02026-11-14 06:52 UTCrelease

Changed

  • gt:host's package is tk_host: as the toolkit's other packages with a common name, so that a program with its own host package (Wren's loop and tasks) can use prefs_page, which imports it; Odin wants one name per package in a program. A program imports it as import host "gt:host" (was import "gt:host"); nothing else changes.
0.254.02026-11-14 03:46 UTCrelease

Added

  • File descriptors over D-Bus (gt:dbus): dbus.call_with_fds passes file descriptors with a call. The connection must ask for them: connect_bus(bus, unix_fds = true); conn_unix_fds says whether the bus accepted.
  • Print a picture (platform.print_image): the system's print dialog, then the picture on one page, at its natural size, smaller to fit, centred. On Linux it goes through the XDG print portal; on Windows, through the Print dialog and GDI; elsewhere it is Unsupported. The call blocks: run it on a worker. print_fit lays the picture out and print_pdf makes the page. docs/printing.md.
  • Dashed and dotted paths (draw.path_dash): the dashes of a path, as a new path to stroke. The pattern gives the lengths drawn and skipped in turn, as SVG's stroke-dasharray, with an offset. A length drawn of 0 is a round dot.
  • Pictures read from files, combined, cut and trimmed (gt:image):
    • image.decode gives the RGBA8 picture of a PNG, JPEG (baseline or progressive), WebP or BMP file. image.file_format reads the format from the file's first bytes, not from its name.
    • image.combine puts several pictures in one, side by side or stacked, with a gap and a background; each is centred across.
    • image.cut_out removes a band of columns or rows and joins the two sides.
    • image.trim_bounds gives the part of a picture left once its edges of one colour are trimmed (with a tolerance).
    • image.edge_mean gives the mean colour on the edge of a rectangle: what is around it, to fill it with.
  • A tool bar folds item by item (ui.toolbar_item): in a ui.toolbar_group's block, if ui.toolbar_item(id) { ... } makes a part of the group that folds into the "…" panel on its own, the group's last item first. The rest of the group stays in the bar, and no empty room is left. The group folds whole only once all its items are folded and it still does not fit. An item can take its own priority (else its group's): the bar sorts the items of every group together and folds the lowest priority first, so a rare tool of a group kept long folds before the items of a group that folds early. A group without items folds whole, as before.
  • Enter commits a multi-line field, and its whole text can be selected: with Text_Edit_Options.enter_commits, Enter (and Ctrl+Enter) gives committed and Shift+Enter breaks the line: for a caption or a message typed in place. Without it, Enter still breaks the line and Ctrl+Enter commits. ui.text_edit_select_all selects a Text_Edit's whole text, as line_edit_select_all does a Line_Edit's: for a text put in a field to be typed over.
  • Keys as a node's parameter (gt:flowgraph): flowgraph.Param_Type.Hotkey holds keys as platform.hotkey_text writes them ("Ctrl+Alt+E"), kept in the file as a text; "" is none. ui.node_inspector records them with a ui.hotkey_field and a button that clears them. Use it for a shortcut of a workflow's own.
  • The pointer in still pictures (gt:capture): capture.set_cursor asks for the pointer in a picture of an output, a window or the desktop; capture.cursor_support says whether the backend can draw it. On Wayland, the compositor draws it (ext_image_copy_capture_v1, zwlr_screencopy_v1). On Windows, the toolkit draws it over an output's picture (GetCursorInfo, DrawIconEx), and Windows.Graphics.Capture draws it in a window's picture. The screenshot portal and X11 cannot: cursor_support is false there. capture.patch_clip is the pure clip that the drawing uses. docs/capture.md, "The pointer in a picture".
0.253.22026-11-14 01:42 UTCrelease

Fixed

  • A program built by the toolkit starts on Windows: the real cause: the builder made the application manifest with fmt.aprintf, which read the braces of the Windows 10 compatibility GUID ({8e0f7a12-…}) as an argument index and wrote "%!(BAD ARGUMENT NUMBER)" into the manifest; Windows refused it (error 14001). The program's name is now put in by a plain replace, and a test checks the GUID comes out whole. 0.252.1 and 0.253.1 changed the manifest's content and did not fix it.
0.253.12026-11-14 01:24 UTCrelease

Fixed

  • A program built by the toolkit starts on Windows again, for real this time: 0.252.1 changed only the manifest's identity, and Windows still refused to start the programs (error 14001). The manifest the builder writes is now, word for word, the one papier and Wren started with: version 1.0.0.0 on amd64, run as the user, Windows 10 and 11, per-monitor DPI. The dependency on Common Controls 6, longPathAware and the UTF-8 code page are gone: nothing in the toolkit needs them.
0.253.02026-11-14 00:58 UTCrelease

Added

  • ui.card_stack: a queue gone through one card at a time: the card the program builds has the room and scrolls; a foot under it holds Previous, where the card is ("3 / 14"), an act in the middle (Acknowledge by default) and Next; the Left and Right arrows and A do the same. Card_Stack.act says what was asked. docs/data-views.md, "A stack of cards".
0.252.12026-11-14 00:22 UTCrelease

Fixed

  • A program built by the toolkit starts on Windows again: the application manifest the builder writes gave the program's own version (0.21.0.0) and the architecture "*" as its assembly's identity, and Windows refused to start it (error 14001). The identity is now version 1.0.0.0 on amd64, as Wren's; the program's version stays in its VERSIONINFO.
  • A dialog no longer jumps as it opens: the first frame that shows it has it at its final size and place, with its title, its buttons and its content where they stay, even when what is in it measures itself one frame late. Its scrim and its panel fade in as one, from the same frame.
0.252.02026-11-13 23:45 UTCrelease

Added

  • Update channels in the Updater and the standard Updates page (docs/update.md, "Channels"). A program whose releases come on channels (stable, beta) gives each channel's folder to update.updater_start (Updater_Options.channels, channel), and update.set_channel follows another one at once: what the old channel offered is dropped, and a check under way is made again. The Updates page shows the Channel setting as a choice of the program's channels (Standard_Defaults.update_channels, update_channel_labels, update_channel); a program without channels has no Channel setting, where it had a free text field. prefs_page.update_source reads the address and the channel for the Updater.
  • A Licence page in the settings, the same in every program: prefs_page.Licence (Page_Options.licence) says whether the program is registered and what a licence is for. It offers Buy a licence, a field to paste a key, Choose a licence file… and Remove the licence (the first click asks, the second removes). Its reads and writes are tasks.
  • A Diagnostics page in the settings, with a Copy button (docs/prefs_page.md, docs/rendering.md). It says the program's and the toolkit's versions, the system, the graphics adapter and API (with a warning when a software rasterizer draws), the window's size and scale, the last frames' build and draw times (median and 95th percentile) and the share of pixels that partial redraw drew: what a person on a slow machine sends. Every host keeps its last frames' times in every build (host.Frame_Ring, host.frame_stats); render.adapter_info names the adapter.
  • crash_bar: the last run's crash, said the same way in every program (docs/crash_bar.md). At the next start, a bar across the window says what happened (a crash and its reason, a session ended by the system, an exit) in a sentence that wraps, with Open the report, Copy, Report on GitHub (a new issue of the program's repository with the report in it) and a cross that dismisses it.
  • An Installation page in every program's settings (docs/prefs_page.md, docs/setup.md). prefs_page.Install holds the install: the offer at a start (the setup's dialog), the user's answer (the hidden setting install.choice) and the Installation page at the end of the settings' sidebar. The page says where the installed copy is, its version, whether this copy is the installed one, and each piece on the desktop: the menu's entry, Settings > Apps, the start with the session, the PATH and its console launcher. It offers Install, Repair, Upgrade and Uninstall; the palette finds it ("install", "uninstall", "path"). setup.page draws it; setup.Facts has autostart and on_path; a Page_Info has user and tags.
    • An uninstall from the page answers "standalone": the next start offers no install. The offer obeys install.choice's value for the run (the command line's over the user's file), as prefs_page.install_choice gives it; prefs_page.choice_after says what each event leaves.
    • setup.open_installed no longer starts the installed copy: it says Launched, and the copy starts at the end (prefs_page.install_launch), once the program's single instance is released. Started at once, it found the old copy still running and handed itself over to it.
  • ui.toolbar and ui.toolbar_group: a tool bar whose groups fold into a "…" panel when the window is too narrow for them, the lowest priority first; a pinned group (Cancel, Done) never folds. The same code builds the folded groups in the panel, and they work there. ui.toolbar_menu_open(id) says whether its panel is open.
  • Numbers as the language writes them: i18n.decimal, i18n.percent, i18n.decimal_marks and i18n.parse_decimal write and read a number with the language's decimal mark and percent ("7,8 Go", "34 %" in French). The toolkit's numbers use them: number fields and sliders (a number typed with either mark is read), sizes, the settings' fields, the Diagnostics page, the preview's zoom.

Changed

  • tk_site: the shop's pages say what Wren's say: with Meta.shop, build_changelog writes them, with their canonical address, titles such as "Pricing · name" and the site's footer (Pricing, Privacy, Terms, Refunds, Imprint, the source, the licence). The imprint names the publisher (a trade name and who trades under it), the address, the contact, the web, the SIREN, SIRET and APE code, the register and its date, the VAT, who answers for the content, the hosting, the payments, the code's licence and the consumer disputes. The license terms, the refunds (handled by Paddle, the statutory withdrawal) and the privacy policy take Wren's sections, with a "Legal" label and "Last updated". The pricing page adds the platform, the withdrawal, the checkout and Wren's questions, and its offer lists three lines, each linked to its question; the thank-you page ends with Wren's help block. Every word a reader sees writes "license"; the button says "Buy license".
    • Shop.seller is a Seller (name, owner, status, address, email, url, siren, siret, ape, registry, registered, vat): seller = "X", seller_url = u, seller_address = a, seller_email = e, seller_vat = v → seller = {name = "X", url = u, address = a, email = e, vat = v, ...}.
    • New Shop.platform and Shop.network (HTML): the systems the program runs on and what it connects to, for the privacy policy. New Shop.repository: the source, in the footer and the imprint.
    • Shop.refund_days is removed: Paddle handles refunds under its policy.
    • Shop.code_licence is the licence's whole name ("MIT" → "MIT License"); Meta.licence reads "MIT License" in the footer.
  • tk_site: every page a folder, one nav and one footer for every site: the changelog is changelog/, the classic pages classic/features/, classic/screenshots/ and classic/changelog/, and every link names the folder by the shortest way (relative_links), never index.html; the feed, sitemap.xml and llms.txt do the same. A home page's <!-- site-nav --> and <!-- site-footer --> become the same nav (Features, Download, Changelog, Pricing, GitHub, Buy license) and footer from its Meta (with_frame; new Meta.publisher_logo, licence, footer_note, shop; Changelog_Options.meta). og:image:width and height are the card's own; a download for one system offers no "Also for".
  • Every program gets the same Windows basics from its Project, with no code of its own: gt:toolbox's build_native (through the new build_windows) writes the program's resource from the Project, and odin_command links it. The resource has the icon (icon, by default assets/<name>.ico), the version and names (title, description, publisher, copyright: what Properties and Task Manager show) and a manifest (per-monitor DPI v2, UTF-8 code page, long paths, common controls 6). The same build makes the console launcher <name>.com: the program embeds it, desktop.install writes it with the PATH entry, and the Windows release archive has it beside the .exe. Every window gets the program's icon at the large and small sizes.
    • The AppUserModelID is derived, never written: platform.app_user_model_id(publisher, name) joins PascalCase words by a dot ("Froment Software" and "opencode native" give FromentSoftware.OpencodeNative). The build gets GT_AUMID from the Project's publisher and title (project_aumid; none without a publisher), and gt:desktop's Identity.aumid is derived from its vendor and name when empty (identity_aumid), so the windows and the shortcuts group in the taskbar.
    • A program deletes its res/*.rc, its manifest, its #load of the launcher and its launcher mark. Launcher.out → launcher_path(p), Launcher.mark → launcher_mark(p); version_header and write_version_header are removed.
  • --install, --uninstall, --setup and --status are the same in every program (docs/setup.md). setup.command_of takes them out of the arguments and setup.command_run runs them without a window; setup.command_alone says which ones run without a window; setup.COMMAND_OPTIONS lists them in a program's help. --status says what is installed (where, its version, the menu entry, the start with the session, the PATH) and whether the program runs (running: true, from Setup_Options.running), with the exit code 0 installed, 2 to repair, 1 not installed.
    • desktop.parse_cli no longer takes --install and --uninstall as shorthands of its flag (they installed the integration alone): a program passes its arguments to setup.command_of first.
  • ui.mark_rail is ui.scroll_marks: marks on the view's own scroll bar (docs/scroll-marks.md). The marks are thin, muted ticks across the track of the vertical bar, as an editor's overview ruler, instead of dots on a column beside it; those within the thumb's span are drawn over it, a little brighter. Marks closer than 6 px are drawn as one. The mark under the pointer grows, in the full accent, and shows its card: its name (Scroll_Mark.label, "#12"), when its item was made (Scroll_Mark.time_ms, said with Scroll_Marks_Options.now_ms, offset_minutes and hours12) and the first three lines of its text; a merged mark's card has a line per item with its time. The bar is wider when it carries marks and widens more under the pointer; a press on the thumb over a mark drags the thumb. The filter is a magnifier button above the bar. timefmt.moment says when something was: "today 14:32", "yesterday 09:10", "Nov 10, 14:32".
    • Mark_Rail → Scroll_Marks, Rail_Mark → Scroll_Mark, Mark_Rail_Options → Scroll_Marks_Options (without no_filter and filter_w), mark_rail_* → scroll_marks_*, mark_rail_dot → scroll_marks_at.
    • scroll_marks takes no box of its own size: it draws on the view's bar.
  • A segmented control is as wide as its labels: with no width given, ui.segmented makes every segment as wide as its widest label with its padding, so no label is cut in any language; a width given is kept. ui.segmented_width(labels) gives that width to a layout that places the control before it is built; the settings' choices use it. A segment under the pointer, pressed or focused shows a soft fill with the place and the rounded corners of the key, inside the track (it was a box as tall as the track with corners of its own).
  • A dialog grows to its title and its buttons: a dialog that is not resizable is as wide as its title and its row of buttons on one line need, width_em at least, DIALOG_MAX_WIDTH_EM (46) and the window at most. Past that, its title wraps (no "…") and its buttons go onto more lines, at its right end. ui.confirm and ui.prompt are built of dialog_body and dialog_buttons.
    • dialog_buttons is a wrapping row with its own gap: a program removes the spacers it put between buttons.
    • ui.flow takes an align for its lines.
  • Widgets never cut their words: a button given less room than its words (a narrow row, a column, a dialog) wraps them onto more lines between words and grows taller, its padding kept; a word wider than the room makes the button wider. The layout does this for any row, column or flow still too narrow once what may shrink did.
    • A width or a height in pixels given to a button is a least: it grows to its words on one line. ui.button_width(text, glyph) is a button's width on one line; ui.natural_width(box) the width a box asks for before the layout.
    • Button_Options.wrap is removed: every button wraps.
    • A popover's width is a least: it grows to what is in it.
    • The settings page's sidebar is as wide as its longest page title in the language in use, up to its most (past it, a title wraps); its handle does not make it narrower. The settings' search shows its placeholder whole.
  • Keys are named in the language in use everywhere: platform.key_text gives the text of a key, a combination or keys written in English ("Ctrl+K, Ctrl+Shift+P", a portal's "CTRL+SHIFT+a") with the words of the language ("Ctrl+Maj+Impr. écran" in French). Menus, tooltips, the sheet of the keys, the palette, the shortcut field and the settings' lines of a global shortcut use it; Print Screen has a name. ui.key_tip(label, chord) gives a tooltip's "Settings (Ctrl+,)" for a control that is no command.
    • ui.key_name(key) is removed → platform.key_text(key).
  • general.language applies at once: prefs_page.language_start watches the setting and puts the new language in use when it changes (each language is loaded once and kept); the settings page no longer says "Takes effect at the next start". i18n.version() moves at each change of language: a program makes again what it made once from translated text when it moves (docs/i18n.md, "Changing the language"). i18n.use of the language already in use changes nothing.
  • Standard settings whose defaults need no override: a program that set them through Standard_Defaults.values or followed the system itself drops that code.
    • appearance.text.subpixel is auto by default: text is smoothed per colour stripe as the system smooths its own (ClearType and its order on Windows, fontconfig on Linux, grey on macOS), read once at the start by prefs_page.standard_register. off, rgb and bgr stay. A program that called font.system_subpixel_text while the setting was at its default drops that call.
    • appearance.text.grid_fit's default is auto ("Auto", "On", "Off"): font.Grid_Fit.Default → font.Grid_Fit.Auto. A settings file that holds default falls back to auto.
    • rendering.partial_redraw is on: each frame redraws only what changed; a frame that cannot (a backdrop, a plane) is drawn whole.
    • scrolling.smooth is on: a notch of the wheel glides even when the system asks for fewer animations. follow stays a choice.

Removed

  • Intent.Cancel and its red cancel_button: a Cancel is a neutral button, in ui.confirm, ui.prompt and the setup dialog too; giving up is never coloured as a danger. Confirm_Options.act_intent gives the act's colour (nil: Danger; with enter_confirms, Success). .Cancel → .Neutral (the default).

Fixed

  • No system read or file write on the interface thread for animations, crashes and updates: the system's animations choice is read once and kept, then set again when the system changes it (WM_SETTINGCHANGE on Windows, GNOME's enable-animations on Linux, its first read on a thread); it was asked at every build, a file read per frame on Linux. crash.end_session writes its files on a thread of its own, and the leftovers of an update are removed off the interface thread.
  • Wayland: a window takes the size the compositor gives it while another window is shown: a program's loop waits for all its windows on one of them, and a new size for another one (a tiling compositor placing a window beside the first, or resizing it later) did not end that wait. The window kept drawing at its old size, cropped by the compositor. That size now ends the wait, and the window is drawn at once at its new size.
  • Windows: a program started again comes back in front with the keyboard: after an update or Restart, setup.launch allows the new process the foreground (AllowSetForegroundWindow), where it opened behind the other windows; a program that started its new copy with os.process_start calls setup.launch. A second start of the program brings the first one's window back on screen and in front, even minimized (platform.raise_window), where it only flashed in the taskbar.
  • A lazy column's view stays still while an item grows: when an item is measured (one that streams in, below the view), the estimated height of the items never built changes, and those above the view no longer move what it shows, not even by a pixel. The column builds the items where the view will be, follows its anchor for any move and keeps its estimate on whole pixels.
  • A program's translations no longer change the toolkit's words, and the French reads right. Each catalogue is a domain: a text of the toolkit's code is looked up in the toolkit's catalogue first, a program's text in the program's, then each in the other. A program that translates "Paste" or "Off" its own way no longer changes the field menu or the toolkit's settings.
    • French typography is set when the language loads: no line starts with ":", ";", "?", "!" or "%".
    • French: "Rechercher" everywhere (the settings' search, "Type to search", the update preference), "Synchronisation verticale" for Vsync, no program name after "de", clearer texts on the Diagnostics and Installation pages.
    • The settings' choices read well in English and French: RGB, BGR, sRGB and GDI in capitals; the filter precision says "16-bit floats" or "8 bits" instead of Half and Unorm8.
    • File types are named in the language in use (shared-mime-info's comments).
0.251.02026-11-13 18:52 UTCrelease

Added

  • image.webp_decode: reads a WebP file (lossy or lossless, alpha kept) into an Image, by the libwebp that webp_encode already loads at run time; ok is false on a system without libwebp or for bytes that are not WebP.

Changed

  • A licence file names its edition only when the product sells several: the first line of the file and the e-mail of the licence Worker read "# papier licence for Name" when the product has one edition (they read "# papier licence (Supporter) for Name"). The edition stays in the signed key, so a product that adds editions later reads it from every licence already sold. The e-mail template has {edition_note} (" (Supporter)" or nothing); {edition_title} is still there.
  • The shop's pages have a design: the pricing page is a hero (the program's icon, a quiet "Licence" label, the program's name as it writes it, one line), one card with the price large and "once, taxes included" beside it, what the licence gives as a list with check marks, one button in the site's accent (a dashed "Coming soon" while the shop is closed, with no second line saying it), the fine print, then "Before you buy" in two columns. The thank-you page has the same hero, a spinner while the licence is made, and a licence card. Every template page has a bar with the program's name and a foot with the shop's pages, and reads well on a 360 px phone. Their style is the new site.LICENCE_CSS, put in each page by {{shop_css}}: it reads the site's own colour variables (--accent, --text, --muted/--weak, --surface/--bg2...), so a program keeps its accent and its light theme and writes no CSS for these pages. A program sells one licence: the pages are made for one price and one button.
    • Shop.prices: []Shop_Price is removed, and Shop_Price with it: set edition, price_id and buy_label on the Shop itself (prices = {{edition = "standard", price_id = "pri_…", label = "Buy the licence"}} → edition = "standard", price_id = "pri_…", buy_label = "Buy the licence"; an empty buy_label says "Buy the licence"). A Shop is now a constant whole: no SHOP_PRICES array and no shop.prices = … before the build.
    • Shop.icon is new: the program's icon from a template page ("../img/logo.png"), shown in the hero and the bar; empty shows none.
    • Shop.price_note is now an extra line under the price (HTML, empty for none): the page says "once, taxes included" itself. price_note = "Once. Taxes included. Patron: 45&nbsp;&euro;." → price_note = "".
    • product_title is no longer the pricing page's heading (the program's name is): it stays what Paddle sells, named by the legal pages.
    • shop_open also needs thanks, as the page's script did.
    • The blocks' markup changed: the buy block is div.shop-offer#buy with one button.shop-buy (data-edition, data-price, data-label) and a hidden #buy-note for errors; the thank-you block is div.shop-thanks#licence-thanks with data-state (waiting, ready, failed) and no edition row. A program that keeps its own pages puts LICENCE_CSS in its stylesheet and class="shop-page" on their body.

Fixed

  • site.Shop.price_note is HTML, as its comment said and as price is: an entity such as 45&nbsp;&euro; now shows as "45 €" on the pricing page instead of its source text.
0.250.02026-11-13 16:55 UTCrelease

Added

  • Previews and diagrams: with Preview_Options.wheel_pans, the wheel moves a preview's content, Shift across, and Ctrl (a touchpad's pinch on Windows) zooms the preview around the pointer, not the interface. mermaid.diagram(..., direction = .Left_Right) lays a flowchart, class, state, ER or requirement diagram out in any of the four directions; with_direction, direction_of and takes_direction work on its text.
  • Markdown tables and fences: syntax.guess takes a text that is a whole Markdown table (a row of cells, the rule under it, rows of as many cells) for Markdown. markdown.Code.fence is a fenced block's number, by which a program finds what it laid out ahead (a diagram).
  • Folders and sizes: platform.user_dir(.Runtime, program) gives the folder of what lasts a session (sockets, pipes): $XDG_RUNTIME_DIR on Linux, %TEMP% on Windows. desktop.xdg_roots is public: the XDG data and configuration folders and the desktop's names, read once. timefmt.size says a size in bytes as file managers do ("7.0 KB", "12 MB").
  • Ready for a macOS port: every package of the toolkit compiles for macOS (Apple silicon). There is no window yet: a program learns at once that it has none.
  • licence worker: the command of a program's tool writes its licence Worker's file from its licence.Product, so the program and its shop agree on what a licence is.
  • Host.close_asked: the program decides what a close of the window does (hide it, ask first). The window stays open, and the program is told once.
  • The settings page takes a program's own pages and defaults. A Page_Info with build is a page with no preference, built by the program (a server's state, a list); heading starts a group of pages in the sidebar. Standard_Defaults.values gives the program's own default for any standard setting (its rounding, its partial redraw). A reset comes back to it, and standard_apply applies it from the start.
  • examples/showcase: a scene per feature. The intents and hues, the numbers and ranges, the command palette, a menu that searches, the dialogs (confirm, prompt), the settings page with every standard setting, a node graph and its inspector, the toasts, every theme and finish. Its data is fixed: a scene is the same picture at each run. --scene=, --theme=, --light, --finish=, --page=, --advanced, --headless and --size= choose what it shows.
  • ui.mark_rail: a rail of marks beside a view. It draws a dot for each item that counts, where the item is in the content, and a band over the part in view. The pointer over a dot shows the item's first line. A press goes there at once, with no glide. The keyboard goes from mark to mark, and a filter keeps the marks that hold what is typed (docs/mark-rail.md).
  • ui.search_band and ui.search_launcher: one look for every search. search_band(id, &field, Search_Band_Options) draws a band from edge to edge in a field's background: a line under it, a magnifier, the field and an optional count. Its top corners are those of the box it begins (a dialog, a menu, a popover); owner_keys gives the field the keys of its owner (a menu). The command palette and a menu that searches use it. search_launcher(id, hint, keys, tip) is a field that opens a search elsewhere (the palette). Line_Edit_Options.placeholder_focused keeps the hint while the field has the keyboard.
  • ui.Choice_Memory: the palette remembers what the user chooses. It keeps a count and a time per choice, halved every 14 days. The palette lists the heaviest choices first while nothing is typed, and raises them while something is. The file is read and written off the interface's thread. ui.choice_note records a choice; ui.choice_bonus gives the same raise to a list ranked with ui.rank.
  • Languages: the toolkit and a program in their user's language. i18n.load and i18n.use read the toolkit's catalogue and the program's; prefs_page.language_start follows the Language setting (System: the system's, read by platform.system_language), now a choice of English and French. config.Def.choice_labels says how each choice of a setting reads ("Français"). The i18n <language> command of a project's tool writes a catalogue from the code's tr calls, and -check says what is not translated. In French, the toolkit's own words are French: the field menu, dialogs and their buttons, the command palette and the key sheet, the dock's and the tables' menus, key names, the settings page and every standard setting, Export and Import, the update and shortcut lines, licence and install messages, the Setup dialog, file dialogs' filters, ages, durations and dates. The texts a program declares with i18n.later (its settings, commands, flowgraph nodes, table columns) and the choices it gives (Page_Options.choices) show in the user's language where the toolkit shows them. The settings search finds a setting by its translated words and by its English.

Changed

  • tk ci checks every tool: each folder of tools/ is checked for this system and, from Linux, for Windows. tools/text_bench compiles again. tools/colrboard, colrcompare, slugsmall and textcompare write their pictures with gt:png and need no STB library. tools/render_probe, resize_probe and shaders are Windows programs.
  • Screenshots and site: tk screenshots draws the showcase's scenes with no window, in the themes and finishes that show them (machined dark and light, edged, glass, gradient), into docs/screenshots/showcase_*.webp and site/img. The site shows them as a carousel: one picture at a time with its title, what it shows and the procedures that make it, linked to their documentation; Previous and Next, the arrow keys, a swipe and thumbnails (a grid without its script). tk site_build publishes the pictures in WebP at their own width and at 360, 720 and 1100 pixels (site.build_images), each <img> with its srcset. It needs cwebp (nix develop, Debian's webp; fetched and pinned on Windows).
  • window.system_title no longer says it takes effect at the next start: programs switch the title bar at once.
  • Test sessions: the deadline parameter of session.wait_idle, wait_until, wait_box, wait_text and wait_gone is bound, and session.DEFAULT_DEADLINE is session.DEFAULT_BOUND. session.find and session.get take within: a box looked for under another one (a settings row whose parts have the names of every other row's). ui.box_text (and session.find_text, devtools) reads a field's hint while it shows.
  • Work pools stop with a bound, and one word per thing: tasks.stop(p, lost, bound) and ui.chores_stop(bound) (2 s by default) no longer keep a closed program alive when a work hangs (a disk asleep, a share that does not answer). How a program moves:
    • tasks.stop(p, drop = f) → tasks.stop(p, lost = f).
    • tasks.ask → tasks.job_ask, tasks.busy → tasks.job_busy, tasks.state → tasks.counts, tasks.State → tasks.Counts.
    • tasks.Options → tasks.Pool_Options, tasks.Add → tasks.Add_Options (its parameter o).
  • gt:signing reads and writes the Ed25519 keys of licences and updates: licence.key_decode, update.public_key_decode and update.seed_decode → signing.key_decode; licence.key_encode and update.seed_encode → signing.key_encode; licence.public_key_of and update.public_key_of → signing.public_key_of.
  • A port of a flow graph is one value, flowgraph.Port_Ref: {node, port, side} with flowgraph.Side (.In, .Out). The node graph widget uses it too. How a program moves:
    • flowgraph.fit_port(g, cat, node, port, output, kind) → fit_port(g, cat, {node, port, side}, kind).
    • node_add_linked(g, cat, kind, pos, node, port, output) → node_add_linked(g, cat, kind, pos, {node, port, side}).
    • ui.Graph_Port_Ref → flowgraph.Port_Ref, in Graph_Port, the events and flow_palette's from.
  • Updates: one mode, one target: what the updater does by itself is an update.Auto_Mode (.Off, .Check, .Install), and a release is checked against an update.Release_Target. How a program moves:
    • update.set_auto(u, true, true) → set_auto(u, .Install); true, false → .Check; false, false → .Off.
    • check_release(p, manifest, signature, platform, channel, current, announced) → check_release(p, manifest, signature, {platform = …, channel = …, current = …, announced = …}).
    • verify(p, manifest, signature, platform, channel) → verify(p, manifest, signature, {platform = …, channel = …}).
    • manifest_of(p, data, version, platform, channel, published) → manifest_of(p, data, {version = …, platform = …, channel = …, published = …}).
  • Preferences read and set by name, exported by one call: config.get_bool, get_int, get_float and get_string (by Ref) are gone; read with bool_of, int_of, float_of and string_of. set_bool, set_int and set_string take the name, and the new set_float sets a Float without formatting it. They return the Set_Error of set_from_string, which stays for text a user typed. config.export(p, format, all) with config.Export_Format (Json, Toml, Ini, Own) replaces the four export_*. How a program moves:
    • config.set_int(&p, config.ref_of(&p, "x"), 3) → config.set_int(&p, "x", 3).
    • config.export_json(p, all) → config.export(p, .Json, all), and the same for Toml, Ini and Own.
    • prefs_page.export_text is gone: call config.export. prefs_page.Export_Format → config.Export_Format.
  • Names: one word per thing across the toolkit. A struct of options is <Stem>_Options and its parameter is o; _destroy frees what a value owns; _make returns a new value, _init makes one in place, _start and _stop are for what owns a thread. Old → new:
    • Option structs: cdp.Options → cdp.Command_Options, changelog.Options → changelog.Project_Options, crash.Options → crash.Install_Options, desktop.Options → desktop.Integration_Options, diff.Options → diff.View_Options, gif.Options → gif.Encoder_Options, h264.Options → h264.Encoder_Options, host.Open → host.Open_Options, instance.Config → instance.Instance_Options, log.Options → log.Install_Options, markdown.Config → markdown.View_Options, ocr.Options → ocr.Recognize_Options, prefs_page.Options → prefs_page.Page_Options, release.Config → release.Release_Options, session.Options → session.Session_Options, setup.Config → setup.Setup_Options, shortcuts.Options → shortcuts.Service_Options, svg.Options → svg.Draw_Options, toolbox.Run → toolbox.Run_Options, ui.Frame_Graph_Opts → ui.Frame_Graph_Options, ui.Line_Graph_Opts → ui.Line_Graph_Options.
    • A call that names the options' parameter (options, opts, cfg, c, how) names it o: h264.open(w, h, fps, options = {...}) → h264.open(w, h, fps, o = {...}).
    • Destroy: flowgraph.graph_free, run_free, set_free, entry_free, node_params_free → graph_destroy, run_destroy, set_destroy, entry_destroy, node_params_destroy; prefs_page.appearance_free → appearance_destroy; capture.frame_free, capture.frame_ring_free → frame_destroy, frame_ring_destroy; wm.windows_free → windows_destroy; platform.notification_free → notification_destroy.
    • Verbs: flowgraph.run_start → flowgraph.run_init; prefs_page.themes_file_make → themes_file_write_template; ui.dialog_top_draw → ui.top_strip_draw (give its box radius = 0: it fills the corners of box_drawn_radii).
    • Order: rich_layout(c, runs, ...) → rich_layout(runs, c, ...); section_header(id, title, note, value, c, inline) → section_header(id, title, c, note, value, inline).
    • State: set_window_button_names(min, max, restore, close) → set_window_button_names(&state, min, max, restore, close); styled_face_of(&state, face, b, i) → styled_face(face, b, i) (outside a build, ui.use(&state) first).
    • Package: gt:base is the package gt_base, so a program with a base package of its own builds; import it as import base "gt:base".
  • announce is the one call that says something: toast, toast_action and toast_titled are gone. announce(&announcer, kind, title, body, action, user, in_window) obeys the person's Messages setting. A failure is always said. A title and a body are a titled toast. A message with an action, or with in_window = true (a hint about the window itself), is a toast of the window whatever the setting. Toasts show at the bottom right by default (window.toast_position): at the top right they covered the toolbar. How a program moves:
    • ui.toast(kind, f, args) → ui.announce(&app.announcer, kind, fmt.tprintf(f, args)).
    • ui.toast_titled(kind, title, body) → ui.announce(&app.announcer, kind, title, body).
    • ui.toast_action(kind, f, user, fmt, args) → ui.announce(&app.announcer, kind, fmt.tprintf(fmt, args), action = f, user = user).
    • prefs_page.messages_mode → prefs_page.announce_mode (the setting is still general.messages).
  • Parameters nobody gave are gone: tabs has no right_clicked and middle_clicked; segmented no separator (the words of .Text are separated by a slash); radio no wrap; tile no clickable; title_strip no closable; history_find_tag no within (HISTORY_TAG_LOOKBACK); history_stats no budget (and History_Stats.over is gone); qr_code no ecc (Medium).
  • Every value widget returns whether its value changed: checkbox, radio, toggle, slider and range_slider return changed: bool in place of a Signal, as number, dropdown, segmented and tabs do. A click on the radio already chosen is no change. A range slider's keys move a thumb as a slider's do. How a program moves:
    • if ui.toggle(id, text, &v).clicked { ... } → if ui.toggle(id, text, &v) { ... }.
    • sig.right_clicked or sig.box.key → ui.signal(ui.prev_box(id)).right_clicked or ui.prev_box(id).key, right after the widget.
    • number(..., track = true) → number(..., slider = true); its format and tip are gone.
    • hue_picker(id, &h) → hue_picker(id, &h, .Y); alpha_picker(..., &a) → alpha_picker(..., &a, .X); horizontal = true → .X.
  • One dialog call, its sizes in ems: modal(id, &open, Modal_Options) replaces modal and modal_sized, with width_em, height_em (0: as tall as what is in it), min_width_em, min_height_em, size (nil: not resizable; else the size the person gave it, in ems) and top (a fraction of the window's height; nil: centered). A confirmation and a prompt are centered now. How a program moves:
    • modal(id, w, &open, y) → modal(id, &open, {width_em = w / em, top = y}).
    • modal_sized(id, preferred, &size, &open, min, top = t) → modal(id, &open, {width_em = preferred.x / em, height_em = preferred.y / em, min_width_em = min.x / em, min_height_em = min.y / em, size = &size, top = t}). A kept size is in ems now, not logical pixels (Command_Palette.size and the Setup dialog's Dialog.size too).
    • CONFIRM_WIDTH_EM → DIALOG_WIDTH_EM, the width of a dialog that gives none.
    • dialog_header_begin(id, title, Dialog_Header) → dialog_header(id, title, Dialog_Header_Options).
  • Menus have one stem and an id, as widgets do: a menu is named by a string id, opened by menu_open(id, at, anchor, from_keyboard, search, nested) where at is a point or a rect (Menu_At), and built by menu(id, width), nested or not. search is on by default: a menu of a few fixed choices says search = false. A menu row and a command say disabled, as a button does. How a program moves:
    • ctx_menu(key, w) and menu_nested(key, w) → menu(id, w).
    • ctx_menu_open(key, pos, …) → menu_open(id, pos, …); ctx_menu_open_rect(key, rect, anchor, kb) → menu_open(id, rect, anchor, kb, search = false).
    • menu_nested_open(key, pos) and menu_nested_open_rect(key, rect) → menu_open(id, at, nested = true, search = false).
    • ctx_menu_close → menu_close, ctx_menu_is_open(key) → menu_is_open(id) (any level), ctx_menu_any_open → menu_any_open.
    • ui.key_from_string(0, "x") given as a menu's key → "x"; menu_bar_button and edit_menu take the id.
    • menu_item(…, enabled = x) → menu_item(…, disabled = !x), menu_submenu(text, icon, enabled) → menu_submenu(text, icon, disabled), command_pressed(c, can) → command_pressed(c, !can).
  • Text fields: one name each, their options in a struct. ui.Text_Field is ui.Line_Edit, ui.Text_Area is ui.Text_Edit, each with its procedures. line_edit(id, f, o: Line_Edit_Options) and text_edit(id, a, o: Text_Edit_Options) take their options in a struct. A line edit's kind (Line_Edit_Kind: .Plain, .Secret, .Read_Only) replaces secret and read_only. Field_Snapshot and Text_Snapshot are one Edit_Snapshot, and one Edit_Kind serves both. How a program moves:
    • Text_Field → Line_Edit; field_destroy, field_string, field_set, field_clear, field_wipe, field_can_undo, field_can_redo, field_undo, field_redo, field_has_selection, field_selection, field_select_all, field_copy, field_cut, field_delete, field_insert, field_paste_answer, field_key, field_num_step → line_edit_ and the same end. line_edit_clear_history is new.
    • Text_Area → Text_Edit; area_string, area_set, area_clear_history, area_destroy, area_line_count, area_undo, area_redo → text_edit_ and the same end.
    • field_menu → edit_menu, field_paste → edit_paste, field_frame → input_frame (no cross: its children are centred).
    • line_edit(id, &f, "Name") → line_edit(id, &f, {placeholder = "Name"}); secret = true, reveal = &shown → {kind = .Secret, reveal = &shown}; read_only = true → {kind = .Read_Only}; clearable = true → {clearable = true}; menu = false → {own_menu = true}.
    • text_edit(id, &a, "Notes", wrap = true, max_lines = 4) → text_edit(id, &a, {placeholder = "Notes", wrap = true, max_lines = 4}); the same for line_numbers, tab_indents, auto_height, min_lines, highlight; menu = false → {own_menu = true}.
    • edit_menu(id, target, owner, secret = true) → edit_menu(id, target, owner, .Secret); line_edit_key takes the same kind.
  • One ui.button: button(id, text, icon, o: Button_Options) -> Signal replaces button, button_icon, icon_button and hint_action; nav_item is gone (the settings page's sidebar lines are buttons). id is the id alone ("add" or "###add"). The options are fields of Button_Options: intent, face, width, height, quiet, wrap, left, lit, disabled, tip, icon_font, icon_color. Words, with a glyph or not, are always the toolkit's row: its size from o.width, o.height or next, else as wide as its words and padding, a line high, its corners rounded. How a program moves:
    • button("Add###add", intent = .Primary) → button("add", "Add", o = {intent = .Primary}).
    • button_icon(id, glyph, text, ...) → button(id, text, glyph, {...}). hue and solid are gone.
    • icon_button(id, glyph, tip = t, ...) → button(id, icon = glyph, o = {tip = t, ...}): a glyph alone is a ghost unless face says otherwise. name is gone: call ui.a11y({name = ...}) before it.
    • hint_action(id, text, icon, icon_font, intent) → button(id, text, icon, {face = .Link, icon_font = icon_font, intent = intent}).
    • icon(glyph, width, fg) takes the font as a fourth parameter, icon_font; card(title, icon_glyph) names its glyph icon.
  • The command palette and the key sheet: they do no work in proportion to the commands at a frame. The palette ranks again only when the query, the commands, first, the memory or the language changes, and both build only the lines near their view. How a program moves:
    • Palette_Options{recent = indices} → {memory = &app.choices, names = keys}, and ui.choice_note(&app.choices, keys[i]) for each command chosen.
    • A table of commands built again each frame, or changed in place, gives Palette_Options.version and bumps it when it changes.
    • ui.palette(p, commands, enabled, opts) → ui.palette(p, commands, disabled, o) with disabled[i] = !can(i); ui.flow_palette returns disabled too.
    • ui.shortcuts_sheet(id, commands, &open, title, width_em) → ui.shortcuts_sheet(&app.sheet, id, commands, title, version) with app.sheet.open (a ui.Shortcuts_Sheet), and ui.shortcuts_sheet_destroy(&app.sheet) at the end.
  • A command has any number of keys: ui.Command.keys is a []Chord, not [2]Chord (Zoom in: Ctrl+=, Ctrl+Num +, Ctrl+Shift+=). Write keys = {{.K, {.Ctrl}}} for keys = {{.K, {.Ctrl}}, {}}. The first key that is not zero is the one shown. Keys that the user rebinds are a copy of the constant table, passed to every reader (docs/commands.md, "Keys the user changes").

Removed

  • tools/emojiperf: nothing used it; tk emoji_board and tools/textcompare measure the emoji and the text.
  • ui.chips, ui.rating and ui.strip_grid: no program used them. The fidget example keeps chips and rating as its own widgets (examples/fidget/widgets.odin), which a program can copy. strip_grid and STRIP_FADE_EM are gone.

Fixed

  • ui.task no longer grows the chores' queue in the caller's allocator: a program or a test with a tracking allocator saw it as a leak.
  • A double click is two presses in one place: two quick presses at the two ends of a wide box are two clicks, as in a text. A press on a picture, then one beside it, zoomed instead of closing.
  • The devtools' Toolkit.click clicks a box at rest: it waits until the box has kept its place for two frames. A click on a dialog that was still taking its place was lost on its scrim.
  • The user's themes file is read again after a window that was reading it closed.
  • The Rounding setting is found by "corners", "round", "square" and "radius" in a settings search or the palette.
  • Two views that scroll the same way, one in the other, show one bar: the innermost's. A fixed-width table that scrolls sideways in a page that scrolls sideways showed two bars, one under the other.
0.249.02026-11-13 07:31 UTCrelease

Added

  • ui.Announcer.state: the window whose toasts the messages are; a message said between two builds (a command, a task's result) shows in that window whatever state is in use.
  • config.load_text: reads a preference file's text read elsewhere (by a task); with change, what it sets counts as the user's change (an import).
  • Themes of your own in every program: prefs_page.Themes_File and Options.themes_file show under the themes' cards how to make one, with the file as a link; it is made from a commented template, opened in the system's editor and read again when it changes, all off the interface's thread.
  • Export and Import on the settings page: the settings export to JSON, TOML, INI or the program's own format, and import back from the program's own (prefs_page.export_to, import_from, export_text, export_format_of).
  • gt:undo: one undo and redo stack for any model. undo.Stack(T) keeps snapshots of a graph, a drawing or a text, with a limit, and drops the redo steps a new change makes useless.
  • Builds without the fallback fonts: -define:FONT_EMBED_FALLBACK=false leaves Roboto and Inconsolata out of the executable (244 KB), for a program that loads its fonts itself; font.FALLBACK_UI_DATA and font.FALLBACK_MONO_DATA are then empty.
  • prefs_page.standard_watch and standard_apply: one call applies every standard setting to the toolkit (feel, zoom, density, rounding, motion, scrolling, toasts; the renderer's and the fonts' with Standard_Targets), then each change again as it happens.
  • ui.node_inspector, ui.flow_nodes_make, ui.flow_palette: a flowgraph in a window. The inspector draws a node's parameters from its kind's schema (numbers with their sliders, toggles, choices, colours, texts, folders, lists the program gives) and returns the change for the program to apply after its undo step; flow_nodes_make makes node_graph's nodes and links of a graph, and flow_palette the add palette of its catalog.
  • Common settings for every program: prefs_page.standard_register registers, besides the look and the session, the text and fonts, scrolling, input, delays and menus, rendering and updates (STANDARD_ALL; appearance.glow, appearance.zoom, appearance.density, appearance.rounding, window.system_title, general.language...), each with the toolkit's default and the title of its group; technical ones are advanced, never hidden. docs/settings.md lists them all.
  • Only the Lucide icons a program uses: built with -define:LUCIDE_SUBSET=<path>, lucide.DATA is a font of the program's icons instead of the whole one (whatsnew: 10 KB instead of 917 KB). toolbox.lucide_subset writes it from the icons the program's sources and the toolkit's name, with toolbox.font_subset, which cuts any TrueType font down to some characters.
  • gt:flowgraph: graphs a person edits and runs. A program describes its node kinds as data (ports, parameters, at most so many of a kind); the edits refuse a loop and a link of kinds that disagree; a run gives the nodes that are ready, shares their values counted, and skips what an input never reaches. Action ports put conditions between nodes: a node linked to an editor's "done" runs only when the person confirms, one linked to its "cancelled" only when they give up. A set of graphs reads and writes as JSON.
  • site.with_licence: the pricing and thank-you pages of a program's shop. The marks <!-- licence-buy --> and <!-- licence-thanks --> become the buy block (Paddle's checkout overlay, "Coming soon" until the shop is configured) and the block that shows the licence just bought. site.licence_pages fills six template pages in neutral words: pricing, thanks, terms, refunds, privacy and imprint.
  • licence-worker/: the Worker that sells a program's licences. One Cloudflare Worker codebase for every program, one deploy per product: Paddle's webhook becomes a signed licence, kept, mailed and shown on the thank-you page. Everything that names a program is a setting of its file products/<program>.jsonc (product, editions, prices, years of updates, mail templates); products/example.jsonc is the template.
  • toolbox.licence_commands: the licence and paddle commands of a project's tool. licence keygen makes the signing key pair outside any git work tree, licence issue signs a licence by hand, licence verify checks one, licence secrets decrypts the licence Worker's secrets with sops into a file git ignores, and paddle makes the product and its prices in Paddle's catalogue (a dry run without -apply).
  • gt:licence: a program's paid licence, checked offline. A program describes its licence once (licence.Product: its name, tag, signing context, file extension, public keys, editions, and optional years of updates) and checks a pasted key or a licence file with no network. Its Store keeps the licence in the user's configuration folder, or in memory only, puts a build's own licence in place once, and does every read and write in a task, off the interface's thread. licence.file_dialog gives the Open dialog of a licence file for ui.file_dialog.

Changed

  • Toasts are built at the end of every build: a program that never called ui.toasts_build showed none, so a message said in its window (ui.announce) went nowhere. ui.toasts_build is no longer public: remove its call.
  • ui.dot with no intent takes the colour of the text where it stands (a dot in a button's words reads as its words); an intent still gives its hue.
  • The settings' sidebar is resized with the mouse, and keeps its width (prefs_page.sidebar_width). Options.file replaces Options.foot: the settings file shows shortened with ~, and a click opens it.
  • A program declares what it takes of the toolkit once: toolbox.Project.features (Native_Text, Accessibility, Mermaid, Devtools, Lucide_Subset, No_Fallback_Fonts) gives odin_command its defines, build_native its steps (the native libraries, the Lucide subset) and the notices their crates. build_native replaces build_native_text, and features replaces Project.native_crates.
  • The settings page in sections: the settings of an inner group show under its title, the advanced ones under a folded Advanced part; a bounded number is a ui.number (slider, field, − and +); a control with no room beside its words goes under them.
  • A text field's history is a gt:undo stack. Text_Field.history and Text_Area.history (ui.Edit_History) replace their undo and redo arrays; field_undo, area_undo and the keys work as before.
  • ui.set_animations and ui.set_smooth_scroll: the user's word on motion goes over the system's; Build_Params.smooth_scroll is gone, set it with ui.set_smooth_scroll.
  • The devtools endpoint is left out of release builds: devtools.start_from_env returns nil and none of the server is linked (350 KB less) unless the build has -define:TOOLKIT_DEVTOOLS=true; a -debug build and a test have it as before. A tool that drives a release build over CDP builds it with the define (toolbox.Feature.Devtools); tk build does for the examples.

Fixed

  • fsx.make_dirs says whether the folder is there afterwards (one already there included), and toolbox.build_c_lib and release.package_ use it: a second build of a C library no longer fails on its existing folder.
  • update keygen writes a key into a folder that does not exist yet. It refused such a path as if it were in a git work tree; it now checks from the nearest folder that exists, and makes the folder.
0.248.02026-11-13 06:18 UTCrelease

Added

  • tk crash_symbolize: crash reports with their functions named. It names the program's frames of a crash report from the build's linker map (Windows) or its executable (Linux). A program's build tool links with toolbox.CRASH_LINKER_FLAGS and calls toolbox.crash_publish_symbols after each link to keep the map named by its build.
  • gt:log: a program's log. tk_log.install gives a context.logger that writes core:log's lines to <program>.log in the program's state folder, off the thread that logs and in the order the threads logged them, rotated past a size with older files kept. Its last lines go into a crash report through tk_log.tail.
  • gt:crash: crash reports. One call at the start (crash.install) and a program that crashes on Windows or Linux writes a report as it dies: the faulting thread's stack and every other thread's, the modules, the last lines of the log and the settings that differ from their default, in a versioned text that crash.report_parse reads. crash.begin_session and crash.end_session find a session that was killed without a report, and crash.last_report tells the next start that the program crashed, so it can offer to open or copy the report. Nothing is sent anywhere.
  • The menu of a text area: a right press in a ui.text_edit opens the same menu as a ui.line_edit's (Undo, Redo, Cut, Copy, Paste, Delete, Select all, their keys and icons, a search); menu = false leaves it to the program. ui.field_menu takes a ui.Edit_Target: a Text_Field or a Text_Area.
  • Export of the preferences: config.export_json, config.export_toml and config.export_ini write the user's changes, or every value with all = true, as a flat JSON object, TOML tables per group, or INI sections per group. config.export_own writes our own format, which config.load_file reads back; it replaces config.serialize_user. Floats are written in the fewest digits that read back as the same value.
  • Advanced preferences: Def.advanced marks a technical setting. A settings page shows it folded under an "Advanced" part of its group, and a search finds it as any other. Def.hidden stays for the program's state, which is no setting.
  • ui.modal_sized fits its content: a preferred height of 0 makes the dialog as tall as what is in it (a region that scrolls counted whole), between its least size and the window. A program no longer adds up its header and its buttons to size it.
  • ui.label_tip: a label whose whole text shows in a tooltip when its box cuts it and the pointer rests on it.
  • ui.field_wipe: empties a text field and leaves nothing of a secret in memory: its buffer and every step of its undo and redo history are zeroed.
  • ui.prompt: a dialog that asks for an answer typed in: a title, a sentence, one field (secret or not), Cancel and OK. The field has the keyboard as it opens; Enter answers, Escape gives up. Its words are Prompt_Labels.
  • ui.spinner, ui.dot: the busy arc, turning, which asks for frames only while it is shown; and a filled disc of an intent's hue (a recording, a state).
  • ui.well, ui.hint_action: a sunken box carved in the surface (the theme's well), and words that say an act and do it, weak like a hint, lit under the pointer, coloured by an intent.
  • Box_Flag.Held, Box_Flag.Lit, ui.box_hot, ui.box_held: a box drawn pressed in (a toggled button) or as under the pointer (a button whose menu is open), in every finish.
  • ui.button_icon: a face (raised, ghost, toggled), quiet (a secondary act), lit, wrap (its words on more lines), left (its content at its left), icon_color, a free height and a tip; drawn by the theme's finish (bevelled in the machined one, pressed in when toggled).
  • ui.number: one widget for a number one sets, of any integer or float type: − and + (held, they repeat), a field where its exact value is typed (applied at Enter or when the keyboard goes, Escape gives it back), Up / Down and Page Up / Page Down with Shift, Ctrl and Alt multipliers, the wheel, optional bounds (a slider with slider = true), a step, a format, a unit, disabled and a tooltip; a screen reader sees a spin button.
  • ui.Feel: the interface's delays, repeats and steps in one struct the State holds, read with ui.feel and set with ui.set_feel, so a settings page can offer each: the tooltip delay, the submenu's hover delay, the menu item's height, the palette's fade, the list's type-ahead, the undo steps and their merge, a held button's repeat, the Shift, Ctrl, Alt and Page steps, the zoom step, and the wheel's lines, a held key's repeat and a fling's end where the system says nothing (platform.set_input_defaults). Defaults: ui.FEEL_DEFAULT, today's values; docs/feel.md lists each.
  • Preference groups from the name: the segments of a preference's name but the last are its groups (appearance.text.gamma is in appearance, then appearance.text). config.path_of(name) gives them, config.title_register(prefs, path, title, order) gives a group its heading and its place, config.group_title reads it (else it is made from the last segment), and config.groups_of(prefs, parent) lists the groups in a group in their order ([docs/config.md](docs/config.md)).
  • ui.open, ui.file_dialog: a file, a folder or a web address opened with the system's program, and the system's file dialogs, with no wait on the interface's thread (they run on the chores; a dialog's result comes back at a next build).
  • base.blocking: in a debug build (TOOLKIT_BLOCKING_CHECK), a procedure of the toolkit that waits on the system (a file read or written, a dialog, a URL or a file opened, a notification, the clipboard read at once, the preferences saved, a theme icon) called on a thread that builds an interface is said on the standard error, once per call site of the program, and counted (base.blocking_count): what can freeze a window is found before a person meets it.
  • gt:tasks, ui.task, ui.chores: work off the interface's thread and its result back on it. tasks.Pool (its order or the newest first, urgent work, timed work, more threads while some hang, a pool of no thread a test drives by its own clock) and tasks.Job (asks that merge); ui.task(s, work, done, data, lost) runs work on the program's chores and done at the next build, and never touches a State destroyed meanwhile ([docs/tasks.md](docs/tasks.md)).
  • toolbox.odin_check, toolbox.check_env: odin check of a package for another system, Windows from Linux too (an Odin root whose wgpu has an empty Windows library). tk ci on Linux checks every package of src/ for Windows, and run_tests -check:windows_amd64 checks every test package and program with its own defines: Windows code that does not compile fails the Linux job.
  • toolbox.Logo.files: write_logo also writes the logo at a size anywhere, such as the site's logo.
  • toolbox.check_scopes: finds each if !ui.row(...) in a program's sources: a scope opened under a negation ends at once. The scopes are read from the ui package, so a new scope is checked at once.
  • toolbox.build_c_lib: a static C library that a program builds itself, built again only when its sources or flags change. toolbox.stamp_holds and toolbox.write_stamp are the stamps of every build made once.
  • toolbox.third_party_notices: writes or checks a program's THIRD-PARTY-NOTICES: the licences of the toolkit, its fonts and icons, Odin's core library, wgpu-native, and the Rust crates that the toolkit's native libraries link.
  • toolbox.sway_start: a sway desktop nobody sees, for a tool's live tests and pictures on Linux. It has its own runtime directory and sockets, no session bus, and, when asked, its own configuration, data, state and cache folders. Its programs and sway stop with all they started, also when a signal ends the tool (toolbox.guard_groups). tk desktop_tests wayland runs in it.
  • Standard commands of a project's tool: changelog.command (new, check, preview), site.command (build, check, card), release.commands (package, notes, ship), toolbox.logo_command and toolbox.notices_command each add a whole command to a tool with one line.
  • toolbox.Project: what a program's project is to its tool, in one place. odin_command, build_native_text, build_launcher, check_launcher, check_windows, check_darwin and project_version build, check and read the program from it.
  • toolbox.tool_main: a project's tool is a list of toolbox.Commands. It says the help, refuses an unknown command or a line a command does not take with exit code 2, joins the -name:value flags that PowerShell splits, and works from the project's root, found by its mark. tk and every program's tool use the same dispatcher.

Changed

  • Every tooltip waits the same delay: Feel.tooltip_delay_ms (500 ms by default), the settings page's and the setup dialog's included (they waited 400 ms).
  • A line edit keeps as many undo steps as a text area: 200 (Feel.undo_steps; it kept 100), and both merge typing by the same rule (Feel.undo_merge_ms).
  • A slider's keys take Shift: Shift with an arrow key or Page Up / Page Down moves Feel.step_shift times as far (ten by default), as its wheel already did.
  • One dialog header, with its close button: ui.dialog_header(id, title, opts) -> bool takes a ui.Dialog_Header (its icon, close) and a block for its own controls; with close, a close button (Lucide's X) sits in the dialog's corner at the same margin from its top and right edges, its corners concentric with the dialog's, and the header's controls stay clear of it. ui.dialog_header_begin and ui.dialog_header_end are its if form; ui.modal_corner builds a program's own look of the control in the header's block. The confirmation, the shortcuts sheet and the Setup dialog have it (the sheet's Close button at its foot is gone).
  • A scroll bar's arrow repeats as any held button: held, it steps again after Feel.repeat_delay_ms and then every Feel.repeat_interval_ms (420 and 55 ms by default; it was 250 and 50 ms of its own), as a stepper's buttons do.
  • A preference's title is its last segment: config.title_of no longer repeats the groups, which a settings page shows as headings (network.http.max_connections reads "Max connections" under "HTTP"). config.matches(prefs, def, query) now takes the registry and finds a preference by the titles of its groups too.
  • A button says its intent, not a tag: intent = .Primary / .Danger / ... and face = .Ghost replace pushing accent_button, danger_button, warn_button or ghost_button around a button. The tags stay the theme's names of those colours, derived from the intent (intent_tag).
  • ui.button and ui.icon_button take an intent (their colour), a face (Button_Face: raised, ghost, toggled), disabled, lit (drawn as under the pointer while its menu is open) and a tip (a tooltip, read as their description); ui.icon_button also an icon_font and a name for a screen reader (else its tip). A toggled button is held down and read as pressed.
  • ui.range_slider works from the keyboard and the wheel: each thumb is a Tab stop and a slider for a screen reader; the active thumb (the one a press took, or Tab reached) moves by the arrows, Home / End and Page Up / Page Down, and with the wheel. It takes a step and a format of each value (it was always "%.0f-%.0f").
  • gt:lucide names every icon of the font (1876, were about 150 added by hand): lucide.odin is generated from lucide.ttf by tk gen_lucide, each name the font's own. Two constants take the font's name: TRIANGLE_ALERT is ALERT_TRIANGLE, SEND_HORIZONTAL is SEND_HORIZONAL.
  • tk release and release.ship take patch, minor, major or a version, and the number is the next after the last tag on origin. They publish from any clean checkout (a branch, a worktree, a detached HEAD), push master and the tag at once (atomic), and start again with the next number when origin moved meanwhile: a tag never goes out without its commit. release.publish, release.version_next: the step they share.
  • site.Check_Options.generate gets user: the pages that a site check makes can depend on the project's own data.
  • changelog.Options.user: Options.version and Options.set_version get it as their last argument, so a project's tool can pass its project to them.
  • release.Config holds a toolbox.Project: its name, repository, changelog, version line and program are the project's (Config{project = p, ...}). version_of and version_set are now toolbox.version_of and toolbox.version_set.

Removed

  • ui.modal_header, ui.modal_header_begin, ui.modal_header_end: the header of a dialog with a control in its corner is ui.dialog_header with close.
  • The constants ui.Feel replaces, and ui.set_menu_item_height: PANE_TOOLTIP_DELAY_S, TABLE_TIP_DELAY_S, MENU_HOVER_MS, MENU_ITEM_EM, PALETTE_FADE_MS, LIST_TYPEAHEAD_MS, FIELD_UNDO_STEPS, FIELD_UNDO_MERGE_MS, TEXT_UNDO_MAX, NUM_STEP_PAGE, NUM_STEP_CTRL, NUM_STEP_SHIFT, NUM_STEP_ALT, ZOOM_STEP, and in platform WHEEL_LINES_DEFAULT, TOUCH_FLING_STOP_SPEED, KEY_REPEAT_DEFAULT_RATE, KEY_REPEAT_DEFAULT_DELAY_MS; set the field of ui.Feel instead (menu_item_em for the menu's item height). ui.hovered_for(sig) takes no delay: every tooltip waits Feel.tooltip_delay_ms. platform.touch_fling takes no stop speed: it is the thread's input_defaults().fling_stop_speed.
  • Def.category, the category argument of config.register and config.category_title: a preference's name is the one source of its group. Use config.path_of and config.group_title; a title registered with config.title_register replaces a category with words of its own.
  • ui.stepper, ui.slider_field, ui.Slider_Field, ui.slider_field_destroy: ui.number does what both did, and more (ui.number(id, &v, lo = 0, hi = 99); with slider = true for a slider beside the field). The number being typed is kept by the interface: a program keeps no field for it.
  • ui.Worker (worker_start, worker_ask, worker_take, worker_busy, worker_lock, worker_published, worker_stop): a tasks.Job on ui.chores() does it, its result posted with ui.post.

Fixed

  • A dialog opens without a jump: its first frame shown has it at its size and place (it is laid out once unseen), its scrim and its panel fade in together, and the focus ring behind it goes as it appears.
  • ui.button and ui.icon_button keep the text alignment they are given: a next or a style with text_align is honoured; only a button nothing aligns is centred.
  • A menu is as wide as its widest row: a label next to a long shortcut ("Show as QR code", Ctrl+Shift+Q) is no longer cut. The width a caller gives (ctx_menu, menu_nested, a drop-down's list) is a minimum, a wider text_pad widens the menu, and only a menu wider than the window cuts a label, whose row then shows it whole as a tooltip; a line the command palette cuts does the same.

Security

  • A text field forgets a secret for good: a step of the undo and redo history that is dropped (the oldest, a redo replaced by an edit, a step undone) is zeroed before its memory is freed.
0.247.02026-11-13 01:13 UTCrelease

Fixed

  • A capture session survives a broken connection: when its connection to the display server breaks (a protocol error, the compositor restarted), gt:capture opens it again before the next capture, instead of failing every capture until the program restarts. Not while a stream is open on it.
0.246.02026-11-13 01:00 UTCrelease

Fixed

  • A new field shows its text from the start: a line edit built with its text already set (a rename) showed only the end of its text for one frame.
  • Animations start smoothly after a rest: the first frame after the window slept counts as one refresh, so a switch clicked then slides instead of jumping most of its way at once.
0.245.02026-11-13 00:43 UTCrelease

Fixed

  • A menu opens in its place: a menu against the window's right edge (a burger menu) showed for one frame past the edge at its first width, then jumped to its place; it is placed at the width it is built with from its first visible frame.
0.244.02026-11-13 00:34 UTCrelease

Fixed

  • A setting in % shows its value: a slider of the settings page whose unit is "%" wrote "%!(MISSING ARGUMENT)" after its number.
0.243.02026-11-13 00:32 UTCrelease

Added

  • ui.dialog_header and ui.choice_row: ui.dialog_header puts a dialog's title and icon in a strip across its top, darker than its body. ui.choice_row is a row of a list to choose from in a dialog (an icon, a title, a detail) with the command palette's selected look; the pointer that moves over a row selects it. ui.confirm shows its title in the header.
  • ui.dialog_body and ui.dialog_buttons: a dialog's body with its margins, and its row of buttons at its right end: with ui.dialog_header, every dialog has the same three parts.
0.242.02026-11-13 00:18 UTCrelease

Fixed

  • A click gives the focus to a field of an open menu: a search field in a panel opened as a menu got no focus from a click (the menu kept it for what opened it), so nothing typed reached it.
0.241.12026-11-13 00:13 UTCrelease

Fixed

  • A strip's line that scrolls sideways shows it: its bar was drawn over the cells; it has its own room under them now, and the side that hides cells fades out (ui.scroll_fades, which a wide Markdown table uses too).
0.241.02026-11-13 00:01 UTCrelease

Added

  • ui.focus_glow: draws the halo of a focused field as the theme does (machined, edged or soft), in a colour of the program's: a part of a field drawn by the program glows as the field.
0.240.02026-11-12 23:48 UTCrelease

Changed

  • A frame around a QR code: ui.qr_code draws a rounded border of the theme with a small gap around its white square.
0.239.02026-11-12 22:56 UTCrelease

Added

  • A table's rows can be taller (Table.row_em): its lead fills the height, so a list can show a thumbnail at the start of each row.
0.238.02026-11-12 22:53 UTCrelease

Changed

  • The toolkit's dialogs and pages draw their action buttons with a glyph and an intent: the confirmation (Cancel, and the act in red or, when it is safe, in green), an empty state's actions, the shortcut sheet's Close, the Setup dialog (Choose, Uninstall, Close or Not now, Install, Open the installed copy) and the update buttons of the preferences (Check now, Install, Restart now, and the status bar's badge) now look as ui.button_icon does: a Lucide glyph beside the words, in the soft colours of what the button does.
    • ui.Empty_State.actions is now a list of ui.Empty_Action (text, icon, intent).
    • setup.Config.button is now proc(id, label, glyph: string, intent: ui.Intent, em: f32, user: rawptr) -> bool; setup.Button_Kind is removed.

Fixed

  • A tooltip over the menus: the tooltip of a button in a menu, or in a panel opened as a menu, showed under it; it is drawn over the open menus now.
0.237.02026-11-12 22:37 UTCrelease

Added

  • An overlay can take the keyboard from its showing (Overlay_Keyboard.Exclusive, host.Open.overlay_keyboard): a selection of a region reads Escape, the arrows and Enter at once, with no window animation, as a layer surface.

Changed

  • A node that did not run says so with a mark: ui.node_graph draws a crossed-out ring in a Skipped node's header, beside its fading, as Done has its check and Failed its cross.

Fixed

  • An overlay shows the windows below where it draws nothing on Linux: its surface is composited with its alpha (Surface_Handles.see_through), where it was black.
0.236.12026-11-12 22:29 UTCrelease

Fixed

  • A floating panel's corner has a corner's cursor: it asked for nwse-resize, which some cursor themes lack; their fallback (bd_double_arrow) is drawn the other way in some of them, a diagonal toward the bottom left. It asks for se-resize, as a window's corner and a dialog's grip do.
0.236.02026-11-12 22:24 UTCrelease

Added

  • line_edit(..., read_only = true): its text is shown, selected and copied (keys, a drag, the menu's Copy), never changed: a value made for the person to take. field_key and field_menu take read_only too.

Fixed

  • A field in an open menu takes its keys: a search field in a panel opened as a menu (ctx_menu_open_rect) got no typed text, the menu took every key; while such a field has the focus, its keys are its own.
0.235.02026-11-12 22:11 UTCrelease

Added

  • gt:notices keeps a log of what the user missed, and ui.badge shows a count on a button: a program puts an entry when a run ends or a question waits; an entry put again while open counts once more instead of adding a line. Entries are New, Seen or Acknowledged; what was acknowledged stays in a history of 200 entries by default, and what is open is never dropped. The log survives a restart, and its groups are made again only after a change. ui.badge draws a count in a pill on a button's corner, "99+" past 99, nothing at 0.
0.234.12026-11-12 22:02 UTCrelease

Fixed

  • No bars of white or of the desktop in a window on Wayland: a transparent window took half floats wherever its surface offered them (NVIDIA's Vulkan on Wayland does), though Linux composites it opaque; a compositor read their alpha, and what the interface draws past the [0, 1] range (a highlight, a halo) showed as bars of white or of what is behind the window. Half floats are now for a surface composited with its alpha only (DirectComposition); others are 8 bits a channel, as tests render.
0.234.02026-11-12 21:51 UTCrelease

Added

  • ui.announce says what a program did in a system notification: copied, saved, deleted go to the system's notifications, without waiting on the interface's thread (platform.notify_async), and to a toast of the window only where the system shows none. The standard preference general.messages (System, Window, Off) chooses where; a failure is always said.
0.233.12026-11-12 21:43 UTCrelease

Fixed

  • A dialog's search strip is a field's, as a menu's search band: dialog_top_draw took the box's background, which inside a dialog is the dialog's: a palette's search strip was the dialog's colour, lighter than a menu's. Its colour of its own is now a ^Color in custom_user; none, a field's (input background).
0.233.02026-11-12 21:08 UTCrelease

Added

  • Lucide: CREDIT_CARD, DICES, ID_CARD, MAIL.
0.232.02026-11-12 20:51 UTCrelease

Added

  • gt:image writes JPEG and WebP files: jpeg_encode (written in Odin, its colours not subsampled so a screenshot's text stays sharp) and webp_encode (lossy or lossless, by libwebp loaded when first asked; webp_available says whether it is there).
  • The clipboard takes a picture's PNG made elsewhere (Clipboard_Image.png): a program encodes it on its worker, and setting the clipboard encodes nothing on the interface's thread.

Fixed

  • A shortcut field records the Super key: Super+S (Windows+S) is taken as a shortcut, as Ctrl+S is. Event.super says the key was held on Wayland, X11 and Windows.
0.231.02026-11-12 20:07 UTCrelease

Changed

  • The native text backend is the default off Windows: FONT_BACKEND is native everywhere but Windows (dwrite there), so a Linux build with no define has text; it no longer needs -define:FONT_BACKEND=native.
0.230.02026-11-12 19:43 UTCrelease

Changed

  • A terminal's grid is centered in its box: what its whole cells leave goes half on each side, not all under the last row. term.grid_origin gives where the cells start (View.origin); Mouse_Input.pad is now pad_lo and pad_hi, the margin on each side.
0.229.02026-11-12 19:41 UTCrelease

Changed

  • The machined and edged finishes on light palettes: a light theme no longer falls back to the flat finish. Its buttons, wells, grooves, panels, lamps and title bars keep their relief, drawn by its light: soft shades and strong white rims and lips. Dark palettes look exactly as before. machined_plate's border defaults to the relief's own edge (a zero colour); a program's own relief takes the same colours from relief_shade_for and relief_shine_for.
0.228.12026-11-12 19:39 UTCrelease

Fixed

  • The keyboard tests of the classic menu: they open their menus with search = false, as their letter selection and their turn at a window's edge are the classic menu's; the menus that search have their own tests.
0.228.02026-11-12 19:33 UTCrelease

Added

  • ui.modal_header, ui.modal_corner, ui.corner_place, ui.concentric_radius: a control in a dialog's top right corner (a close button) is placed by the toolkit: the same margin from the dialog's top and right edges, its corners concentric with the dialog's (radius max(R - m, 0)), and the row across the dialog's top centered with it and kept clear of it. The grips of a resized dialog leave it its corner. corner_place places a control in any rounded corner by the same rule. The Setup dialog's close control is placed this way.
0.227.02026-11-12 19:18 UTCrelease

Changed

  • A palette at rest costs nothing: ui.rank takes a version of its items; with a cache, the same query and version return the hits kept, with no item read. The search for slips (fuzzy_typos) allocates nothing for a text it does not find and compares each word once. ui.vlist_row_name(i) names a row a program builds itself in a vlist, so the list measures it.
0.226.22026-11-12 19:01 UTCrelease

Fixed

  • A lazy column shows its items in the frame its view jumps: a view moved far in one build (a conversation just read, put at its bottom) showed only empty space for a frame, because the column placed its items from its last position and the new offset together.
0.226.12026-11-12 18:45 UTCrelease

Fixed

  • A wide markdown table has one scroll bar: a table wider than its place showed two horizontal bars, its own under it and the toolkit's of the box it scrolls in; it now has the toolkit's alone, with room under its rows. markdown.Colors.scroll_bar is removed.
0.226.02026-11-12 18:23 UTCrelease

Added

  • gt:syntax knows more languages, and Markdown and diffs: Java, C#, Kotlin, Swift, Dart, PHP, Ruby, Lua, Zig, Nix, YAML, TOML, INI, Dockerfile and Makefile are coloured; HTML, XML and CSS are coloured now (tags, attributes, selectors, properties). language_of_file finds Dockerfile and Makefile by their whole name, and guess finds every one of these in a pasted text, and says when a text is Markdown or a diff (highlight = false: the label, no colours).
0.225.02026-11-12 18:22 UTCrelease

Changed

  • ui.slider follows the wheel, not only ui.slider_field: a notch up is a step more (Shift: ten). In a view that scrolls, a slider takes the wheel once it has the keyboard, so the wheel over it still scrolls the page. ui.repeat_pressed: a button that repeats while held, what the stepper and slider_field's − and + share.
0.224.12026-11-12 18:18 UTCrelease

Fixed

  • platform.user_dir follows %APPDATA% and %LOCALAPPDATA% on Windows: an absolute variable is taken, as XDG's are on Linux, so a test or a portable copy that points them elsewhere is followed; without them, the known folders.
0.224.02026-11-12 18:17 UTCrelease

Changed

  • A program's standard folders, one call on every system: platform.user_dir(kind, program) gives its folder of configuration, data, state or cache (Linux: the XDG ones, an absolute variable or its default; Windows: the roaming application data for the configuration, the local one for the rest, with state and cache folders of their own). It replaces platform.config_dir, desktop.xdg_data_home, desktop.xdg_config_home and desktop.xdg_cache_home, which are gone.
0.223.02026-11-12 17:56 UTCrelease

Added

  • image: transformations of RGBA8 pictures on the CPU: a program can crop, resize (Lanczos3, bilinear, box), scale, rotate, flip and pad a picture; give it a border, rounded corners, a drop shadow or a background of a colour or a gradient; adjust grayscale, invert, brightness and contrast, saturation, hue, sepia and threshold; blur, sharpen or pixelate it; draw one picture over another; and put a picture or a text as a watermark at a corner ([docs/image.md](docs/image.md)).
  • ui.nav_item, a line of a navigation list: an icon and a title from the left edge, a ghost under the pointer, pressed in when it is the one shown: the settings' pages use it, and a program's side list can too.
  • A program can ask where the pointer is, even on Wayland: capture.pointer(s) gives the pointer's place on the desktop (logical) and the output it is on, through the compositor's cursor sessions (ext_image_copy_capture_cursor_session_v1) on Wayland, QueryPointer on X11 and GetCursorPos on Windows; capture.pointer_from_buffer turns a point of an output's buffer, turned and scaled, into a point of the desktop.
  • ui.node_graph: a program edits a graph of nodes and links visually: nodes with a header, ports coloured by kind, a run's state, a thumbnail and widgets of their own; links drawn as curves from port to port, checked by the program's can_link; selection by click and band, moves snapped to a grid, pan and zoom (Ctrl+wheel, a touchpad's pinch), a minimap. The program keeps the model and applies the events it returns (Graph_Moved, Graph_Linked, Graph_Deleted...). A box with the new flag .Ctrl_Wheel gets Ctrl+wheel instead of the interface's zoom.
0.222.02026-11-12 17:44 UTCrelease

Added

  • Shades, soft pairs and intents: shade(c, .S100) … .S950 (and hue_shade) give a colour's tints and deep shades along its OKLCH lightness, its hue kept; shade_on(c, ground, 4.5) the shade of a colour that reads on a ground; soft_pair(c) a soft fill of a colour for the theme shown and words of the same colour that read on it. Intent (Primary, Info, Success, Warning, Danger, Cancel) names what an act means: intent_hue, intent_tag, and button_icon(..., intent = .Danger); button_icon(..., hue = ...) is soft unless solid.

Changed

  • The intents' buttons are soft: accent_button, danger_button and warn_button, and the new success_button, info_button and cancel_button, are a soft fill of their hue with words of that hue (soft_pair), readable in every theme, light or dark, instead of a solid fill.
0.221.12026-11-12 17:37 UTCrelease

Fixed

  • A Wayland window no longer freezes when the compositor holds back its frame callback: under NVIDIA's driver a present in Fifo waited behind a barrier the compositor lifts only once the last picture is shown, and a compositor that counted the window on the wrong output (ShojiWM) never lifted it, so the window drew nothing again. The renderer now presents in a mailbox on Wayland when the driver offers one (the window still paces itself on the compositor's word, render.present_may_block), and host waits for that word at most 250 ms when it has a picture to show (FRAME_SHOWN_PATIENCE_MS), not at all after a key or a click; platform.frame_shown_waited_ms says how long it has waited.
0.221.02026-11-12 17:26 UTCrelease

Added

  • Buttons of any hue of the theme: button_icon(..., hue = .Green) fills a button with one of the hues every theme defines (hue(): accent, blue, purple, green, yellow, red, cyan, rose), its words and icon in ink_on of it. ink_on(ground): of the theme's page and text colours, the one that reads on a filled ground, made readable (WCAG AA). hue_color: hue() under a name a parameter does not hide. Lucide: KEY, KEY_ROUND, LOCK_KEYHOLE, LOCK_OPEN, SMARTPHONE.
0.220.02026-11-12 17:26 UTCrelease

Changed

  • A text area has the toolkit's scroll bar: a text_edit's bars look as a view's do (its thumb in the interface's greys, its track, held a step toward the text); they had a look of their own. ui.scrollbar_paint draws a scroll bar at any place, for a widget that scrolls itself.
0.219.12026-11-12 17:21 UTCrelease

Fixed

  • A shared-width button keeps its padding: the least width of button_icon with width = fill() now counts its label as the layout measures it (its text and its text padding), so a long label no longer runs against the button's right edge.
0.219.02026-11-12 17:17 UTCrelease

Added

  • ui.pointer_on: whether the pointer is on a box with nothing drawn over it there (the surface in front at the pointer is the box, one in it or one around it). A right click on a box that is not a button checks it: a box that a later sibling covers no longer takes the press of the one in front.
0.218.02026-11-12 17:07 UTCrelease

Added

  • ui.button_icon takes a width and an icon font: width = fill() shares the row as flex: 1 does (two buttons side by side, or one across the whole width), px(...) gives it a width of its own, the default stays as wide as what is in it; its content stays centred. icon_font draws the glyph in another font than State.icon_font (lucide_icons()).
0.217.32026-11-12 17:00 UTCrelease

Fixed

  • A box in a bordered box's corner takes that corner: a box laid against the border of a rounded box around it (a menu's search field, a header in a bordered card) now takes that box's corner, concentric, instead of its own rounding or a square corner: no second corner shows inside the first in any program.
0.217.22026-11-12 16:48 UTCrelease

Fixed

  • A menu's search field in its corners: the field at the top of a menu that searches takes the menu's own corners; it drew the rounding of an input inside them, a second corner.
0.217.12026-11-12 16:46 UTCrelease

Fixed

  • A large picture comes whole through the Wayland clipboard: a screenshot pasted from some programs came cut at 64 KiB ("image unreadable"). The pipe of a read is non-blocking on the reader's side only, so an owner that writes a picture in one go no longer stops at a full pipe; and the toolkit's own clipboard and drag sources write a flavour whole, on a thread of their own, whatever pipe the reader gave.
0.217.02026-11-12 16:43 UTCrelease

Added

  • render.preload_device can say when the device is made (done): a program whose loop sleeps wakes itself and opens its windows early, hidden.
  • A window knows which monitor it is on (platform.window_output_name), by the name screen captures give monitors: two monitors of the same size are told apart.

Changed

  • Screen captures are read faster, in the order asked: an upright screen is read a row at a time instead of a pixel at a time, and capture.set_pixel_order(s, .RGBA) gives frames a texture or a PNG encoder takes at once, with no pass of the program to swap their channels (Frame.order says which).
  • ui.slider_field follows the wheel and has − and + buttons: the wheel over the slider or the field moves the value a step, the buttons too (held: they repeat; Shift: ten steps).
0.216.12026-11-12 16:32 UTCrelease

Fixed

  • A matched label is centred as a label is: ui.matched_label (a name the filter lit, in a table's row) drew its line at the top of a row taller than it, while the labels beside it were centred. A rich paragraph of one line (max_lines = 1) is now centred across its box; its links, its selection and find's matches follow.
0.216.02026-11-12 16:28 UTCrelease

Changed

  • Every context menu can be filtered: ctx_menu_open searches by default (search = true): typing in an open context menu filters its items, as the menus that asked for it did. Pass search = false for a menu of a few fixed choices. State.menu_icon_font: the font of the menus' icons when it is not icon_font (a program whose menus use Lucide sets lucide_icons()).
0.215.02026-11-12 15:36 UTCrelease

Added

  • ui.scrollbar_gutter: the room a vertical scroll bar takes at the edge of its box (its width and margins), so that a list's content keeps clear of the bar it is drawn under when it scrolls.
0.214.02026-11-12 15:23 UTCrelease

Added

  • A slider with a field for the exact value (ui.slider_field): drag it, or type the number; Enter applies it, clamped and rounded to the step, with its unit after it.

Fixed

  • A window shown and raised at once comes to the front on Wayland: the activation now waits for its first picture, so a compositor that only activates windows it shows (ShojiWM) no longer leaves it behind the window in front.
0.213.02026-11-12 15:13 UTCrelease

Fixed

  • A resizable dialog's grip corner in the machined finish: the panel, its rim and its edge keep the square corner under the resize grip (they were drawn rounded over it); ui.machined_plate_corners and ui.machined_plate_frame_corners take a radius per corner.
0.212.02026-11-12 14:45 UTCrelease

Added

  • config.User_Writer: the preferences written off the loop. user_writer_save, once per round of a program's loop, serializes the user's values when they changed and hands them to the writer's thread, which writes the file; a newer text replaces one not written yet. user_writer_failed tells a failed write once, user_writer_stop writes the last changes and ends the thread. A disk write on the loop froze the window at each change.
0.211.02026-11-12 14:43 UTCrelease

Added

  • Tray menu shortcuts: an item of a tray menu can show its keyboard shortcut (Tray_Menu_Item.shortcut, "Ctrl+Print"): right-aligned in the menu on Windows, as dbusmenu's shortcut property on Linux for the panels that show it.
  • prefs_page: the standard settings: standard_register gives a program its look (theme, light or dark, finish, text size) and its place on the desktop (in the application menu, started with the session) with their words, and the page draws them with no code of the program's: the themes as cards (Options.themes), and global shortcuts that record keys and say what the system made of them (Options.shortcuts, shortcut_prefs; the words are shortcuts.status_text and problem_text). back_bar and escape_leaves show the settings in place of a program's main view, and desktop.apply makes the desktop what those settings ask.
  • Overlay windows: a program can open a transparent window above all others over one output (platform.open_overlay, host.Open.overlay), which does not move the other windows and takes the keyboard only when clicked. platform.set_input_region lets the pointer through to the windows below everywhere but the given rects (a screen recorder's frame and its bar of buttons). Wayland needs a compositor with the layer shell.

Fixed

  • prefs_page: no reset button on a default value: a setting the user set back to its default value no longer shows its reset button, nor the page's Restore defaults; a key combination counts as the same in other words ("ctrl+print" is "Ctrl+Print").
0.210.02026-11-12 14:33 UTCrelease

Changed

  • The resize bands of an integrated title bar are outside the window on Wayland: an invisible ring of 8 px around a free window resizes it, and the whole window is the app's: a scrollbar, a tab or a field along an edge no longer loses the pointer to a band. The compositor places, tiles and snaps the window without the ring. Maximized, full screen or tiled, a window has none; X11 keeps the bands inside.
0.209.12026-11-12 14:13 UTCrelease

Fixed

  • Text selected in a dialog is copied: Ctrl+C did nothing on text selected in a dialog, since a dialog holds the keys and the selection reads them after the dialogs are built. The selection now has its keys when it is in the dialog on top (Ctrl+C, Ctrl+Insert, Shift and the arrows, Ctrl+A), and Ctrl+Insert copies a selection everywhere.
0.209.02026-11-12 14:01 UTCrelease

Changed

  • Screenshots kept in WebP: toolbox.webp_encoder gives cwebp (the system's; libwebp's own build on Windows, fetched once and pinned), toolbox.webp_encode writes a picture as WebP and toolbox.image_width reads a PNG's or a WebP's width. site.build_images publishes a WebP of the site as it is, with its narrower copies made from it, and takes its encoder in Images_Options.encoder (quality is gone).
0.208.02026-11-12 13:53 UTCrelease

Added

  • A site's pictures in WebP: site.build_images turns the PNG screenshots of a built site into WebP at their own width and at narrower ones (cwebp), gives each <img> a srcset of them and points every link at the WebP. A screenshot weighs some twenty times less, with its text as sharp.
  • ui.typed_take: takes the first character typed in a build before a field gets it, for a key that is the program's while a field holds a given text (Space in an empty filter opens a preview, and the field never shows the space).
0.207.12026-11-12 13:39 UTCrelease

Added

  • An image asked from the clipboard comes without a wait: platform.clipboard_request(w, .Image) answers with the image as its owner holds it, still encoded (Clipboard_Reply.data and .mime: PNG, JPEG, BMP, or a Windows DIB as image/x-dib), which platform.clipboard_image_decode turns into pixels on any thread. On Linux the read stops at the first type that came.

Fixed

  • An MP4 of an odd width or height is written: a video track whose side is odd took the first H.264 packet as the wrong size, since 4:2:0 codes that side one pixel larger; it is accepted now, and the track keeps the true size.
0.207.02026-11-12 13:10 UTCrelease

Added

  • gt:h264 encodes with NVENC: on a system with NVIDIA's driver (520 or later), Linux or Windows, open takes the GPU's encoder through NVENC first (Backend.Nvenc, one of HARDWARE_BACKENDS), where VA-API does not encode; another backend takes over when NVENC does not open.
0.206.02026-11-12 12:30 UTCrelease

Added

  • A setting's own title: config.Def.title gives the words a settings page shows when the preference's name does not make good ones (an acronym, a phrase); empty, the title is made from the name as before.
  • gt:h264, H.264 with the system's encoders: a program encodes screen frames to H.264 with no ffmpeg: VA-API on the GPU, else openh264, on Linux; Media Foundation's encoders on Windows. The libraries are opened at run time; available says which there are.
  • gt:ocr, the text in a picture: a program reads the text of a screenshot or any picture, as lines and words with their places, with what the system has (Windows' own text recognition, Tesseract on Linux). Light text on a dark theme and small screen text are read too; a system without an engine says so instead of failing to start.
  • gt:mux, MP4 and WebM files: a program writes encoded video and audio packets (H.264, HEVC, VP8, VP9, AV1, AAC, Opus) into an MP4 file (moov first, moov last, or fragmented so a crash leaves a playable file) or a WebM file, in memory, in a file or through a writer procedure. H.264 from the encoder in Annex B, and AAC in ADTS, are converted. A port of Mediabunny's muxers (MPL-2.0).
  • http.request: a program sends any method (POST, PUT, PATCH, DELETE...) with headers and a body, and reads the answer's headers and the address that answered; http.multipart and http.form_urlencoded build the bodies of forms, a file upload included.
  • gt:capture streams, for screen recorders: capture.stream_open keeps the capture of an output, a window or a region of the desktop open, and stream_next gives a frame each time it changed, at most at the rate asked, with its timestamp, the pointer drawn in where the system can (Wayland's ext_image_copy_capture_v1 and zwlr_screencopy_v1, X11, Windows.Graphics.Capture and Desktop Duplication). A region is cut with no allocation per frame (capture.crop_into).
  • More keys in a program's desktop entry: desktop.Identity.entry_extra writes keys of the program's own into its .desktop file, such as the protocols KWin gives it (X-KDE-Wayland-Interfaces).
  • Restore a whole page of settings: a settings page built by gt:prefs_page shows a "Restore defaults" button beside its title while one of its settings is changed. A program can also say a setting's state plainly under its line (Options.status) and show its own content under a page (Options.page_foot).
  • gt:shortcuts, global shortcuts: a program names its actions and the keys it would like; on Linux the desktop portal binds them (KDE, GNOME, Hyprland, ShojiWM's desktop) and says which keys each one got, on Windows RegisterHotKey. Print Screen is a key now (platform.Key.Print), and a shortcut of its own without a modifier.
  • png.texts, png.with_texts: the tEXt chunks of a PNG file read and written without decoding its pixels.
  • desktop.thumbnail: the system's thumbnail of a file (a PDF's page, a video's frame, a document), for a worker: on Linux the freedesktop.org cache in ~/.cache/thumbnails and the thumbnailers of the desktop (made on a miss, kept in the cache, failures remembered), on Windows the shell's (IShellItemImageFactory). thumbnail_cached reads the cache only; thumbnail_store keeps a program's own picture in it (Linux).

Fixed

  • A window closed no longer ends the capture session on ShojiWM: when KDE's window management protocol said a window was gone, gt:capture asked the compositor to destroy its object, which ShojiWM refused with a protocol error that closed the connection.
  • A resize costs less on Wayland: the swap chain was reconfigured for every size the compositor asked for, also those no picture was drawn at (while the last picture waited to be shown), about three reconfigures for each picture shown; it now takes the window's size only with a picture drawn.
0.205.02026-11-12 10:48 UTCrelease

Added

  • gt:qr reads QR Codes too: decode_rgba and decode_gray find a code in a picture (any scale, turned by quarter turns, dark on light or light on dark) and return its data; decode_modules reads a matrix of modules. Damaged codes are corrected as far as their level allows.
  • platform.clipboard_request: reads the clipboard's text or files without waiting for the program that owns it. The call returns an id at once; the answer comes in a later poll_events as a Clipboard_Data event (Event.clipboard: the text, the paths, whether they were cut). On Linux the window's loop reads another program's clipboard (a Wayland pipe it polls, X11 selection events) and gives up after 2 s of silence: a slow or hung owner no longer freezes a paste.

Changed

  • A paste in a text field no longer waits for the clipboard: Ctrl+V, Shift+Insert and a field menu's Paste in ui.line_edit, ui.text_edit and a menu's search ask the window's clipboard with platform.clipboard_request, and the text is inserted in a later build, in one undo step, if the field still has the focus. A slow or hung clipboard owner no longer freezes the window. New: ui.paste_request, ui.paste_answer, ui.field_paste_answer. ui.field_key, ui.field_paste and ui.field_menu take the key of the field's widget (owner). ui.window_clipboard_get is removed: leave Build_Params.clipboard_get nil to paste from the window's clipboard; a program's own clipboard_get is read at the request and its text given in the next build. A program that reads the window's events before the ui passes the Clipboard_Data events on to begin_build.

Fixed

  • Shift+Insert pastes in a multi-line text too: a ui.text_area took only Ctrl+C, Ctrl+X and Ctrl+V; it now takes Ctrl+Insert to copy, Shift+Delete to cut and Shift+Insert to paste, as a line edit and a terminal do.
0.204.02026-11-12 09:36 UTCrelease

Added

  • term: a terminal's grid as a widget, over a screen source of the program's (term.Source: rows of cells with dirty flags, the cursor, the scrollback, a selection, the bytes sent back). Rows are drawn from a cache built again only for the rows that changed; a selection is made with the pointer; keys and the mouse become bytes (xterm_key for a source without an encoder); the scrollback is under the toolkit's scroll bar; each grid has its own zoom. The widget emulates nothing.
  • ui.Deferred: something done once things are quiet, by the toolkit's clock: asked again it moves back, never later than its cap after the first ask (deferred_ask, deferred_take, deferred_in_ms).
  • remote: how the reading of a value from a server stands (idle, loading, ready, refused, failed), with a ticket that drops the answer of a reading given up.
  • markdown: Markdown in a window: headings, paragraphs, lists, quotes, rules, tables that scroll sideways, fenced code highlighted by syntax, and inline emphasis, code and links, each block a selectable ui.rich_paragraph. A Doc the program keeps reads its text only when it changes (a text that grows in place: only its last block), and keeps each block's runs, highlight and table widths; a Config gives the faces, sizes and colours, and what a link, a code block, a table's frame and its corner do.
  • diff: a unified diff read into its lines once (parse, Doc: read again only when its text changes), with their numbers, its hunks and what changed in a changed line; two texts compared (between); and its rows (lines_view, view: stacked or split, only the rows in view built), in the theme's new diff_added / diff_removed / diff colours and the code's colours.
0.203.02026-11-12 09:26 UTCrelease

Added

  • gt:gif, an animated GIF encoder for screen recordings: BGRA frames in, a GIF89a file out, in memory or through a writer. Each frame is only the rectangle that changed, with transparency; an unchanged frame is folded into the last one's delay; a frame's colours are kept exactly when they fit in 256, else a median cut.
  • capture on Windows: the monitors and their pictures (DXGI Desktop Duplication, GDI where it is unavailable), every monitor in one picture at the highest scale, the windows a screenshot tool lists (front to back, framed without their invisible borders and shadow, with their executable's name), and a window's own picture through Windows.Graphics.Capture, even when other windows cover it.
  • gt:capture, the screens and the windows as pictures, for a screenshot tool or a screen recorder. On Linux: Wayland's ext_image_copy_capture (outputs and windows) or zwlr_screencopy, else the Screenshot portal, else X11. Where the windows are, on Wayland: COSMIC's toplevel info protocol (COSMIC, ShojiWM), Hyprland's and sway's IPC, or KDE's window management protocol (KWin); on X11, the X server. Every output in one picture at the highest scale, a region cut from it, the window under the pointer.
  • ascii.lower_run, ascii.index_any_byte: the ASCII run at the start of a text lowered, and the first byte of a small set (or a control character, or a byte >= 0x80), 16 bytes at a time with core:simd, the same bytes as the scalar loops.

Changed

  • ui.rank folds a list once: a cache (a ui.Fuzzy_Cache) keeps the query and each item's texts folded from one call to the next, so a list ranked every frame folds again only what changed. The matchers are now ui.rank_palette (the default) and ui.rank_fuzzy, in the place of palette_match and fuzzy_match; a program's own matcher gets the query folded and folds its texts in the cache. palette_entry_cached takes the first of its three slots.
  • The fuzzy matching folds once: ui.fuzzy_needle, ui.fuzzy_text and ui.palette_entry fold a query and a text once, and fuzzy_find, fuzzy_score, fuzzy_words, fuzzy_typos and palette_match take them as well as strings, with the same results. A ui.Fuzzy_Cache keeps them from one frame to the next: the palette folds its query once per query and each command once while it stays the same, where it folded both for every command, up to five times, every frame. The fold of the ASCII runs goes 16 bytes at a time.

Fixed

  • A text that fits its box stays on one line: a tooltip as wide as its text broke its last letter onto a line of its own ("C:/code/project_" then "0"), because the wrap added the glyphs' advances one by one, without their kerning. A paragraph that fits measured whole now stays one line.
0.202.02026-11-12 08:09 UTCrelease

Added

  • cli.parse: reads a line cli.check accepted by the same table of options, once: each option given, in order, with its value (a separate value joined to it). cli.value gives the last value of an option, cli.values every value of a repeated one, cli.has whether it was given.
  • ui.rank: filters a list the way the palette does: each item matched against the query (palette_match, fuzzy_match or a program's own matcher), the hits kept with what lights in their labels, the best first, equal scores in the list's order. An optional bonus lifts a hit (how often the user chose it). The palette ranks its commands with it.
  • timefmt: times as a person reads them, in pure Odin: duration ("4m 12s", "1h 03m", "2d 05h"), age ("now", "3m", "2h", "5d", "1w"), clock ("14:32", "2:32 pm", with seconds on request), date ("Nov 10") and local_day. The local clock takes the machine's offset as a parameter: no procedure makes a system call.
  • store: a program's small files of keys and values (key<separator>value lines, the files a program already has load as they are), read once at the start, kept in memory and written later on a worker of their own, once the changes rest, through a temporary file renamed over them: open, get, set, remove, replace, list, flush, close. A Writer does the same for a file the program formats itself. fsx.write_atomic and fsx.write_parts take private: on POSIX the file is readable by its user only from its creation.

Changed

  • Preferences can be written off the interface thread: config.serialize_user builds the text of the user's file on the loop and config.write_user_file writes it on any thread, so a slow disk does not stop the interface; config.save_user does both at once, as before. Prefs.user_version replaces Prefs.dirty: it counts the changes of the user's layer, and a program saves when it differs from the version it last wrote.
  • A long list costs nothing when it does not change: a vlist makes its rows' offsets again only when its ids or a measured height change, so a frame of a list of 100 000 rows that changed nothing does no pass over them. vlist takes an ids_version (the program's count of the changes of its ids) to skip even the comparison of the ids.

Fixed

  • A slider's whole track shows: the part of a slider's track that is off is a tint of the text, as a switch's is, so it shows on every surface; on a dialog of a theme whose colour was the track's, only the lit run showed, and the slider looked a few pixels wide.
  • The palette's last line is whole: the palette's list holds a whole number of lines at any size of the dialog, so its foot line no longer cuts the last command in half.
0.201.02026-11-12 02:23 UTCrelease

Added

  • platform.set_caption_menu_app, ui.caption_right_clicked, platform.system_menu_available: an app can open its own menu on a right click on the empty part of an integrated title bar. When an app sets this option, Windows and Wayland give that click to the app instead of opening the system's window menu (X11 always does). ui.caption_right_clicked tells the app that the click came and where. platform.show_system_menu still opens the system's menu, and platform.system_menu_available tells whether there is one (Windows, Wayland).
  • ui.reorder_slot_sized: the place of a dragged item among items of different sizes. The item takes a neighbour's place as soon as its edge is a set share inside that neighbour (half by default), with an optional dead band so that it does not swap back and forth; a narrow item no longer has to pass the whole of a wide one.
  • desktop.type_name: what the system calls a type of file: "Plain text document", "PNG image", from shared-mime-info on Linux and from the shell on Windows, for a file manager's Type column.
0.200.02026-11-12 02:02 UTCrelease

Added

  • platform.toplevels, toplevel_activate: the session's windows, other programs' too (their app id, title, focus, minimized), and one brought to the front: Wayland's wlr-foreign-toplevel-management (sway, Hyprland, niri, labwc, ShojiWM); none elsewhere yet.
  • List_State.no_typeahead: the letters typed are the program's: a list with it does not take the letters typed for its type-ahead, so a filter given them by type_to_field gets them while the list has the keyboard (a file manager's list).

Fixed

  • A window whose picture the compositor has not shown yet keeps its timers: a program's timed work (a sample, a poll) goes on while its window is on a hidden workspace, or on an output with nothing else to draw; it stopped until the compositor showed the window again.
  • An empty state's icon is large: ui.empty_state drew its icon at the text's size, a small mark over the title; it is drawn at 2.4 times the text's size now.
  • A dialog holds the keys of the list behind it: a list that had the keyboard took Enter, Escape and the arrows while a dialog was open over it, so an Enter that answered the dialog also opened the row behind. A list now reads no key while a dialog it is not in is open.
0.199.02026-11-12 01:22 UTCrelease

Added

  • ui.empty_state: what a view shows when it has nothing to show: in the middle of the view, an icon in the weak colour, a title, a note, and a button for each thing that can be done about it (the action clicked is returned).

Fixed

  • A box in a rounded corner takes that corner: a title bar's background, a header or any box that fills the corner of a rounded box around it (a dialog, a card, a menu) is rounded there too (box_drawn_radii): its square corner showed outside the rounded one. And every widget's own drawing (rad, the colour pickers, the tiles, the floating panels' clip) is square under 3 px, as the boxes are (radius_drawn).
0.197.42026-11-12 01:11 UTCrelease

Fixed

  • The clipboard with no window on Windows: get_clipboard and set_clipboard given no window read nothing and write nothing, as on Linux; they crashed.
0.198.02026-11-12 01:01 UTCrelease

Added

  • process.Signal: Quit, User1, User2 (SIGQUIT, SIGUSR1, SIGUSR2): what a program's "Send signal" menu offers besides the others.
  • dialog_top_draw: a strip across the top of a dialog (a title, a search field), as a box's custom draw: its bg (else a field's darker background), the dialog's top corners as drawn (DIALOG_RADIUS_EM), inside its rim, a line under it. The command palette's field uses it.

Fixed

  • A corner rounded at under 3 px is square: with a program's little rounding a dialog's corner was rounded at two pixels and a half, and its antialiasing made a blob outside the corner of its 1 px edge (ROUND_LEAST_PX).
  • A raised panel's frame over what is in it (machined and edged finishes): a dialog's lit rim and edge were drawn under its content, so a title's background or a tab's line covered them along one side and not the next. The frame is drawn after the panel's children (machined_plate_frame).
  • A window at rest sleeps again on Wayland: since 0.196.0 the compositor's word that it showed a picture asked for a repaint each time, so a window at rest drew a new picture at every refresh, for ever (a core kept busy). The word now asks for a repaint only when a picture waited for it (platform.frame_shown_held, which host calls); a covered window still draws its picture when it is shown again.
0.197.32026-11-12 00:52 UTCrelease

Changed

  • A scroll bar held stays grey: its thumb a step further toward the text than under the pointer, not the accent (too much accent in the window).
0.197.22026-11-12 00:52 UTCrelease

Added

  • ui.confirm: the question before an act that is not taken back: a title, a note, what it acts on a line each (the others counted), Cancel and the act's button in the danger colours; Enter answers what is safe (Cancel, or the act with enter_confirms) and its button says "(Enter)"; it answers .Confirmed or .Cancelled. Its own words are in Confirm_Labels.

Changed

  • A scroll bar in the interface's colours: its thumb a surface's border at rest, the weak text under the pointer, the accent while held, its track the theme's track, with a rim a little toward the text (every finish but Flat). The text's light, up to 55 %, made it near white on a dark theme.
0.197.12026-11-12 00:46 UTCrelease

Changed

  • A scroll bar's thumb looks like a thing to take: a rim a little stronger than its face, and three grip lines across its middle cut in the background's colour (on a thumb long enough to hold them), in every finish but Flat.
0.197.02026-11-12 00:39 UTCrelease

Added

  • scrollbar_under(box, point): which bar of a box takes a press at a point (the one shown, a little wider toward the content), for a program that hears the pointer before the interface and leaves that press to the bar (a terminal's grid in a box that scrolls).

Fixed

  • A menu's search is a field and the menu holds still: what is typed in a menu opened with search is edited with a field's keys (ui.field_key, which line_edit uses too): Ctrl+A, Backspace on the selection, Ctrl+Backspace for a word, the caret moved by the arrows once something is typed, a paste. While it filters, the menu keeps the corner and the width of its first layout: it no longer narrows at each letter or moves from under the pointer.
0.196.32026-11-12 00:20 UTCrelease

Fixed

  • label_fuzzy's matches are readable: lit on the theme's match_bg, as a list's and the palette's are; 30 % of the accent, blended in linear light, made a chip too light for the text on it.
0.196.22026-11-11 23:56 UTCrelease

Fixed

  • The command palette's field strip has the dialog's corners: it was rounded at the theme's radius whatever the program's rounding, so a dialog with square or little rounded corners showed a second, rounder corner inside its own. box_drawn_radius gives a custom draw the corners a box is drawn with.
0.196.12026-11-11 23:48 UTCrelease

Changed

  • flate and png.decode are faster: flate.deflate takes a quarter to a third less time and flate.inflate gives 1.3 to 2 times its rate, for the same bytes. png.decode of an 8-bit RGBA picture takes less than half its time. render.readback_poll of a linear target moves opaque pixels 4 at once, as it does for an sRGB target.
  • Reading pixels back is faster: a capture of the frame and render.readback_poll of an sRGB target move opaque pixels 4 at once (about 5 times less time for the capture, about 20 times for an opaque readback). The pixels are the same.
  • png.encode and flate.deflate are faster: .Small writes a 1400 x 925 screenshot in about 30 ms where it took about 95 ms, and flate.deflate takes about half its time on pictures. The filters of a row and the bytes of a match are compared 16 at once (SSE, NEON). A row with bytes of value 128 can take another filter than before: such a file differs by a few bytes, and reads back to the same pixels.
0.196.02026-11-11 23:26 UTCrelease

Fixed

  • A window the compositor does not show no longer freezes its program (Wayland): a picture presented in Fifo waited for the compositor's word that it showed the last one, which a covered window never gets, so a program whose main window another of its windows covered whole stopped answering. A window now presents a picture only once the last one was shown (platform.frame_shown_pending, frame_shown_ask); while it waits it reads its input and draws nothing, and the word asks for the next picture.
0.195.12026-11-11 22:54 UTCrelease

Changed

  • The command palette as in opencode native: a magnifier before its field and the number of results at the end of the line, a carved line under the field, and the selected line sunk in a well with a bar of the accent at its left, its text in the theme's own colour (it was a raised face of the accent, the text on it hard to read).

Fixed

  • What a search found is readable: it is drawn in the text's own colour on the tint of the accent (theme match); the accent's colour on its own tint read badly, worst on a dark theme. This is true in the palette, a list, and a table's filter.
0.195.02026-11-11 22:34 UTCrelease

Added

  • A table lights what its filter matches: each word of Table_Layout.highlight in the cells, in the theme's match on match_bg; table_apply sets it to the filter, a program that builds its rows sets it.
  • A table's header menu (table_menu_items): the right-clicked column back to its own width and unsorted (table_column_reset, Table_Layout.menu_column), the rows unsorted, the columns shown, the default columns; its words in Table_Menu_Labels.

Fixed

  • A table read again stays where it was scrolled: table_apply brought the selected row back into view at each new reading with no filter, so a list refreshed every second could not be scrolled away from it. Only a filter cleared brings it now.
0.194.02026-11-11 22:28 UTCrelease

Added

  • palette_match: how a palette ranks one entry, for a program with a palette of its own: its label whole or at the starts of its words, then its tags, then its group, then the same with a slip or two (fuzzy_typos); its score and what lights in its label. The command palette uses it.
0.193.02026-11-11 22:15 UTCrelease

Added

  • fuzzy_typos: a word typed with a slip still finds its word (a letter missing, one too many, one for another, two swapped; none in a word of three letters, one up to six, two beyond), whole or its beginning: "Qestart pencode" finds "Restart opencode native". The command palette tries it after every exact match, on the label then with the tags, and lights the words it found.
0.192.32026-11-11 22:08 UTCrelease

Fixed

  • The command palette keeps its edge along its field: the field's darker strip began on the dialog's lit rim (machined and edged finishes), so the dialog's edge showed only at its corners. The strip now begins inside it.
0.192.22026-11-11 22:05 UTCrelease

Fixed

  • All of a resize grip's bevel is its corner: the pointer on the bevel's upper part, past the corner's size, showed the bottom or the right edge's cursor and took that edge; it now has the corner's cursor and resizes from the corner (a dialog's grip, a floating panel's).
0.192.12026-11-11 22:03 UTCrelease

Changed

  • The command palette's field has the darker background of a field: still from edge to edge, with no frame of its own, its strip now reads as the place to type. Its top corners follow the dialog's.
0.192.02026-11-11 21:56 UTCrelease

Added

  • A dock's panel in a window of its own (Dock_Options.windows): the menu's *Open in a window* lets the panel go as a close does, Dock_Result.windowed names it, and the program opens the window and builds the panel there; dock_add brings it back when the window closes.
0.191.12026-11-11 20:50 UTCrelease

Fixed

  • A strip_grid line scrolls with a mouse's wheel: over a line that is cut, the wheel turned the usual way scrolls it sideways (it went to the page, and only a wheel turned sideways or a touchpad moved the line). A line that holds all its cells leaves the wheel to the page.
  • A box that fills its parent fills it under a box that scrolls sideways too: under a box with Allow_Overflow_X (a table's titles, its rows), a fill() kept the size its parent had before an ancestor shrank, the window's width: a table beside a sidebar was as wide as the window and scrolled for nothing.
0.191.02026-11-11 20:50 UTCrelease

Added

  • tk_changelog.with_badge: a README's version badge (shields.io) and its alt text set to a version, for a program's set_version (it was the toolkit's own tool's).
  • Table_Column.descending_first: a column of text sorted from the largest at its first click, as a number is (a date: the newest first).
  • A table's header holds the program's own pieces: Table_Header_Options builds a lead before the first title (a box that checks every row) and a piece in each title (a filter's funnel, shown while the pointer is on it); Table_Column.unsorted marks a column whose title sorts nothing (a count beside the sizes).
  • In the edged finish a dock's stack is a window: its strip is a title, the accent fading out from its left, lit where the keyboard's focus is and dimmed toward the bar elsewhere (caption_face(..., lit)).
  • section_header(..., inline = true): as wide as its words, for a header in a row with other things (the keys a panel answers, a button).
  • strip_grid: a strip that opens into a grid: its cells on one line that scrolls sideways; "Show all" under it lays them out as a grid wrapped to the width, "Show fewer" folds them back. The button is there only when the line does not hold them all.
  • Palette_Options: a program's palette shows the commands run last on top, puts a command first while searching (an alias typed whole), shows its own text of each command's keys (its user's keys, a sequence) and a foot line; Ctrl, Alt or Shift with Enter chooses too (Command_Palette.chosen_mods), for what else the program does with the command.
  • cli: a program's command line from one table of its options: cli.check answers --help with the help made from the table and --version with the version, and refuses an option the table does not have (why, then the help; exit code 2), so a typo or a guess no longer starts the program as if nothing was said. Options take a value (--session=<id>), an optional one (--settings[=<n>]), one in the next argument (--pref <name=value>), or are hidden (what tools pass). The help lists the options by group, then examples, the environment the program reads, and its files.

Changed

  • A table's tinted cell is square (table_cell with bg), whatever radius the style has: it is part of its row, as the rows are.
  • The Console theme is named Kernel: the name of what it comes from. A program that stored "Console" finds no theme of that name.
  • A row is square: a row of a list, of a table or of a menu has no rounded corners, whatever radius the style around it has: a selected row's fill runs from edge to edge, row under row.
  • An offscreen renderer does not pre-warm (WebGPU): it makes a pipeline when it first draws with it. Pre-warmed, each one compiled all eight pipelines on a thread and destroy waited for them, used or not: every test session paid them, and on WARP the slowest CI packages spent most of their time there (subpixel_slug and scenarios: 48 s to 30 s on a GPU). A window's renderer still pre-warms: its start hides the compiles. TOOLKIT_WGPU_PREWARM is gone.

Fixed

  • A wheel turned up past the top no longer glides over what comes above it: content inserted above the view while it heads for a top it was stopped at (a page read before the first, a lazy column) carries that stop along, as any other place. A view sent to the start as such goes there with the new view_top (Home), and still ends at the start whatever comes above.
  • A test run by unwatched.run keeps its name in build/session/: its folder had the anonymous body's procedure name ("pkg::test$anon-pkg:file.odin:123"), so a tool that looks for a test's pictures by its name found none.
  • changelog.new_fragment with no root writes in the current folder: it wrote /changelog.d, at the root of the disk, and refused the fragment it could not read back ("it is empty").
0.190.22026-11-11 17:49 UTCrelease

Fixed

  • A dialog closed by its own button gives the keys back at once: the first key after the click (Escape, a shortcut) went nowhere when no frame came between them, held by a dialog no longer there (0.189.1).
0.190.12026-11-11 17:29 UTCrelease

Fixed

  • release.notes and release.ship find a changelog named CHANGELOG.md without a folder: they looked for it at the root of the disk (0.190.0).
0.190.02026-11-11 17:28 UTCrelease

Added

  • gt:changelog: a project's CHANGELOG made of fragments, one file per change in changelog.d/, as the toolkit's own. release.ship now assembles the fragments into the version's section and deletes them, instead of renaming [Unreleased]; it refuses a malformed fragment and a release with nothing in it. A hand-written [Unreleased] section is assembled too, after the fragments, and removed. release.changelog_release and release.changelog_section are gone: changelog.assemble and changelog.section replace them.
0.189.12026-11-11 17:18 UTCrelease

Fixed

  • An open dialog holds the keys: code built outside it gets no key from key_press, key_take, key_pressed_peek or command_pressed while it is open. A program reads its keys before it builds its dialogs: Escape in a dialog opened from the palette closed the window behind it instead. ui.set_keys_behind_dialogs(&state, true) turns it off; ui.dialog_open() says whether one is open.
0.189.02026-11-11 17:05 UTCrelease

Added

  • ui.key_held(key): whether a key is held now, from its press in the window to its release, by its own events (not by the modifiers' state, which a compositor may leave stale); none once the user left the window. Ctrl held alone, for a monitor that stops its refresh while it is.
0.188.02026-11-11 16:37 UTCrelease

Added

  • A table's columns moved by their titles: a title dragged sideways moves its column (the first stays first), a line in the accent's colour where it will go; Table_Layout.order, table_layout_move, table_order_text / table_order_apply to keep the order (columns added since stay where they are); Table_Header_Events.moved, Table_Events.moved.

Changed

  • A table's third click leaves its rows unsorted: the data's own order (TABLE_UNSORTED, none in table_sort_text), not the table's first sort; Table_Layout.default_sort and default_descending are gone. Table.order (the rows shown) is Table.rows.
0.187.22026-11-11 16:21 UTCrelease

Fixed

  • Linux: a portal that answers "no preference" for the colour scheme no longer makes the system light: the GTK settings (gtk-application-prefer-dark-theme, a dark GTK_THEME or theme name) decide then, as with no portal. A session whose portal has no backend for it answers 0; a program following the system showed its light version, and the machined finish flat.
0.187.12026-11-11 15:39 UTCrelease

Fixed

  • ui.preview fits its content from its very first frame: what fits was worked out from last frame's size of the box, none for a box new this frame, and a picture showed at its pixels, too large and off centre, for a frame.
0.187.02026-11-11 13:38 UTCrelease

Added

  • A title bar in the finish shown: caption_face(dc, r, top, bottom) paints a title bar's face: in the edged finish the accent fading out from the left with its hairlines (the console's window), in the machined one a shaded face, flat one colour. caption_ink(c) is the colour words take on it. In the edged finish the window's close button is a red block, at rest too.
  • The system's title bar, by choice: platform.system_title_available(w) says whether the system can draw a window's title bar (Windows, X11, a Wayland compositor with server-side decorations such as KDE; not GNOME). A program offers it as a preference and switches with set_integrated_title at any time; ui.window_buttons draws nothing while the title bar is the system's. The test sessions take integrated_title.
  • The edged finish and the Console theme: Finish.Edged draws the machined reliefs crisp, nothing blurred: a dark hairline around a face, a lit line along its top, a shade along its bottom; a well with dark lines under its top and a lit lip; a panel (a dialog, a menu) outlined all around in its border's colour, lit; square corners, except what is round by its shape (a radio, a switch, a slider's knob: shape_rad). Console (blue black, the hues of a console) is made for it. With them, pieces of a dense dashboard: section_header (a stripe, a title in capitals in its hue, a note, a value), tile (a tile of colour with its words), stacked_bar (a bar cut in parts with their words), title_strip (a title on the accent fading out, a red block that closes), hue(.Cyan) (the hues of the theme shown) and relief_face.

Fixed

  • A renderer that ends waits for the GPU: render.destroy lets the GPU finish what it was given first (Direct3D 11: an event query; WebGPU: a poll that waits). An offscreen frame is only flushed, and a renderer released while WARP still drew it could end the process.
  • A widget's bold is the family's own (a toast's title, a section's name, segmented in words): ui.styled_face(face, bold, italic) (styled_face_of(state, ...) outside a build) gives the face the program declared for that family, else the system's family, else a simulated one. The widgets asked font.styled_face, which simulated the bold of an embedded face: its strokes thickened by an algorithm, the bar of an e lost its join at small sizes. rich_set_faces is now set_family (it serves every widget, not rich text alone), and State.rich_faces is families.
  • fsx.read_all never gives the start of a larger file: it read between two stats of the name that agreed, and on Windows a file replaced twice within one tick of the clock had the size and the time of the first, so the first part of the larger one between came back. It reads through one open file now (its size and its bytes of that file, whatever takes its name meanwhile). The test's writer gives every file one time, so it fails on every system without the fix.
0.186.02026-11-11 12:46 UTCrelease

Added

  • prefs_page.update_badge: the Updater's state as a button of a program's status bar: Install, Downloading, Restart to update. Machined: wells and keys are filled shapes from the outside in (the lit rim, the dark edge, the surface): at a small scale their rings were strokes side by side, broken in the curves, their greys changing along them.
0.185.02026-11-11 12:25 UTCrelease

Added

  • prefs_page.Options.version: the program and its version ("Papier 0.15.0") at the bottom of the settings' pages.
0.184.02026-11-11 11:53 UTCrelease

Added

  • What a search found, lit: a line of a filtered list shows the parts that match in the theme's match colour on its match_bg (ui.word_ranges, ui.match_runs, ui.matched_label). The palette, a menu that searches and a settings page's search do it.
0.183.02026-11-11 11:30 UTCrelease

Added

  • Tags: config.Def.tags and ui.Command.tags, other words a setting or a command is found by ("colours" and "dark" for a theme, "exit" for Quit). The settings' search reads a preference's tags; the palette a command's, a match of them after one of its label; prefs_page.palette_commands gives a setting's line its preference's tags.
0.182.02026-11-11 10:55 UTCrelease

Added

  • The settings in the command palette: prefs_page.palette_commands gives one command per preference the pages show (its title, under Settings · <page>), and prefs_page.show opens the page on the one chosen, alone, its page underneath.
0.181.02026-11-11 09:12 UTCrelease

Added

  • A toast is as tall as its words, and may have a title: its text goes on to the next lines inside it instead of past its edge, and the stack places each by its height. toast_titled(kind, title, body, action, user): the title bold on its line (cut with "…"), the text under it.
  • segmented(look = .Text): a segmented control in words, as wide as they are, separator between them ("All / Active 2 / Done 1"); the chosen word bold and underlined, the others weak until the pointer is on them.

Fixed

  • A thin ring's rounded corners are as heavy as its sides: blended in linear light, the pixels a curve cuts were paler than a browser draws them (a 1 px border looked thinner in its corners). draw.rect and draw.rect_corners take the backdrop a ring is drawn over; its edge then blends as in sRGB values. A box's border gives its own: the colour under it (box_under).
0.180.32026-11-11 09:00 UTCrelease

Fixed

  • ui.preview's bar is as wide as what it holds: at a fixed width its last button went past its edge.
0.180.22026-11-11 08:52 UTCrelease

Fixed

  • A segmented control's labels are centred on their key: they were laid out on the whole track while the key slides on the track less its padding, each a little further right of its key than the one before.
0.180.12026-11-11 08:45 UTCrelease

Fixed

  • ui.preview's bar shows its zoom in percent: the label had a fill width beside the buttons and got none of it.
0.180.02026-11-11 08:38 UTCrelease

Added

  • ui.preview and ui.preview_image: content (a picture, a page, a diagram) that fits its box, then zooms with the wheel around the pointer, moves with a drag, goes to its pixels and back with a double click, answers +, −, 0 and the arrows; a bar over its corner (Preview_Options.buttons) shows the zoom and −, +, 1:1, Fit. docs/preview.md.

Changed

  • Machined: a segmented control is a slot with a key in it: the track carved in the surface (machined_well), grooves between its segments, the chosen one a raised metal key, in the text's colour, its corners rounded. A switch's channel and knob lie on whole device pixels, and a well's surface stops inside its edge: a lit colour (a switch that is on) no longer spills onto the rim around the opening.
0.179.02026-11-11 08:29 UTCrelease

Changed

  • Machined: a segmented control is a slot with a key in it: the track carved in the surface (machined_well), grooves between its segments, the chosen one a raised metal key with a small light of the accent under its label (machined_light), in the text's colour. A switch's channel and knob lie on whole device pixels: their 1 px rims no longer step along the curves.
0.178.02026-11-11 08:09 UTCrelease

Fixed

  • A check box or a radio whose label wraps had its mark at the top of its row, above the middle of its first line (Setup's "Shortcut on the Desktop"): the mark is now centered on the first line, as on a row of one line.
0.177.12026-11-11 01:45 UTCrelease

Added

  • Box_Flag.Scrollbar_None: a scroll box that shows no bar (a table's titles, which follow the rows' sideways scroll).
0.177.02026-11-11 01:42 UTCrelease

Changed

  • Tables as in a file manager: a column's rule is at its right edge and resizes that column, the columns after it move (the fill column takes its width at the first drag; the table then scrolls); a third click on a title comes back to the table's own sort (table_sort_click). A horizontal scroll bar for every box that scrolls sideways (View_Scroll_X), along its bottom edge.
  • The palette's field is flush with its edges, on a strip with a line under it; the commands' keys stay clear of the scroll bar.
0.176.12026-11-11 01:27 UTCrelease

Fixed

  • The command palette no longer crashes on a search that keeps nothing: it brought line 0 of an empty list into view.
0.176.02026-11-11 01:15 UTCrelease

Fixed

  • syntax.guess finds Odin written as proc name(...), with no :: nor := in it.
0.175.12026-11-11 01:11 UTCrelease

Fixed

  • A second window never waits for the screen (render.set_present_wait, set by host for every window but the first): on Wayland a Fifo present waited for a frame callback the compositor never sent to a window it did not show, and froze every window of the thread. Its frames now go out in a mailbox (else with tearing).
0.175.02026-11-11 01:02 UTCrelease

Added

  • Code in the theme's colours: ui.code_runs (runs for rich_paragraph) and ui.code_highlight (a text_edit's highlight) colour tk_syntax's classes with the theme's new entries code_keyword, code_string, code_comment, code_func and code_type. A Palette carries the theme's other hues (blue, purple, cyan, rose).
0.174.02026-11-11 00:54 UTCrelease

Added

  • syntax.guess: the language of a text with no name (a copy, a paste): its #! line, JSON, or the language whose signs and keywords it holds the most of, only for a text with the punctuation of code (prose, addresses and paths are none). SQL (Language.fold_case: keywords in any case).

Changed

  • Middle-click autoscroll is on by default: every scroll region of every program (scroll_y, lists, tables, a vlist) takes a click of the wheel and scrolls by the pointer, as in the browsers. A program whose middle button does something else calls ui.set_autoscroll_enabled(&state, false).
0.173.02026-11-11 00:53 UTCrelease

Added

  • line_edit(clearable = true): while it holds text, a cross at its end empties it; the field keeps the keyboard, and Undo brings the text back.

Fixed

  • A menu, a tooltip, a popover or a dialog built from inside a field is one of its own: it wore the tags around it ("input floating"), and a field's menu was drawn with a field's see-through background (push_tags_isolated, pop_tags_isolated). A menu takes the window's style, not the field's.
0.172.02026-11-11 00:12 UTCrelease

Added

  • platform.drop_types: the MIME types a drag over the window offers, from its enter on. On Linux the data is read only at the drop: a target judges a drop of a program's own format by its types (it refused it before).

Changed

  • The command palette is a dialog the user resizes (Command_Palette, palette_open(&p), palette(&p, commands, enabled) -> (chosen, resized)): modal_sized with its corner's grip, PALETTE_WIDTH_EM by PALETTE_HEIGHT_EM at first, its size the program's to keep; a command's icon before its label. A table narrower than its columns scrolls sideways (table_min_width, table_scroll_sync; table_build does it); Size.least is a floor of the resolved size too.
0.171.02026-11-10 23:44 UTCrelease

Added

  • A text field's menu: a right click on a line_edit opens Undo, Redo, Cut, Copy, Paste, Delete and Select all, each with its keys and its icon (ui.field_menu; a secret's neither copies nor cuts; menu = false: the program has its own). menu_item takes icon_font: an item's icon may be a character of any face (0: State.icon_font), so a menu of the toolkit's draws Lucide's whatever the program's icons are.
0.170.02026-11-10 23:32 UTCrelease

Fixed

  • A Mermaid gantt chart's section names sat on the left edge of their band (mermaid-svg sets them there, its whole padding after them): gt_mermaid moves them half that padding in.
0.169.02026-11-10 23:14 UTCrelease

Fixed

  • A Mermaid gantt chart in dateFormat X or x (seconds or milliseconds since 1970, as a model writes the timing of calls) was refused: "cannot parse task end". mermaid-svg reads no such format: gt_mermaid gives it the chart with its dates written as YYYY-MM-DD HH:mm:ss (UTC), its directives, ids and durations as they were.
  • Resizing a table's column no longer moves the columns after the fill column a frame late. The fill column took the header's width of the last build: it is now fill_least (Size.least: a size the layout never shrinks under), resolved in the build it is in. A list's stripes are fainter again (0.8 %).
0.168.02026-11-10 22:59 UTCrelease

Added

  • lucide: twelve more icons for a program's menus: ARCHIVE, ARCHIVE_RESTORE, CALENDAR_CLOCK, CLIPBOARD_COPY, FILE_DIFF, FILE_DOWN, HASH, LOG_OUT, MESSAGE_SQUARE_QUOTE, QUOTE, SERVER, TEXT_QUOTE. docs/lucide.md says how a program draws its own icons, from a font of its own, with no constant in the toolkit.

Fixed

  • archive.kind_of and syntax.language_of_file fold a file's extension by ASCII (ascii.lower), as the toolkit's rule wants for names (unicode_case failed on them). The test of the launcher's activation token builds with -vet on Windows.
0.165.12026-11-10 22:39 UTCrelease

Changed

  • A list's stripes are fainter: every second row 1.5 % toward the theme's tint, from 3 %: the stripes guide the eye across a line without drawing it.

Fixed

  • archive: an entry named with a . or .. part or a drive is left out of the index (a copy of a folder out of a malicious archive made folders outside its destination); find looks entries up by name.
0.167.02026-11-10 22:35 UTCrelease

Fixed

  • testkit/unwatched builds with -vet off Windows: its Windows code and imports are in unwatched_windows.odin; a program whose tests import it no longer stops on unused imports there.
0.166.02026-11-10 22:33 UTCrelease

Added

  • platform.activation_token_from_env and platform.raise_window_token: a second start hands the token its launcher gave it (XDG_ACTIVATION_TOKEN, DESKTOP_STARTUP_ID) to the first, whose window comes up with it on Wayland.
  • syntax: the colours of source code as runs of classes (spans, language, language_of_file), the site's lexer made a package of its own; Python, Go, TypeScript and the shell coloured too. site.Code_Language is syntax.Language.
  • archive: what a zip, a tar or a gzipped tar holds (open, children, find), a file of it read or extracted (read, extract; a name that would leave its folder refused). Read only, pure Odin.
  • testkit/unwatched (was tests/unwatched, the toolkit's own): a test's body on a thread the runner of core:testing does not watch, for a program's tests on Windows. There the runner fails a test on any exception of its thread, even one DirectWrite, Direct3D or DXGI raises and catches itself ("Signal caught: Unknown", now and then). unwatched.run now also does the body's testing.cleanups on its thread when it returns: a window or a testkit session made in the body ends on the thread that made it. docs/testkit.md.
0.165.02026-11-10 21:36 UTCrelease

Added

  • prefs_page.Options.preview: each value a held slider moves to, for the program to show at once; the preference is still written at the release.

Changed

  • Machined: a graph with a grid is a well, a meter bar a slot (line_graph, meter_bar): a screen set in the surface, a run lit in a carved slot.
0.164.02026-11-10 21:31 UTCrelease

Changed

  • The Gradient finish is a shade, the Machined one a relief everywhere. Gradient: a face a few percent lighter at its top than at its bottom and a fine lit line, no white gloss nor engraved text (the text reads as on the plain colour). Machined: cards, dialogs, menus and tooltips are plates (Box_Flag.Plate); check boxes, radios, switches, sliders and progress bars are wells with a raised key or a lit face in them; buttons' bevels are stronger; an accent fill (paint_rect) is a lit face; the light engraving under dark text is fainter. tk finish_shots pictures fidget's pages in each finish; fidget takes --finish=name.
0.163.02026-11-10 21:20 UTCrelease

Added

  • release.Config.update: a program that updates itself; package_ writes the program alone and its manifest signed by $UPDATE_SIGNING_KEY beside the archive (a release without the key is refused).

Fixed

  • Setup, a copy of the Nix store beside what an earlier install left: it read as "To repair", with "The installed program is missing" in red, when an icon or a menu entry of an earlier install was left. A copy of the Nix store with no installed copy is now the Nix package's (State.Nix_Package, setup.state_of): the screen says an earlier install left files, and offers only to remove them ("Remove what is left"), never a repair that would install this copy beside the package. setup.leftover says when something is left.
0.162.02026-11-10 21:09 UTCrelease

Added

  • paint.rgba_shrink: RGBA8 bytes shrunk without a canvas, each pixel the alpha-weighted average of what it covers, for a thumbnail of a large picture.
0.161.02026-11-10 20:52 UTCrelease

Added

  • warn_button, beside accent_button and danger_button: the warning hue behind black text, for an action done with care (end a task, stop a service). docs/themes.md lists the button variants.
0.160.02026-11-10 20:47 UTCrelease

Fixed

  • A table's fill column keeps TABLE_FILL_MIN_EM (ui.table_width): in a window too narrow for its columns, the last columns go past the edge, cut, instead of the fill column going to nothing under its neighbours' text.
0.159.22026-11-10 20:31 UTCrelease

Fixed

  • ui.type_to_field takes an input method's text again right after a shortcut: only the modifiers of the frame's own key presses count (State.typed_mods).
0.159.12026-11-10 20:24 UTCrelease

Fixed

  • ui.type_to_field no longer takes a shortcut's letter: Alt+P gives the text "p" too, which went to the filter instead of the shortcut.
0.159.02026-11-10 19:25 UTCrelease

Added

  • Stripes, rules and tints of a list's rows: List_State.zebra and .rules (every second row shaded, a hairline under each), list_row's tint, table_cell's border (a busy cell's outline); animations_on and keep_animating for a program's own motion.
0.158.02026-11-10 19:02 UTCrelease

Added

  • ui.table_cell takes fg, the colour of its text, beside bg: a cell tinted by its value keeps a text that reads on it.
0.157.02026-11-10 17:14 UTCrelease

Changed

  • platform.move_to_active_monitor(w, follow): the monitor under the pointer by default (.Pointer: a pointer moved to another monitor is followed with no click), or the one of the window in front (.Focus). active_monitor_parse reads "pointer" or "focus".
0.156.02026-11-10 17:13 UTCrelease

Fixed

  • prefs_page: a slider dragged and let go keeps its value. ui.slider moves its value only while the button is down, and the page read the preference again at the release: what was dragged was never written, and the slider went back. The page now keeps the value while the button is down and writes it when it comes up.
0.155.02026-11-10 16:58 UTCrelease

Added

  • config.words_match: phrases: words between double quotes are one, spaces and all ("Session 2" is not in "Session 12"); a quote left open runs to the end of the query. The settings' search has them too.
0.154.02026-11-10 16:48 UTCrelease

Added

  • config.words_match(query, fields..): whether every word of a query is in one of several fields, in any case: a search over a thing's title, id and folder at once. config.matches (a preference's search) uses it.
0.153.02026-11-10 16:21 UTCrelease

Added

  • svg.raster: a drawing made into pixels on the CPU (a paint.Canvas), where no frame is drawn: a diagram to copy as a picture or to save as a PNG file. Its shapes, dashes and markers are those svg.draw_doc draws; its texts are filled from the outlines of the program's faces.
0.152.02026-11-10 15:55 UTCrelease

Fixed

  • desktop.watch_start on Linux: a place made in the moment between the failed watch of it and the watch of its parent (its CREATE came before that watch) was not followed: once an ancestor is watched, the next directory toward the place is looked for, and the place settles one level down when it is there. (watch_follows_places_that_come_and_go failed now and then.)
0.151.02026-11-10 15:37 UTCrelease

Added

  • site: the home page's download for the reader's system (Changelog_Options.downloads): <!-- download --> becomes one button per system, the reader's shown by a script of the page (the first when it is not known), and <!-- download-others --> a line that offers the others.
0.150.02026-11-10 15:31 UTCrelease

Added

  • platform.move_to_active_monitor: a window goes to the monitor the user works on (the one of the window in front, else under the pointer), at the same place of its work area (rect_on_work), before a program called up by a shortcut shows it. Windows.

Fixed

  • setup dialog: one option per line, its tile as tall as its label: a long label wraps in it instead of running past its edge.
0.149.02026-11-10 15:18 UTCrelease

Added

  • Diagrams: the svg and mermaid packages (docs/diagrams.md). svg.parse reads a drawing in SVG (paths and every command of them, rects, circles, ellipses, lines, polygons, texts and tspans, markers, transforms, fills, strokes, dashes, opacities, the style attribute) and svg.draw_doc draws it with the toolkit's paths and fonts, at any scale. mermaid.diagram lays out a Mermaid diagram's text (flowchart, sequence, class, state, ER, gantt, pie, mindmap, timeline, git graph...) through mermaid-svg in native/mermaid (tools/tk build_mermaid, about 1 MB; -define:MERMAID_NATIVE_LINK=false for a program that builds gt_mermaid into its own Rust library) and gives that drawing.
0.148.02026-11-10 14:04 UTCrelease

Added

  • platform.placement_text, placement_parse: a window's placement as a preference's text ("120 80 1400 900", "maximized" after it) and back, so that a program opens its window where it was, on the monitor it was on (set_placement brings it onto one that is there).
0.147.02026-11-10 13:41 UTCrelease

Added

  • setup.updated(cfg, version): after the Updater put a new program in place of the installed copy, its install manifest and the system's record (Settings > Apps) say the new version.
0.146.02026-11-10 13:34 UTCrelease

Added

  • prefs_page: Options.updater and update_pref show a program's Updater under the line of its update preference: its state in words, Check now, Install when a version is on offer, Restart now (Options.restart) when one is installed. update.status_words says a state in a sentence.
0.145.12026-11-10 13:28 UTCrelease

Fixed

  • toolbox.update_command keygen writes a key outside a work tree: it refused every path (the key's file, which does not exist yet, was looked up to make its absolute path).
0.145.02026-11-10 13:22 UTCrelease

Added

  • update.Updater: a program updates itself. A thread of its own checks the release a while after the start and then every day, downloads the program it names, checks it against the signed manifest and puts it in place; automatic or offered (check_now, install_now), its state in update.status, the program told of each change (news). A copy from the Nix store is left to its package manager.
    • gt:http (tk_http): one GET over HTTP or HTTPS with what the system has (WinHTTP; libcurl loaded at run time on Linux), redirects followed, the body bounded.
    • toolbox.update_command: the update command of a project's tool (keygen, pubkey, the signed manifest of a release, verify), for its product; toolbox.update_manifest for a release step.
0.144.02026-11-10 13:05 UTCrelease

Added

  • ui.line_edit's reveal: a secret field (a password) with an eye at its end that shows the text and hides it again (reveal: ^bool, kept by the program); shown, it is text, copied as any other; the field keeps the keyboard. ui.lucide_icons: the lucide package's face, loaded when first needed, for the marks the toolkit's own icon font has not.
0.143.02026-11-10 12:10 UTCrelease

Added

  • toolbox.write_logo: the files a program makes from its logo, from its drawing (a proc that gives a canvas of a size): the PNG sizes, the .ico of its Windows executable (PNG entries, or DIBs below a size), the project's picture (.project/image.png).
    • toolbox.version_header and write_version_header: the C header (VER_MAJOR, VER_MINOR, VER_PATCH, VER_STRING) a Windows executable's .rc includes for its VERSIONINFO, written only when it changes.
    • toolbox.exe_has_icon (Windows): an executable carries its icon group 1.
0.142.02026-11-10 11:57 UTCrelease

Added

  • ui.hotkey_field: a field that records a key combination from the keys pressed (a click, then the keys; Escape gives it up), for a program's shortcut. ui.hotkey_recording says when one records (a program lets its global hotkey go then).
    • platform.Hotkey.char: a key named by the character it types on the user's layout, when Key has none (the French ù): read and written by hotkey_parse and hotkey_text, registered on Windows (VkKeyScanW), sent on Wayland (its keysym U00F9, keysym_of).
    • platform.Event.char: a Key_Press of a key Key does not name comes with the character it types with no modifier (Windows, Wayland). ui.key_take gives a platform.Hotkey.
    • prefs_page: Options.hotkeys names the preferences that hold a key combination (recorded, not typed); Options.problem shows what the program says under a line.
  • setup.update and the controller of the Setup for a screen of the program's own: headline, install_label, can_uninstall, busy, closing, start_install, start_uninstall, pick_folder, open_installed, close. The dialog uses the same.

Changed

  • A menu that searches: its field is a band from edge to edge at the menu's top, in a field's background with the menu's separator under it, no frame of its own.
  • A menu that searches (ctx_menu_open(..., search = true)) shows its query in a field: a magnifier, what is typed and a caret that blinks, "Type to search" while nothing is.

Fixed

  • setup.facts: on Windows, a program installed in the default folder (%LOCALAPPDATA%\Programs\<name>, or an install_folder that is the same path) was taken for an install "to repair" after its restart: the record of the default folder counted as no record. desktop.install_recorded reads the record alone.
0.141.12026-11-10 10:48 UTCrelease

Fixed

  • The widgets' marks (a check in a menu or a check box, a dropdown's and a submenu's arrow, a stepper's signs, a toast's sign) are drawn in the toolkit's own icon font (ui.widget_icons), whatever icon_font the program sets: with Lucide as its icon font, a check was a letter "V".
0.141.02026-11-10 10:36 UTCrelease

Added

  • Toolkit.click takes CDP's modifiers (Alt 1, Ctrl 2, Shift 8): a Ctrl or Shift click, as a test marks rows of a list.
  • lucide: BUG, GIT_FORK, LIST_CHECKS, MICROCHIP, NETWORK, PAUSE, SCROLL_TEXT, THERMOMETER, ZOOM_IN, ZOOM_OUT.
  • ui.table_widths_text, table_widths_apply, table_sort_text, table_sort_apply: a table's column widths and sort as a preference's text (pid=6.5,command=30, -memory), and back.
  • Lists mark more than one row (List_State.multi): a Ctrl click marks a row besides the active one, a Shift click a range, Ctrl+A every row; a marked row is drawn as the active one and goes with its row's identity (list_is_marked, list_mark_count, list_mark, list_mark_all, list_marks_clear, list_row_id).
  • desktop: the desktop entry says StartupWMClass=<slug>, the window's class: a launcher and a dock match the program's window to its entry by it.
  • process.affinity, process.set_affinity (Linux): the logical processors another process may run on, read and set for every thread of it, by pid and start time as set_priority; Cpu_Set with cpu_set_has, cpu_set_put, cpu_set_count.

Changed

  • ui.key_name: the Escape key is "Escape" in menus, tooltips and the sheet of the keys, as the other keys are named whole ("Delete", "Page Down").
  • ui.palette keeps a command only when what is typed is in its label whole, or in pieces that each begin a word, the words in order (ui.fuzzy_words): "prio" finds "Raise the priority" and no longer "Previous section". The text whole ranks before pieces, the start of a word before elsewhere.

Fixed

  • process.set_priority lists the threads through a descriptor of the process's own /proc/<pid> folder, whose start time it checks, and its pidfd says afterwards whether the process still ran: a pid given to another process in between is no longer read or changed.
0.140.02026-11-10 09:00 UTCrelease

Added

  • desktop.Identity.actions: the desktop entry's actions (Desktop_Action: Actions= and a [Desktop Action id] group each, the program run with its arguments), which a launcher's right click offers.
  • ui.Command: a program's commands in one table (label, group, keys) give its key handling (command_pressed), its menus' and tooltips' key texts (chord_text, command_shortcut, command_tip), a command palette that searches as you type, the best matches first (palette_open, palette) and a sheet of the keys (shortcuts_sheet); docs/commands.md.
0.139.02026-11-10 08:11 UTCrelease

Added

  • ui.key_take: the frame's first key press not taken yet, with its modifiers (a recorder of shortcuts).
  • release package: a program's release steps for a project's tool: package_ (the archive and its SHA-256), notes (the changelog's section), ship (the changelog dated, the version set, the checks, the commit, the tag, the push), and the pure version and changelog helpers.
  • desktop.theme_icon: an application's icon by its name (a desktop entry's Icon=) from the person's icon theme, the themes it inherits, hicolor, then pixmaps; an absolute path is the file itself (Linux; elsewhere none).
  • ui.segmented tips: a tooltip per segment, also the segment's description for a screen reader.
  • ui.type_to_field: a printable character typed while no text field has the keyboard gives it to one field (a filter), which takes the character in the same build: just start typing to search.
  • ui.table_build and its layers: a sortable table of texts (Table, Table_Data, table_apply, table_keys): titles that sort and reverse, rules that resize, a columns' menu (table_column_items), the keyboard while a filter field has it (arrows, pages, Ctrl+Home/End, Enter, Menu and Shift+F10), cut cells shown whole in a tooltip, the selection strong while the window is the user's; table_header, table_cell and Table_Layout for a table that builds its own rows (docs/data-views.md).
  • ui.Value_History, ui.line_graph, ui.sparkline, ui.meter_bar: the last N values of a sample, their graph (each series an area under its line, grid and frame, a top found with a floor: graph_top), the same small and bare, and a flat bar of how full something is that turns to the bad colour past a threshold (docs/data-views.md).
  • ui.Worker: a reader on its own thread: the interface asks (worker_ask, asks during a run make one more run), the job swaps its result in under the worker's lock and wakes the window (worker_published), the interface takes it once (worker_take).
  • platform.interface_addresses: the IPv4 and IPv6 addresses of every network interface with their netmask and whether the interface is up or the loopback (Linux: getifaddrs; elsewhere an empty list).
  • process.signal_process / set_priority / process_start_time: a signal or a nice value for another process named by its pid and its start time; on Linux the pid is pinned with a pidfd and the start time read again before pidfd_send_signal, and the nice value is set on every thread (other systems: .Unsupported).
  • dbus.call / call_async interactive: the call carries ALLOW_INTERACTIVE_AUTHORIZATION, so a service that checks with polkit (systemd on a system unit) can ask the user for a password instead of refusing.
  • ascii.compare_fold: the order of two names, case ignored (ASCII) first, then the bytes (a table sorted A to Z). docs/ascii.md describes the package.
0.138.02026-11-10 00:12 UTCrelease

Added

  • lucide.REDO_2: the redo icon.
  • ui.splitter's flush: the handle is its rule alone, the panes meet at it (their rules and a selected row reach it, with no strip beside it), and it is grabbed as wide as a usual handle all the same. Box.hit_outset: how far a box's hit area reaches past its rect.
  • ui.ctx_menu_open(..., search = true): a menu searched by typing (fuzzy): the items that do not match go, a submenu's items come up into the menu, the first match is selected.
  • desktop.open_terminal: a terminal opened in a folder ($TERMINAL or a common terminal on Linux, Windows Terminal or the command prompt on Windows).
  • ui.splitter options fill and line_at: the handle painted in a pane's colour, its rule at its start or end (one line with the next pane's edge, not two side by side).
  • instance.serve_start, serve_stop: an Owner served on a thread of its own, for a program whose loop sleeps until its window has an event.
  • desktop.file_icon (the size its file is chosen by apart from the size made: choose), file_icon_key, file_icon_destroy, svg_available: the system's icon of a file or a folder, as its file manager shows it: on Linux the person's icon theme (Icon Theme specification, the type from shared-mime-info, SVG files rendered by librsvg opened at run time), on Windows the shell's icon of the path.
    • platform.cursor_resample is now platform.rgba_resample (an icon theme's PNG files are reduced with it).
    • platform.portal_icon_theme: the icon theme the desktop shows, from the Settings portal (org.gnome.desktop.interface icon-theme); file_icon reads it before the GTK and KDE files.

Fixed

  • desktop.file_icon: two threads asking the first icons at once no longer share the theme's cache unlocked; the portal is asked with no lock held (file_icons_forget asks the theme again); file_icon_key reads no file; on Windows the icons come at 48 and 256 pixels too, COM is started on the asking thread, an icon with no alpha takes its mask; open_terminal quotes a drive's root and shows no dialog when Windows Terminal is missing, $TERMINAL may hold arguments.
  • ui.hline in the machined finish keeps its two lines, the dark one and the lit one under it: the rule is two lines tall there, both inside its box. The lit line was drawn under the box, where the pane after it covered it (a lone dark line), and showed through a clear splitter's handle as a ledge.
0.137.02026-11-09 22:44 UTCrelease

Added

  • config.Def.hidden: a preference the program keeps for itself (a layout, a last choice): prefs_page shows it on no page and its search does not find it.
0.136.02026-11-09 22:28 UTCrelease

Added

  • prefs_page.Page_Info.names: the preferences a page shows, in this order, whatever their category (nil: those of its category, as before), so that a program's settings pages need not be its registry's categories, which its editor of every preference keeps.
  • draw.replay(..., compare = true): with partial redraw (damage_auto), a replayed picture is compared with the last frame's (the picture, its version, its slots, the matrix, the alpha, the outer clip, its batches' state and textures) and drawn again only when one of them changed, where the picture draws (not its whole scissor). Off by default: a replay is redrawn every frame, as before.
0.135.02026-11-09 22:05 UTCrelease

Added

  • platform.send_hotkey: presses a key combination for whatever window has the keyboard, another program's (a clipboard history pastes into the program it was called from). Windows: SendInput; Wayland: a virtual keyboard of the seat (zwp_virtual_keyboard_v1); X11: none yet. keysym_name_of gives a key's xkb name. See docs/platform.md.
0.134.02026-11-09 21:28 UTCrelease

Added

  • checkbox and radio take wrap: a label longer than the row goes on to the next lines, the row as tall as they are and its mark on the first, instead of running past the row's edge.
0.133.02026-11-09 21:20 UTCrelease

Fixed

  • A capture of a window with partial redraw is taken when nothing changed: a frame that drew nothing was not presented and had no texture to copy, so a capture asked for then failed (DevTools' screenshots, once a dialog had opened). A frame a capture waits for is now presented (damage_skips_present).
0.132.02026-11-09 21:15 UTCrelease

Changed

  • setup: the dialog is laid out dense, as a tool's panel: its own title bar (the name, the close control), a framed header (what is offered for the state, the versions, the state as a badge), the install location, "Options" as a grid of framed boxes two a line, a framed box of what the disk says, then the buttons. It opens 46 × 34 em. Config.square: every corner of the dialog square (its panel, frames, fields and the toolkit's buttons).
0.131.02026-11-09 21:07 UTCrelease

Added

  • setup.Dialog.at: where the last frame put the dialog's buttons (Install, Uninstall, the secondary one: Button_Role), for a program's automation and its tests. The dialog opens 31 em high (27 before), so a program's choices show without scrolling.
0.130.02026-11-09 21:05 UTCrelease

Added

  • ui.current_state: the State whose build is open on this thread (nil outside a build), for a widget that works on other threads and posts to it (ui.post) when its work ends.
  • platform.Clipboard_Content.files_cut, platform.clipboard_files_cut: files cut on the clipboard, for a move, as file managers do it. Windows writes and reads Preferred DropEffect = move. Linux also offers x-special/gnome-copied-files (copy or cut, then the URIs) and, for a cut, application/x-kde-cutselection; it reads the cut from either. Pure helpers: gnome_copied_files_encode, clipboard_files_cut_decode.
  • lucide: the icons of classeur, a file manager: folders (open, plus, search, input, output, symlink), the kinds of files (text, code, image, music, video, archive, spreadsheet, link), the arrows, the panels, the columns and rows, the bookmark, the star, the filter, the scissors and paste, the terminal, the USB drive.
  • modal_sized(..., top): a resizable dialog held at a height of the window (a command palette) instead of centered; its bottom edge and corners follow the pointer, its top has no grips.

Changed

  • desktop.watch_start: no timer any more. A place that does not exist (nothing installed yet, a folder or a key deleted) is followed through its nearest existing ancestor, which wakes the program only when the next folder (or key) toward the place comes; the place that comes is watched itself. On Linux the watcher also follows the install folder, the Desktop and the autostart folder, and an overflow of inotify's queue is a change.
  • setup: the dialog does its work on a thread of its own and follows the disk while it is open.
    • Reading the state, Install, Uninstall and the folder picker run on the dialog's thread, one at a time; the dialog says "Working…" and its buttons wait; the end of the work and a change seen by the watcher wake the program (ui.post to the State of the dialog's last frame). setup.dialog is called every frame, open or not.
    • While open, the places of the install are watched (desktop.watch_start): a change made elsewhere is read again at once; setup.stale lets the program ask for it too.
    • Config.choices: the program's own options of an install, shown as boxes; Config.prepare receives their values (prepare(o, choices, user)) and is called before anything is read or written, so a test can point every place at a folder of its own.
    • Config.folder: the user may choose the install folder before the first install (install(c, shortcut, choices, folder); checked with desktop.check_install_dir).
    • Uninstall asks for a second click. A newer installed copy is named as such (is_downgrade: "Go back to <version>").

Fixed

  • setup.facts: a program with no icons that is not installed reads as not installed, not as an install to repair.
0.129.02026-11-09 19:42 UTCrelease

Added

  • lucide: ALIGN_LEFT, CLIPBOARD, EDIT, FILES, IMAGE, PIN_OFF, SAVE, the icons papier draws (it uses the toolkit's set in place of its own copy).
0.128.02026-11-09 19:13 UTCrelease

Added

  • lucide: the Lucide icons as a font (lucide.DATA) and constants for their characters (lucide.SEARCH, lucide.PALETTE, lucide.DOWNLOAD...): one set of icons for every program of the toolkit, in place of each program's own copy.
0.127.02026-11-09 18:56 UTCrelease

Added

  • setup: the program's own look, and the Desktop's shortcut on Linux. Config.backdrop, Config.button (Button_Kind: Normal, Accent, Danger) and Config.close let a program draw the dialog's backdrop, its buttons and a close control as its own dialogs do. The dialog asks for a shortcut on the Desktop on Linux too: desktop has a Desktop_Shortcut part there (a copy of the entry in xdg_desktop_dir, executable; another program's file stays). The setup package has its tests (the states, the versions, when a start offers the dialog). The dialog can be resized from its edges and its corner (Dialog.size, which the program may keep); what it says scrolls when it is small, its buttons stay under it.
0.126.02026-11-09 18:28 UTCrelease

Added

  • setup: a program installs itself for the user from a dialog of its own, over the desktop package: the state of the install (facts, state_of), Install (the copy, the launchers, the program's own parts by Config.prepare, the system's record), Uninstall (what the running copy holds goes at the end of the process), Repair, Upgrade, Open the installed copy, and the offer at a start (wanted, the user's choice kept by the program). It was opencode native's Setup. See docs/setup.md.
  • The console launcher (tools/console_launcher, src/console_launcher): <stem>.com beside a program of the Windows subsystem, which desktop.install writes with the PATH entry. In cmd or PowerShell it gives a console command its output and its exit code and lets a window go. A program builds its own with its mark and its rules (LAUNCHER_DEFAULT, LAUNCHER_OTHERS: words as the first argument, flags anywhere, (none)) and embeds the bytes. It was Wren's (src/tools/wrencom). See docs/desktop.md.
0.125.02026-11-09 17:55 UTCrelease

Added

  • qr and ui.qr_code: QR Codes (ISO/IEC 18004, model 2), as Project Nayuki's generator makes them: numeric, alphanumeric or byte mode, levels L, M, Q and H, the smallest version that holds the text, the mask of lowest penalty. ui.qr_code draws one dark on white in whole device pixels with its quiet zone, encoded again only when its text changes ([docs/qr.md](docs/qr.md)).
  • platform.notify: system notifications without a tray icon (title, body, PNG icon, urgency, buttons, replace in place, silent), notify_close, notify_supported, notify_set_app; clicks, buttons and closes come back as Notification_Click, Notification_Action and Notification_Closed events of the window. Linux: org.freedesktop.Notifications (desktop-entry, urgency and image-data hints; an ActivationToken lets raise_window bring the window to the front on Wayland, notify_activation_token). Windows 10 and later: WinRT toasts under a registered AppUserModelID. See docs/notifications.md.

Changed

  • Text in colour stripes is a touch bolder (Slug): font.Settings.slug_stripe_weight (default SLUG_STRIPE_WEIGHT_PX, 0.2 px, at every size) moves the stems' sides out, across only, so striped text no longer reads thinner than grey text and keeps its baseline and x-height. The Slug shaders take the edges' moves per axis.
  • winrt.event_handler_make: the callback receives the sender and the arguments of the event (callback(user, sender, args)), and an optional done(user) runs when the last reference goes; winrt.typed_event_handler_iid and SIG_INSPECTABLE give the IDs of TypedEventHandler<S, T>. A program that passes a callback of its own to event_handler_make changes its signature to proc(user, sender, args: rawptr) (Papier's clipboard history does).
  • platform.tray_notify on Linux shows its notification through the code of notify: one Notify call for both; info is a low urgency, error a critical one.

Fixed

  • Offscreen windows on Linux hear the session bus and the accessibility bus while they wait: notifications and portal answers reach a window that has no display.
0.124.12026-11-09 16:50 UTCrelease

Fixed

  • Linux: system_subpixel_text reads fontconfig (antialias, rgba) instead of always saying RGB: a configuration that asks for BGR, grey or no smoothing is followed. The colour-stripe text tests (tests/subpixel, Slug) run on Linux too, with the built-in face.
0.124.02026-11-09 16:43 UTCrelease

Added

  • winrt and hotkeys: what a program needs for the Windows clipboard history and a global shortcut.
    • winrt: Windows Runtime APIs from Odin with no projection: HSTRINGs, activation factories, the interface IDs of generic instances computed from their signatures (async_iids, event_handler_iid), await for an IAsyncOperation<T> (a completion handler, a timeout that cancels), event handlers of the program's own, read-only vectors. See docs/winrt.md.
    • platform.hotkey_register, hotkey_unregister, hotkey_parse, hotkey_text: a key combination the system gives a window wherever the keyboard is, as a Hotkey event with its id. Windows: RegisterHotKey; Linux has none (the compositor binds shortcuts to commands). See docs/platform.md.
    • prefs_page: a page of Options.pages with no preference in the registry is not shown (a program that registers some preferences on one system only).
    • platform.uri_list_to_paths on Windows: file:///C:/x reads as C:/x, not /C:/x.
0.123.02026-11-09 16:05 UTCrelease

Fixed

  • config.save_user makes the folder of its file when it is not there: a program's first save from its settings no longer fails (papier's Settings lost a change, read back from no file).
0.122.02026-11-09 15:47 UTCrelease

Fixed

  • prefs_page: a number with a unit no longer makes its line as tall as the page (the unit took the height of a parent sized by its children).
0.121.02026-11-09 15:23 UTCrelease

Changed

  • draw.damage_auto works out the region in linear time: 0.45 ms instead of 2.0 to 2.6 ms for 10,000 spans (-o:speed). A span is compared by parts (what it drew between two children); Damage_Memory holds parts and next (swapped, not copied), Damage_Span is now Damage_Part, Damage_Auto_Stats has parts (was spans), ms, px_drawn and px_window, and Damage_Whole.Offscreen is now Plane. A second memory in one frame asserts.
  • A resize grip sits in a square corner: a resizable dialog (modal_sized) and a floating dock panel keep their bottom right corner square, and their grip is a bevel cut across it in the theme's resize_grip shade (the border colour: darker on a light theme, lighter on a dark one), with its dots on it, clear of its edge. Boxes have square_corners (ui.Corners) for this; ui.paint_rect_corners, ui.box_radii and ui.radii_grown are new.
  • ui.theme_show takes the blend space (theme_show(&theme, list, choice, &shown, render.blend_space(&r))): a program that draws in sRGB gets its translucent entries for sRGB. It applies again when the definition of the theme shown changes (a themes file read again with the same names) or the space changes, and a change of the glow alone bumps Theme.serial.

Fixed

  • Toolkit.metrics: damage counts the pixels of the served window (from its ui.State), not those of the window the shared renderer drew last.
  • draw.offscreen_begin no longer makes the frames of automatic damage whole: what is drawn into an offscreen target damages nothing, so a drag image keeps partial redraw on.
  • Wayland: platform.minimize before the first show_window (or while hidden) is asked at the show, once the toplevel's first configure came, as set_maximized and set_fullscreen are. A window with no fractional scale from the compositor yet follows the output's integer scale, and a hidden window no longer sets a buffer scale on its destroyed surface.
  • "Open with" on Linux follows the MIME Applications specification: a mimeapps.list removes associations only for its level and the ones after it (a system list no longer removes what the user added), <desktop>-mimeapps.list gives defaults, a type with no [Default Applications] entry gets its most preferred application as default, and a type comes before its parents. A link that loops under applications/ no longer overflows the stack. What was read is cached until a file or folder read changes (under 1 ms a call, against 10 to 16 ms in a debug build).

Security

  • desktop.exec_expand refuses an Exec line the Desktop Entry specification refuses: a field code in a quoted argument (sh -c "viewer %f" let a file name such as a;rm -rf ~.txt run as shell code), an unknown code, %F %U %i inside an argument, two file codes. It returns ok; exec_arguments returns Exec_Argument (text, quoted). "Open with" lists no application with such a line.
0.120.02026-11-09 14:57 UTCrelease

Added

  • prefs_page: a program's settings page from its config registry, with no code per preference, in the look of opencode native's settings: the search in a well and the pages with their icons on the left; the page's title and a line per preference on the right (its title and description, a switch, a segmented choice or a list, a slider or a field with its unit, a reset button, a carved line); a search shows what matches in every page. Options.custom gives a preference a control of the program's own; theme_cards shows the themes as cards in their own colours. Options.changed runs after each change, for the program to save and apply it. See docs/prefs_page.md.
0.119.02026-11-09 14:31 UTCrelease

Added

  • Web addresses in plain text become links: ui.rich_links(text, style, &runs) turns a string into rich runs whose http:// and https:// addresses are links in the theme's link colour, underlined, without the sentence's closing marks around them (ui.web_address_len).
0.118.02026-11-09 14:03 UTCrelease

Added

  • Automatic partial redraw: ui.set_partial_redraw (or Host.partial_redraw in host) redraws only the boxes whose drawing changed since the last frame, with no rectangle marked by hand; an idle frame redraws nothing, a caret blink or a hover a small rectangle, custom draws included. Underneath, draw.damage_auto with draw.damage_span_begin / damage_span_end compares a digest of what each span draws (draw.Damage_Memory, damage_volatile, damage_whole, ui.damage_stats); render.texture_version and render.damage_building are new, and a frame with a region is whole when the clear colour, blend space, text or corner settings change. Toolkit.metrics (DevTools) reports it: the partial frames, why the others were whole, and the share of pixels drawn.
0.117.02026-11-09 13:54 UTCrelease

Added

  • The machined finish (Finish.Machined): bevelled buttons that sink when pressed, fields and segmented tracks as sunken wells with a ring of the accent when focused, separators as carved grooves (box flags .Sunken, .Groove); flat on a light palette. Its primitives for a program's own surfaces: machined_bevel, machined_well, machined_groove, machined_plate, machined_lamp, machined_pip (each draws its flat form outside the finish); Theme.glow sets its halos. It draws up to MACHINED_OVERFLOW_PX outside a box: a region redrawn alone must hold that margin. fidget: a Machined finish switch (Ctrl+M).

Changed

  • Themes replace the named palettes: ui.THEMES (25 themes, most with a dark and a light version: opencode native's and the toolkit's), Theme_Def, Theme_Colors, theme_palette, theme_palettes, palette_of, theme_find; theme_show applies a theme, a mode (system, dark, light) and a finish, and follows the system; theme_recolor moves a program's own colours to the theme shown; themes_read reads a user's themes. NAMED_PALETTES, palette_named and the PALETTE_* constants are gone: palette_of("Midnight"), palette_of("Midnight", light = true) for Daylight. Palette.well: the colour of sunken surfaces. See docs/themes.md.
0.116.02026-11-09 13:12 UTCrelease

Added

  • desktop.handlers_for_file, desktop.open_with: "Open with": the applications the system knows for a type of file, the default first, and a file opened with one of them (Linux: shared-mime-info, desktop entries, mimeapps.list; Windows: the shell's handlers). Also desktop.exec_arguments, desktop.exec_expand and platform.launch_detached (Linux).
0.114.22026-11-09 11:26 UTCrelease

Fixed

  • A window never shown is in no task bar (Wayland): open_window makes a surface with no role, and the toplevel is made at the first show_window. A program that starts hidden in the notification area was listed in the task bars that show every toplevel (ShojiWM). set_maximized and set_fullscreen asked before the first show are asked by the new toplevel.
0.115.02026-11-09 10:57 UTCrelease

Fixed

  • The wheel goes to the box that scrolls its way: a box that scrolls only sideways (.View_Scroll_X, a wide table) no longer takes an up-and-down wheel from the page around it, and Shift+wheel scrolls such a box sideways, as in a browser. A box that scrolls itself still gets the wheel as it is (a number field steps further with Shift).
0.114.12026-11-09 10:51 UTCrelease

Fixed

  • The tests of the toolbox build on Windows again: the test of start_group is Linux's only (#+build linux: a file name that ends in _test gives Odin no system). The test of a host at rest counts its wakes: an event of the desktop may end one wait, a wait that does not sleep wakes hundreds of times.
  • platform.wait_event (Wayland): less than a millisecond left is a millisecond of sleep. It returned at once, and a loop that waits until a deadline spun through its last millisecond (about 150 wakes).
0.114.02026-11-09 10:30 UTCrelease

Added

  • ui.field_frame, the box flag .Focus_Within, the theme tag bare: one surface for a field and what goes with it (an icon, a count), with one focus ring around all of it while a box inside has the focus. A field built under bare draws no background, border or focus ring of its own: no box inside a box, no square ring inside round corners.
0.113.02026-11-09 09:58 UTCrelease

Added

  • toolbox.start_group, toolbox.stop_group (Linux): a command in a process group of its own, stopped with all it started (a wrapper such as NixOS's sway leaves its real program running when only the wrapper is stopped). tk desktop_tests uses them.
0.112.02026-11-09 09:31 UTCrelease

Added

  • platform.raise_window (Wayland): asks the focus through xdg_activation_v1, with the seat's last input serial. It did nothing before. A program shown by a shortcut of the compositor now gets the keyboard on compositors that do not focus a new window by themselves.
0.111.32026-11-09 09:17 UTCrelease

Fixed

  • Tray (Linux): GetAll of the StatusNotifierItem includes IconPixmap. Panels that read the properties in one call (Quickshell, Waybar) showed the "missing icon" pattern.
0.111.22026-11-09 03:39 UTCrelease

Fixed

  • Wayland: a wait sleeps through the renderer's own traffic: the presentation feedback and the FIFO events of the frame just shown, and the ids of the renderer's callbacks, made the connection readable at each refresh, and every wait ended there: a window at rest drew a frame at each refresh. A wait now ends on what is the window's (its input, a repaint asked for), a change of the clipboard, a wake, a bus or the time. tests/linux_desktop checks that a wait at rest sleeps its time.
0.111.12026-11-09 03:27 UTCrelease

Fixed

  • Linux: the loop sleeps at rest again: the system's repaint request (a configure, an expose) stayed set, so every hosts_wait ended at once and a window drew frames for ever (60 a second; a core for a hidden one). host_frame now takes the request (its frame answers it), and a hidden window's request ends no wait. tests/linux_desktop checks that no frame is due at rest.
0.111.02026-11-09 02:43 UTCrelease

Added

  • desktop: the Autostart part: the program starts with the user's session (Options.autostart, with autostart_arguments: --hidden for a program of the notification area). Linux: an XDG autostart entry ($XDG_CONFIG_HOME/autostart/<slug>.desktop, autostart_dir, <prefix>AUTOSTART_DIR); Windows: the value of the key under HKCU\...\CurrentVersion\Run. Status, repair when the arguments change, removal of only what is the program's.
0.110.02026-11-09 02:35 UTCrelease

Added

  • host.host_hide, host.host_show: a window with its renderer off the screen and back, the renderer's surface released first (render.surface_drop) and made again at the first frame after the show (render.surface_remake(r, handles), which now takes the window's native handles). tk desktop_tests builds its tests with the native text backend and tests a host's hide and show with its renderer.

Fixed

  • Wayland: a window shown again after hide_window no longer ends the connection (must ack the initial configure before attaching buffer): the hide destroys the surface with its role, since the last frames' content updates could wait behind a FIFO barrier of wp_fifo_v1 that an unmapped surface never clears, and the new role's first commit with them.
0.109.02026-11-09 02:12 UTCrelease

Added

  • platform.hide_window: a shown window off the screen and back with show_window in a few milliseconds, its interface kept (a program in the notification area): Wayland (the toplevel role made again, its first configure waited for), X11 (withdrawn), Windows (SW_HIDE). Window.shown_again counts the shows after a hide; host_frame then makes a new swap chain (render.surface_remake), which Vulkan's FIFO on Wayland would otherwise wait on for good.
0.108.02026-11-09 01:28 UTCrelease

Added

  • platform.needs_frame_outline: a window with an integrated title bar and no frame of the system's (Linux: no server-side decorations, not tiled, no X11 frame extents; neither maximized nor full screen) gets a 1-pixel outline in the theme's border colour, drawn by ui.

Fixed

  • An integrated title bar on Linux works as a frame: a press on the caption moves the window (Wayland xdg_toplevel.move, X11 _NET_WM_MOVERESIZE), the bands along its four sides resize it (with the resize cursor over them), a double click on the caption maximizes or restores it, and a right click there opens the compositor's window menu. Nothing of that happened: the window could not be moved. The window menu now gets the press's serial and the surface's coordinates.
0.107.02026-11-09 00:19 UTCrelease

Added

  • png package: the one PNG codec of the toolkit. png.encode(rgba, width, height, .Small | .Fast) writes straight RGBA8 as a PNG file (.Small: the filter of least sum per row and flate.deflate; .Fast: Sub and flate.deflate_runs), png.decode reads any PNG (every colour type, bit depth, palette, tRNS; 16 bits rounded to 8) as straight RGBA8, png.rgba8_of converts any core:image picture. platform.clipboard_image_decode(mime, bytes) reads a PNG, JPEG or BMP file, platform.clipboard_pick_mime(offered, wanted) picks the type to read of another program's offer.

Changed

  • One PNG codec everywhere: paint.png_encode / png_decode, cdp.png_encode / png_decode, the screenshots of devtools, testkit/session's pictures, the CBDT emoji of font and the Windows clipboard use the png package. devtools.png_encode is removed: png.encode(rgba, w, h, .Fast) writes the same file. The Windows clipboard no longer links vendor:stb/image, and platform.png_encode writes at .Fast (a 1400 x 925 picture in 2 ms rather than 90).

Removed

  • platform.png_encode_hook and platform.png_decode_hook: the toolkit has its own PNG codec on every system (platform.png_encode / png_decode), so an application has nothing to set.

Fixed

  • Linux: pasting another program's image or files: platform.clipboard_get_image read nothing unless the application had set a PNG hook, so an image copied by a screenshot tool, a browser's Copy image or wl-copy --type image/png did not paste. It is read now on Wayland and X11 through the toolkit's PNG codec, and an offer of image/jpeg or image/bmp alone is read too; clipboard_formats says .Image for them. clipboard_get_files also reads GNOME Files' x-special/gnome-copied-files when there is no text/uri-list. The tray's PNG icon is decoded the same way.
  • tk desktop_tests leaves no compositor running: a server it starts (and the test program) runs in a process group of its own, and is stopped with its whole group, also on a failure, a time limit or a signal to tk. A wrapper such as NixOS's sway (dbus-run-session, which runs sway and a session bus beside it) took the signal alone and left sway, swaybg and the bus running, holding the command's output open. Their output goes to files now, the test program's printed when it ends. a_lost_server_closes_its_windows stops its second server with its children, so the window hears the compositor go.
0.106.02026-11-08 23:44 UTCrelease

Added

  • Content that fades out at its edges: draw.mask_edge_fade draws the mask of a push_mask that fades the content to transparent over given widths at the left, top, right and bottom edges; ui.next({edge_fade = ...}) gives it to a box that clips, so that a list that scrolls fades out where it goes on instead of ending in a straight cut.
0.105.02026-11-08 22:51 UTCrelease

Added

  • platform.can_hide_windows: whether a window can exist unseen, made and never shown. Yes on Windows; no on Wayland and X11, where a toplevel is shown as soon as it has a buffer: a program that needs an unseen window opens an offscreen one there.

Fixed

  • Variable faces off Windows: font.axes reads a face's axes from its fvar table, and font.with_variations makes an instance the native backend opens at its location (a simulation of it keeps it). Both did nothing there, so a variable font was drawn at its default instance: a web font in font-weight: 400 whose default is 300 came out light.
0.104.12026-11-08 21:06 UTCrelease

Fixed

  • Docs tables on a phone, on every site: the rule that keeps a table's columns wide enough is in the documentation's own style sheet (docs_css), not only in DOCS_CODE_CSS; Wren's docs, whose site has its own table styles, squeezed them still.
0.104.02026-11-08 21:04 UTCrelease

Added

  • site.Meta.changelog_page and version_anchor: where a site tells a version (the feed's links, llms.txt), for a site whose changelog is another page or whose anchors are written otherwise (Wren's changelog/#v0-7-0).

Fixed

  • Docs tables on a phone: each column keeps room for its text (26 characters, at most 70 % of the screen) and the table scrolls sideways in its frame. The columns were squeezed to one word a line.
0.103.02026-11-08 20:52 UTCrelease

Added

  • site.build_docs: a documentation site from a project's Markdown: a page per document in the site's header and footer, a menu from docs/_nav.txt (folded under a "Documentation" toggle on a phone, no script), a search with no server, collapsible groups, a breadcrumb, the previous and next pages, "On this page", the old addresses sent on. site.check_links checks a built site's links without a browser; site.check also checks the documentation pages at 390 px. Wren's documentation generator moved here; the toolkit's Docs section uses it.

Changed

  • site.render_markdown replaces markdown_html: one converter (Wren's, which reads more: blockquotes, HTML blocks, aligned tables, autolinks, titles, heading anchors, unique ids), with coloured code blocks (site.write_code_block, site.Code_Language), the headings and the plain text of a document. A | in a code span no longer splits a table cell, two trailing spaces are a hard break, and a title keeps a _ inside a word.
0.102.02026-11-08 19:55 UTCrelease

Added

  • toolbox package (tk_toolbox, [docs/toolbox.md](docs/toolbox.md)): what the tools of a project share. run (the output shown or appended to a log; a working directory, an environment, a time limit, echo), capture (the standard output and the exit code, the standard error shown on failure), env_with, exit_code and succeeded (a Windows exit code read as the program's signed 32-bit code), sha256_hex and sha256_file, download_pinned (curl with retries, GitHub's API when a release download fails, a file whose SHA-256 is wrong removed), download_through_api, release_asset_id and system_program. tools/tk uses it; its own copies of these procedures are gone.
  • paint package (tk_paint, [docs/paint.md](docs/paint.md)): a vector rasterizer on the CPU for pictures made ahead of time, pure Odin and deterministic: an RGBA canvas with a transform, paths (lines, quadratic and cubic Béziers, arcs, rounded rectangles, ellipses, polygons), fill (non-zero, even-odd) and stroke / widen (width, miter, bevel and round joins, flat, square and round caps) with antialiasing, solid colours and linear / radial gradients that pad or repeat, set_clip, draw_canvas / resize (cubic for downscaling, nearest for magnifying), png_encode / png_decode, ico_encode with PNG or DIB entries (dib_encode). tk make_logo and tk make_icon draw with it on Windows and Linux; GDI+ and tools/tk/gdiplus_windows.odin are gone.
  • desktop package (tk_desktop, [docs/desktop.md](docs/desktop.md)): the integration of a program with the user's desktop (Start menu and desktop shortcuts, the PATH with a console launcher, the freedesktop.org entry and icons, a link in ~/.local/bin, and for a browser its registration and URL schemes), its watcher, its command line, and the installed copy (manifest, Settings > Apps record, uninstall, NixOS runtime). Every name and mark is a field of the program's Identity; every place is an injectable root. Moved from Wren and made generic. process package (tk_process, [docs/process.md](docs/process.md)): command_line_args (UTF-8 on Windows), console_write / console_error (a Windows program with a window writes to its parent's console), executable_path, parent_dir.
  • tk site_docs: the documents of docs/ as a "Docs" section of the website, with its own Markdown to HTML converter (tools/tk/site_docs.odin). The Pages workflow runs it.
  • cdp and site packages (src/cdp, src/site): a client of the DevTools protocol for tools (a window or a browser, input, waits, pictures, screencasts, scripts, timelines compared with another run) and the steps of a project website (CHANGELOG.md to a changelog page, news and classic pages, what a page says when shared, Markdown to HTML, the pages checked in a real browser), generic: opencode native uses both. docs/cdp.md, docs/site.md.

Changed

  • The Node tools are tk commands: tk cdp (was tools/cdp.mjs), tk screenshots, tk theme_shots, tk timeline_test (was tests/e2e/timeline.mjs), tk doc_check (same flags: --root, --extra), tk site_build, site_changelog, site_meta, site_card, site_check. The CI and the Pages workflow run only Odin; Node is no longer needed.

Fixed

  • tk site_check checks the site as it is published (the Docs pages and the 404 too) and waits for what each step leads to instead of fixed delays (opencode native's check, now shared): the old check hung when the viewer did not open. tk theme_shots reads the palettes from src/ui/theme_default.odin (tools/theme_shots.mjs still read ui/, gone since the packages moved to src/).
0.101.02026-11-08 18:07 UTCrelease

Changed

  • The library's packages are in src/ (src/ui, src/platform...): a program's collection points there (-collection:gt=<toolkit>/src), and the examples, tests, tools and docs apart from it. Every step is a command of tools/tk, on Windows and Linux: build (an example; build.bat and ./build.sh are its shortcuts), ci (what tools/linux_ci.sh did), desktop_tests (what tools/linux_desktop.sh did, its fake xdg-open an Odin program), build_text on Linux too. The scripts are gone. flake.nix: the development shell on Linux (the pinned Odin with wgpu-native, Rust, the virtual desktops' servers).
0.100.02026-11-08 17:32 UTCrelease

Added

  • config.Search: the search of a settings UI made of pages (search_begin, search_page, search_shows, searching): which preferences a query shows (every word in the name, the title or the description; a page whose title matches shows all of it) and each page's heading before its first match. The UI keeps its own layout.
0.99.02026-11-08 17:21 UTCrelease

Added

  • update (package tk_update): signed updates of a program, from Wren and opencode native. A Product (name, signing context, public key) checks what a release publishes: one manifest per platform and channel (manifest_name, channels optional), signed with Ed25519, for a strictly newer version and the release's own file name (check_release). place puts the downloaded program in place of the running one after its size and SHA-256 (Windows: renamed aside, put back on failure; Linux: renamed over), remove_leftovers cleans up at the next start, and manifest_of, manifest_bytes and sign are the release tool's side. [docs/update.md](docs/update.md).
  • platform.set_app_id: the program's id on the Linux desktop, the name of its .desktop file: Wayland's app_id and X11's WM_CLASS (which windows on X11 had none of). By default the executable's file name, where every window said "gui_toolkit", so a task bar could not find the program's icon and name.

Changed

  • tk release publishes a version on Windows or Linux (tools/tk), in place of tools/release.ps1, which is gone: the CHANGELOG section and the version, the commit, the annotated tag, the push and the GitHub release. The About picture is taken again on Windows only.

Fixed

  • System fonts on Linux take fontconfig's aliases and generic families: font.load_system and font.has_system_family give "Courier New" the installed font the configuration binds to it (Liberation Mono, by 30-metric-aliases.conf), and monospace, serif, sans-serif and the other generic families the font fontconfig picks. They refused any answer whose family was not the one asked for, so such a name was missing and text fell to the next font.
0.98.32026-11-08 10:39 UTCrelease

Fixed

  • tools/tk's pinned downloads (wgpu-native, DXC, the emoji font) try again, and a file of a GitHub release whose download fails comes through GitHub's API (with GH_TOKEN or GITHUB_TOKEN when set), checked against its SHA-256 as before: GitHub's release downloads answered 504 for over an hour while its API served the same files, and a CI fetching wgpu-native failed. The tool's own tests run in run_tests (tk_tool).
0.98.22026-11-08 06:25 UTCrelease

Fixed

  • platform.custom_cursor_info on Linux says the size and hotspot of the cursor as it is shown, the image at the scale it is shown at (scale, or the window's: custom_cursor_scale), as on Windows; it said those of the source image whatever the scale. The scaling is shared with the pixels made for X and Wayland (custom_cursor_geometry).
0.98.12026-11-07 22:34 UTCrelease

Fixed

  • A lazy column lets its view move by less than a pixel: the item the view is on was kept in its place by its rect, rounded to whole pixels; that error, read as a move of the content, put a view moving by less than a pixel a frame (a slow glide, the wheel's click just past its dead zone) back where it was every few frames, and it did not move. Its place is now read where the layout put it, not rounded.
0.98.02026-11-07 22:14 UTCrelease

Fixed

  • Instance buffers go back down after a peak: the draw context's instance list and the renderer's instance buffer (D3D11, and WebGPU's tables) are no longer kept at the size of the largest frame ever drawn; after render.SHRINK_FRAMES frames in a row that used less than 1/render.SHRINK_RATIO of them, they shrink to what is drawn (render.shrink_due).
  • Text outside the clip makes no instance: a glyph placed in screen pixels and wholly outside the clip rectangle is no longer drawn (nothing recorded in a picture: it is replayed elsewhere). Text drawn again in strips, as a find in page paints the letters of its matches, made every glyph of the box in every strip: a needle with thousands of matches took 72 MB of instances and 300 MB of buffers in one frame.
0.97.02026-11-07 21:40 UTCrelease

Changed

  • ui.find_sweep (breaking): a find in a lazy column reads the column a slice of items at each frame (FIND_SWEEP_ITEMS), from the top down, instead of building all of it in one frame: a long document no longer freezes the window when a needle rests. It returns the items this build makes for it, given to ui.lazy_begin(sweep = ...) (was lazy_begin(all = find_sweep())); the text of the scope around the items (the column's own boxes, before them and after them) is read too, in reading order. Until a sweep ends, what the last one found stands; ui.find_progress says how far it is, and find_count while find_pending is what it has read so far. A match not counted yet has the index -1.
0.96.02026-11-07 15:34 UTCrelease

Added

  • ui.press_hand: the press held on one box goes on on another, with what it keeps (ui.press_data), for a gesture whose item is built in another place while it lasts: a tab dragged out of a list into a grid of pinned ones, whose boxes have other parents, stays one drag.
0.95.02026-11-07 15:31 UTCrelease

Added

  • Contrast: ui.luminance and ui.contrast (WCAG's ratio), ui.to_oklch / ui.from_oklch for linear colours, and ui.readable(fg, ground, ratio): the colour moved along its OKLCH lightness, its hue and chroma kept, only as far as it must to read on the ground (lighter on a dark one, darker on a light one).
  • The system's light / dark, on Windows too, and when it changes: platform.dark_mode_preferred() reads Windows' app mode (AppsUseLightTheme) as it read the portal and GTK on Linux; platform.color_scheme_serial() moves when the choice may have changed (WM_SETTINGCHANGE "ImmersiveColorSet", the portal's SettingChanged): an app that follows the system compares one integer a frame.
0.94.02026-11-07 14:24 UTCrelease

Changed

  • Selected text reads on its selection: the selected part of a selectable box's text (labels, paragraphs, rich paragraphs) is painted again over the selection in the theme's new "selection text" colour (by default the text's). A faint text, a dimmed run, was lost on the selection's colour.
0.93.02026-11-07 13:45 UTCrelease

Changed

  • The wheel scrolls as the system says: a notch moves platform.wheel_lines() lines (Windows' setting, lines per notch, characters across; three on Linux), each ui.WHEEL_LINE_PX (100/3 logical px, a browser's line) at the window's scale, in whole pixels; where the system says a page, a page less a line. Every view scrolls by ui.wheel_step(box, axis), text fields too. Before, a notch was 4 em of the box's font whatever the setting.

Fixed

  • A tab is drawn as space: font.TAB_SPACES (4) spaces wide, the same wherever it is (measured as shown), with a space's glyph. Fonts have no glyph for it: it was drawn as a missing one (a box) in code and in tools' output.
0.92.02026-11-07 11:53 UTCrelease

Added

  • host.host_adopt, hooks still and after_frame, Host.times: a window and a renderer an application made in its own order of start become a host; a window whose picture would not change is not built; what a program does between two frames goes after the picture; the last picture's draw and present times.

Removed

  • ui.Reorder and ui.reorder_frame are gone: the drag of a reordered list is kept on the press of the item's box (ui.press_data) and ends with it (the button went up, the box went, the user left the window). The procedures take the item's box key in place of a ^Reorder and an id: reorder_begin(item, moved, threshold, press, slot), reorder_dragging(item), reorder_item_pos(item, slot, pointer, lo, hi, rate) (its animation keyed by the item's box too). Lists whose items share ids drag apart, the box's key being its list's.
  • ui.Dock.held is gone: ui.dock_held(&d) asks the press whether the left button holds one of the dock's controls (a tab or a floating panel's title, a handle, a floating panel's corner). It keeps nothing, so it ends with the press (the release, the box held going, the user leaving the window) and says the same at any time of the frame. Write ui.dock_held(&app.dock) where app.dock.held was read.
0.91.02026-11-07 09:53 UTCrelease

Added

  • ui.lazy_pin, ui.lazy_pinned: the view stays on an item, a given distance into it, placed after each layout whatever grows around it; what the last layout found of it says when it has settled.
  • ui.press_data: what a gesture keeps lives on its press: the zero T when the press began, the same while it lasts, gone when it ends by whatever way (release, its box gone, the user leaving the window). A press of the same box again, even in one batch of input, starts from zero.
  • ui.window_clipboard_get, ui.window_clipboard_set: Build_Params' clipboard procedures for the system's clipboard of the build's window, so a program no longer needs a global to reach its window.
  • platform.events_waiting: whether a window has something for its next poll_events, without waiting. A loop of several windows asks each before it sleeps, because the poll of one window of the thread takes the others' messages.
  • host: a window as an object, above ui and render. host_open, host_frame (pace, input, resize, builds, picture, present), host_close, and hosts_wait / hosts_due / hosts_frame for several windows on one renderer. Hooks cover what a rich application's frame does of its own: params, input, builds (several in a frame: host_build), hold (no picture this frame), after_build, before_input, dragging, rest_frame. It keeps the orders that matter: input is read with the renderer given back, a step of a resize is that window's alone, buffers keep the monitor's size, and only the first window is paced. examples/hello and examples/todo use it; the way by hand is unchanged.
  • render.surface_scope: surface_use until the end of the calling scope, so a frame on a second window cannot forget to go back.
  • ui.view_limit, ui.view_reveal, ui.view_reveal_offset, ui.view_jump, ui.view_shift: the verbs of a scroll box's view, for code that wrote view_off, view_target and view_anim by hand. view_reveal says whether the target moved, so a caller decides on scrollbar_reveal itself; view_shift keeps a glide under way and leaves a target at the top there.

Changed

  • A lazy column looks each item up once per build, in one map: an item's height is noted after the layout that placed it.
  • Splitters, dialog grips, floating panel corners, range sliders: what their drag starts from is kept on the press (ui.press_data), not in the State's one drag payload. ui.drag_store and ui.drag_load stay, for gestures that read an earlier press (panes).
  • render.Window_Target: what is one window's is now a struct of its own, included by using in Renderer and Surface, and Wgpu_Window on the WebGPU side; surface_use exchanges them whole, so a new window field needs no list. Field access is unchanged, except that Surface.gen and Surface.space_epoch are now Surface.swap_gen and Surface.swap_space, and Surface.wgpu_backing is a ^Wgpu_Window.
  • A row taller than its view keeps its top: ui.list, menus, reorder_offset, the focus and the accessibility reveal now follow the rule ui.vlist had, instead of showing the row's bottom.
  • A box's name and text: copied as they are at each build, without going through the formatter.

Fixed

  • WebGPU second windows: a window's frame format now goes with it through surface_use, as its offscreen target does on Direct3D 11.
  • Scrolling: dragging a scroll bar's thumb or stepping a long menu ends a glide under way, which could pull the view back for a frame; a ui.vlist whose rows moved during a glide no longer starts the glide over.
0.90.02026-11-06 21:33 UTCrelease

Added

  • render.surface_init under_children: a composition surface below the window's child windows. A web view moved into a window with a composition surface stayed hidden behind it.
0.89.02026-11-06 20:59 UTCrelease

Added

  • ui.tween: a value that reaches its target in a set time, gently at both ends, for what the eye follows from end to end.
  • draw.glyph_run_stroke: the outlines of a glyph run as a line of a width.
  • font.glyph_ink_extent, font.run_ink_spans: where the ink of a glyph or a run crosses a band, from the outlines, kept per glyph and band: the gaps of a skipping underline.
0.88.02026-11-06 20:06 UTCrelease

Fixed

  • Text in a dialog or a popover can be selected: their panel took every press, so a plain .Selectable label in it selected nothing, showed no text cursor, and a label made .Clickable to get the press counted as a button. The panel is now .Press_Stop (new Box_Flag: clickable only so that what is under it gets no press): a press on it is a press on nothing, selectable text in it takes its own, and a selection stays on the surface it started on, whatever is built behind it.
0.87.02026-11-06 19:44 UTCrelease

Added

  • push_clip_polygon takes several contours: a point past render.POLYGON_BREAK ends one, with no edge to the next: a clip with holes.
  • draw.Path: lines, quadratic and cubic Bézier curves, arcs and rounded rectangles, flattened to a tolerance, filled (path_fill, nonzero or even-odd, holes included) or stroked (path_stroke, round ends and joins, even in translucent colors), with path_contains for hit tests, path_bounds, bezier_cubic_at, bezier_quad_at and draw.bezier.
  • draw.line, draw.polyline: a line of any angle, with round ends and antialiased edges.

Changed

  • render.release_targets takes the textures to leave: a picture still on screen stays, for the program to carry over to the new generation.
0.86.02026-11-06 11:52 UTCrelease

Added

  • platform.drag_silence_limit: for tests, how long a drag may stay silent before it is given up.
  • Signal.pointer_clicked: the click was the button's, so the pointer is where it says. clicked stays true for Enter, Space and a screen reader too.
  • platform.cancel_close: takes back a Close the app answered by staying open: is_closed no longer stays true for good.
  • Event.lost: a Mouse_Release made because the system took the pointer. It is no click, and a middle button lost soon after its press no longer latches autoscroll.
  • Event.Frame_Press: a press on the window's frame or caption (Windows). What the window was doing ends with it: a latched autoscroll waits for the next click anywhere, and a click there came to nobody.
  • font.atlas_end_frame: a draw context between frames holds no page (draw.end_frame calls it): a context that stopped drawing no longer keeps the atlas from reusing pages.
  • devtools.stop(srv, s): for a program that goes on after the server, the ui.State it served: the clients' edits, the highlight and the accessibility tree asked of it end too.
  • Signal.pointer_pressed: the press was the button's, so the pointer is where it says and it is held. pressed stays true for Enter, Space and a screen reader too. ui.slider and the colour pickers read it: Enter on them no longer set the value from wherever the pointer was.

Changed

  • ui.Reorder holds the press that drags (held) in place of active: a release and a press read in one frame end the drag, as does the box held going away. Read reorder_dragging.
  • Escape in a dialog goes to the dialog on top at the end of the build, and closes it at the next one: read in the frame a new dialog opens, it closed the one under it. open turns false one build later than it did.
  • ui.Autoscroll says where a session is in one field, phase (Autoscroll_Phase: Off, Holding, Latched), in place of active, held and latched; every end zeroes it, with the box it scrolls (box). State.auto_box and State.auto_pressed are gone.
  • draw.open_plane_frame: ok = false for a plane being recorded, which draws nothing (Open_Plane.mode replaces hit).
  • A capture of a frame WebGPU could not get (a hidden window's surface) says Failed: it stayed Pending.
  • A box that goes lets go of what held it: a press, the focus, a click on the way to a double one. A box of a vlist or a lazy column has only left the view: the focus waits for it there.
  • devtools: what a client started is its own. A screencast, a recording and the tree of DOM have one client: another's Page.startScreencast, its Toolkit.*Recording, DOM.undo / redo / requestChildNodes and the like are refused, and its stop and acks change nothing. A recording ends with its client, typed text included; a highlight goes with its client; what a client held down, buttons and keys, goes up when it goes.
  • instance.Owner_State: an Owner says where it is (None, Claimed, Serving, Closing) in Owner.state, which replaces Owner.closing. A second owner_start answers false and opens nothing, a file descriptor 0 is one like any other, and a window that could not be destroyed no longer points at its Owner.
  • config layers: Entry.locked is gone, is_locked reads the layer, and an observer sees a policy value locked. .Default no longer goes over a layer, reset under a policy changes nothing, load_file wants the tag of the layer it reads (POLICY_MAGIC for .Policy), register answers how many waiting values it refused, a user's value that its definition refuses stays in the profile, and dirty counts a change under a higher layer and no longer a file just read. restore survives an observer that registers.
  • A dialog gives the focus back: what had the focus when ui.modal opened has it again when it closes, unless something else took it meanwhile.

Removed

  • render.Pacer.latency: Present_State.max_latency says what the swap chain has, a new one included.

Fixed

  • A press on a row of an open menu leaves the keyboard focus where it was: choosing an item of a field's context menu with the mouse took the focus from the field.
  • testkit/session: advance in a build ends the test (it hung to the test's limit), draw_context on an attached session says so, Session.damage is the next frame's only, and the guard against two tests at once is atomic.
  • ui.a11y_tree is empty when no tree was made (it answered with the last one), and an active descendant not made in this build is not named.
  • Title bar regions are forgotten with no caption or window too: buttons no build makes any more stayed in chrome_regions.
  • A box of the last build looked up during a build has no text, name, accessibility or custom data: they pointed into memory the build had freed.
  • ui.theme_destroy leaves an empty theme: a palette applied after it appended to freed memory, a second destroy freed it twice.
  • ui.color_picker: the text left by the user is written as the picker writes it: a spelling of theirs (#F00) or what is no colour stayed. Color_Pick.shown is gone.
  • Find in page: a sweep's wait is a timed wake, not a frame at each refresh, and a sweep during a glide reports the place in the content (the scroll had moved after the layout). Its clock is the build's.
  • Toasts ask for frames only while they fade, and a wake between; ui.set_toast_area lasts one build, whether toasts_build ran or not.
  • Docks: two requests in one frame are both done, and the stack's menu of a closed panel closes.
  • vlist: vlist_scroll_to on a list with no box yet is kept for its first build, the wheel ends the wait for a row with the reveal, and a row of no height is not waited for over 600 builds.
  • list and vlist: rows gone from under the active row say changed; no row is nothing to reveal (reveal stayed armed); a row selected before the first build comes into view with no other frame asked for.
  • ui.text_edit_caret_rect says false once the editor is built no more.
  • text_edit: the column of Up and Down ends with every other move and edit (undo, redo, select all, cut, paste, Ctrl+Backspace, a double click kept it).
  • The caret of a line_edit is solid after an arrow key, as a text_edit's is: it could stay in the off half of its blink.
  • Undo in line_edit and text_edit: a move of the caret ends a step (type, arrow, type was one), and a field's steps go by the build's clock, as a text area's do.
  • Menus: a press of a side button outside closes them; a Right or Enter on a submenu that turned disabled opens nothing later; a menu opened from the keyboard selects its first item once, so a pointer on a disabled row leaves nothing selected; a menu opened from inside a menu's block opens when the block ends, its rows not mixed with the old one's.
  • ui.stepper: held with the pointer off its button it waits, as a scroll bar's arrow does.
  • A press with no pointer (Enter, Space, a screen reader) no longer takes the place of a drag going on (splitter, pane_split, the edges of modal_sized), sets a range_slider from the pointer, or moves the caret of a line_edit or a text_edit to it.
  • ui.pane_split: a strip pulled out and pushed back under the snap stays folded when let go, and a screen reader's value on a folded pane says toggled. What a press was on is one state (Pane_Press).
  • ui.modal_sized: a press on an edge that does not move chooses no size (the size a small window clamped it to stayed for good), and a double click on an edge stays at the preferred size while the button is held.
  • platform on Windows: a surrogate pairs only with the unit right after it, a pointer whose end the system no longer describes still ends, a resize made of inner frames has its burst.
  • Clipboard on Linux: a selection another program cleared is not read back, X11 asks the server who owns what it took, a late answer is not the next read's, a paste leaves no property, an INCR reader that left is given up, XdndSelection is let go, a large drag goes by INCR, a reader that closes its pipe no longer ends the process on Wayland. Windows: a real window's clipboard_changed reads the system's clipboard with an offscreen window open.
  • platform on Linux: a seat that loses its pointer or keyboard and gets it back works again, a scale change of the output or of Xft.dpi reaches the windows, the display is read again after a change of the output.
  • platform on Linux: a window has one state (Show_State), read back from the server: nothing shown is not visible, a state asked before the map reaches the window manager. set_placement restores a maximized window on every backend and applies at once on a shown Windows window, an offscreen set_fullscreen(false) leaves another state alone, toggle_maximize leaves full screen on Windows.
  • Accessibility on Linux: the bridge is read by the window's loop, it keeps the whole tree an update changes (platform.a11y_tree_merge), a11y_state is Off until a reader runs (org.a11y.Status), a bus that refuses is asked once.
  • File dialogs on Linux: a bus without a portal falls back to zenity and kdialog, the portal's answer cannot be missed, its filter is the user's choice, a lost bus is Failed and not Cancelled. idle_inhibit ends with its window.
  • Tray on Linux: each icon has its own object, a failed create leaves nothing exported, a panel that restarts gets the icons again (Recreated), a menu that changes is told (LayoutUpdated), a notification has a default action, so Notify_Click can come, and one that closed is not replaced by the next. Windows: an icon a restarting shell refused is added at its next change.
  • Drag and drop on Linux: a drag says where it is (Drag_Phase). X11: only the button that began it ends it, Escape gives it up. Both: the limit is one of silence, a target that took a drop has five seconds, the target hears what the source allows and a Move is told, a source that dies ends its drag, a target disabled under a drag says Drop_Leave, no event of kind None. A drag script is used up however drag_start ends. drop_inject of anything but Drop_Enter needs a drag over the window.
  • platform on Linux: set_cursor to the cursor the window had takes a custom cursor off the screen, releasing the shown custom cursor shows the window's own, Wayland sends a cursor only for the window under the pointer, set_cursor_custom's scale is used.
  • platform: a release comes once and only of a press made here, on every backend; a pointer taken with a button held makes its release on Wayland and when an X11 window is unmapped; X11 says no Mouse_Leave under a press, as a capture on Windows; a key held when the focus goes makes its Key_Release. Activate comes once for a change, and a window is neither focused nor active until the system says so.
  • platform.poll_events: the batch stays whole while the app reads it. What runs from an event may pump the system (a paste on X11, drag_start), and w.events may then move.
  • platform: wait_event sees all that ends it. On Linux the session bus and the accessibility bus (a tray click answered at once), injected events; on Wayland and Windows a repaint asked for; on Windows the events not handed out; after input_pending, what it kept.
  • platform on Linux: a closed window's last notices go to nobody (the X11 window that polled read as minimized), a window closed under a drag or an input method leaves nothing that points at it, a compositor without xdg-shell fails every open_window, and a server that goes away closes its windows (Display_Link) instead of leaving a loop that never hears of it.
  • platform on X11: typed text follows Shift, AltGr, Caps Lock and the layout (a key is read with the modifiers and the group of its event), a change of keymap is followed, a held key says repeat. On X11 and Wayland a key keeps its name whatever it types: Shift+1 is N1, Shift+Tab is Tab, the keypad without Num Lock is Home, Left...
  • Focus keys: an arrow and a Tab read in one frame both move the focus, and ui.focus_step says its direction (ui.tab_direction): a rich paragraph entered backward that way starts at its last link.
  • Signal.mods follows Key_Release and Mouse_Release: a modifier let go during a drag is no longer held.
  • ui.rich_paragraph: Enter and Space choose the link that has the focus wherever the pointer is (they took the link under it, or nothing over plain text), and a screen reader's focus on a link of a paragraph without the focus stays.
  • The build lifecycle: ui.building() stays true to the last line of end_build; end_build ends the build that is open, whatever use selected since, and asserts that there is one; ui.destroy in the middle of a build leaves none open on the thread. end_build also asserts the list and menu scopes.
  • Selected text is one state (Sel_Phase): no drag goes on with its selection gone (the text cursor and the frames stayed), select_box ends a drag, and a press on a button between two presses on a text breaks their double click.
  • ui.next and ui.a11y before what builds nothing (a closed modal, modal_sized, ctx_menu or menu_nested, a skipped lazy_item) no longer land on the next box.
  • An open menu no longer gets the keys something else took first (Ctrl+zoom, autoscroll's Escape).
  • Autoscroll: a move of the window ends a session, as its documentation said. A move read with the release counts against a tap. What ends a session no longer ends the frame's input: a middle press read with it starts the next one, and the Escape it took does not reach an open menu.
  • The window the user leaves (Event.Activate, Build_Params.inactive): an open menu closes, a held button ends with no click, the modifiers are forgotten, a selection stops following the pointer, autoscroll ends. A dock drag cut that way drops nothing.
  • A box that goes takes what held it: at the end of a build a press, the focus, the first click of a double click and the link of a rich paragraph let go of a box the build did not make. A key that comes back later is another box; a focus given ahead of its box stands. splitter and pane_split say finished when their box is back.
  • ui.set_post_wake: the app's wake is called with a nil user too, and a nil wake goes back to the window's. Of two windows of a State, posts wake the one that stays when the other is destroyed. A post on a State that is gone is refused.
  • ui.post_configure runs every call that waits, not a build's budget of them (the rest were lost), and a closed queue stays closed.
  • draw.offscreen_end: closes the layers left open in the target (it answered 0 and left the target open).
  • font: the emoji font comes back on the next emoji when whoever shared its id unloaded it.
  • font: a word being shaped while the word cache is cleared is shaped again, and no thread keeps the width of a word cleared under it.
  • font: a glyph the COLR interpreter was drawing when the settings changed is drawn again with them, and its outlines follow a new provider or tolerance.
  • font: glyph_outline and slug_glyphs answer on a state never started (they read a nil backend). Text_Backend.face_close, which nothing called, is gone.
  • draw.destroy: in the middle of a recording it no longer leaks the lists of the frame.
  • draw: a layer or plane that replays a picture lacking a pending color glyph is not kept: the glyph comes when it is ready.
  • Frame statistics on WebGPU: frame_end(vsync = false) on a Fifo surface counts the vblank it waits for, a reconfigured surface starts its run over, and vblank_grid says unknown once the compositor stops answering (Direct3D 11 too). gpu_ms starts over with a new device.
  • draw: a mask layer with no target of its own draws nothing (its drawing landed in the content); Open_Layer says what it is and what a mask draws in with Layer_Kind and Mask_Draw.
  • draw: a layer or a plane owns what is pushed in it: pops stop at where it started and at the root (they panicked there), what is left pushed ends with it, and layers and planes left open inside one another end in the order they were opened. A recording cannot close a plane of the frame.
  • draw: a second end_frame does nothing (it drew the frame twice).
  • render.canvas_read_ready and canvas_read_finish on a read begun before a device loss: ready at once, and the finish says it failed. They used the old device's objects on the new context.
  • 2D canvas layers nest. A filter pass inside an open layer leaves it open, what is drawn into a layer that could not be made or was freed goes nowhere instead of onto the canvas, and a layer replaced by a filter pass gives its texture back to the pool. canvas_set_opaque on a source texture no longer outlives it.
  • A texture a recovery could not make again: Texture_Kind.Failed, it draws nothing, texture_size says {0, 0} and destroy_texture frees its slot. A frame crashed on one (Direct3D 11), and its slot was lost.
  • render.set_fixed_surface survives a device loss: the chain made again had the window's size, and a window larger than it was clipped. A translucent window that fell back to opaque during a recovery tries DirectComposition again at the next one.
  • render.readback_poll says Failed for a read-back whose frame did not run, which stayed Pending for good, and for an id of another renderer. A renderer destroyed takes its read-backs with it.
  • font: a system fallback that goes character by character (fontconfig) no longer cuts a sequence: joiners, selectors and what follows a ZWJ stay with their base.
  • font: the Slug store follows what its glyphs depend on: color_glyphs and color_engine reach the glyphs of color faces, a new provider is asked for what had no curves, no room is not kept, and keys hold the slot of a face, so what a face leaves goes with it at any generation.
  • Partial redraw: a frame that stopped halfway (Direct3D 11), that had no surface texture (WebGPU) or whose region could not be cleared leaves nothing the next region starts from: the next frame is whole. Their rectangles were lost, or composed onto a blank target.
  • A window that cannot be remade (Direct3D 11, WebGPU) counts as a device lost: the next frame_begin tries again, where it drew into nothing and the next clear crashed. A swap chain that ResizeBuffers finds gone is a loss too, and a size asked while there is no swap chain is kept.
  • font: a page reused uploads whole to a context that had it: the old bitmaps no longer stay in its texture between the new ones.
  • render.surface_destroy of the Surface in use gives the renderer back its own window first: it tore that window down.
  • Second windows on WebGPU: a window set aside is made again after a recovery and follows set_blend_space, as on Direct3D 11. Its capture, its clear and its first frame are its own, and surface_destroy frees its frame statistics.
  • font: a color glyph drawn on the color thread whose COLR layers cannot be read shows its outline, as on the drawing thread (it was kept as a bitmap at page 0, out of range when no page exists).
  • A device lost on WebGPU: it is noticed (wgpu-native reports every loss with the reason Destroyed, which was taken for the renderer's own release), offscreen too. A recovery makes the new device first: with none to be had the old one stays and frames draw nothing, where they ended the process on a nil device. Calls that end the process on a device gone (QueueSubmit, DevicePoll, SurfaceConfigure, SurfaceGetCurrentTexture) wait for the recovery.
  • font: the id of a font just unloaded, or of a cascade, no longer leaves blank glyphs for the next face in its slot (Font.dead and State.generation are gone: an unloaded slot is Font_Kind.None).
  • AT-SPI on Linux: the bridge's connection is dispatched once a frame, so what a client asks of the exported object is answered and a lost bus is seen.
  • native/a11y: an update that is refused or finds no assistive technology leaves the deferred focus as it was, and one that would give a subtree a second graft node is refused instead of ending the adapter.
  • arena.Pool: a slot whose generations are spent is retired instead of wrapping, so a handle never comes back to life, even after 2^32 reuses.
  • devtools input and recordings: two Toolkit.click of one batch are two clicks; a drag cut by Toolkit.stopRecording gets its up, a second button no longer breaks a recorded drag, and a right drag replays as one (down and up of tools/cdp.mjs take --button right). CSS.setStyleTexts does all of its edits or none, a ; in a string or a comment no longer ends a declaration, and a frame of a screencast that ended no longer touches the one that took its place.
  • devtools connections: a connection that sends no request is closed after 5 seconds, an upgrade needs Upgrade: websocket and version 13, and a frame RFC 6455 does not allow ends the connection instead of being glued to the message under way.
  • instance on Linux: acquire and send never block past their timeout, with a large message or a full backlog, and an owner that wakes after a sender gave up no longer handles its message as well.
  • config.save_user goes through fsx.write_atomic, flushed: a save that fails never removes the profile, and leaves no temporary file.
  • fsx: write_atomic writes through a temporary file of its own, <path>.<pid>.<thread>.tmp, so two writers can no longer tear a file; replace with durable answers false when the directory could not be synced; read_all no longer returns a replaced file cut to the old size.
  • dbus: connecting cannot hang the window's thread. connect, the SASL answer and Hello each have a limit of 5 seconds, and a signal no longer fails the authentication.
  • dbus: a lost bus closes its socket. conn_fd answers -1 from then on, so the window loop no longer spins on a socket at EOF; nothing more is read after a stream that cannot be parsed, a failed send runs the call_async handlers that wait at the next dispatch, and platform falls back as with no bus. A handler of an expired call that calls no longer panics, serial 0 is never used, and conn_close from a handler asserts. Call_Status.Unsupported, never produced, is gone.
  • Read-backs on WebGPU: a buffer is released outside the table's lock. Releasing one still being mapped may call its callback, which takes that lock.
  • flate: an inflater that failed stays failed (inflate_finish said Truncated, and a later push went on from where it stopped), and nothing is written after deflate_finish (it wrote past the end of the stream).
  • ui.find: a sweep left waiting when its page went away kept needs_frame true for good, and the loop never slept.
  • ui.line_edit, ui.text_edit: the word a double click took collapsed to the pointer at the first frame made with the button down. The drag now goes on by words, as selectable text does.
  • draw: an offscreen target left open is dropped at the end of the frame (it was composited, left its transform on the stack and cut the filters of the layers around it), and a plane left open in a recording ends with the recording (it took the frame's stacks down at end_frame).
  • Dock drags that lost what they held: closing a floating panel while it was dragged ended in a bounds check (docking.odin), a panel closed while its tab was held came back at the drop, a drag whose button went up while the dock was not built dropped when the dock came back, and Enter on a held tab restarted the drag.
  • Dialogs on dialogs: with two open, the one underneath took the focus away at every frame, so a field of the top one could not keep the keyboard, and Tab went through both. Each dialog now knows where it stands among those of the last build: the top one has the keyboard, the others wait.
  • D-Bus: r_skip never returned from a message cut short inside a struct or a dict entry, or from an array of a type that takes no bytes; it ran on the window's thread.
  • DevTools: Page.startScreencast on a window served with no ui.State is refused. It woke the window for good, and an ack dereferenced the missing state.
0.85.02026-11-06 11:04 UTCrelease

Added

  • ui.toast_action: a toast that a click acts on, and dismisses, for one that says what can be done.

Fixed

  • The corners of a floating panel: its panels, drawn after its frame and square, covered the frame's round corners, whose border stopped short of them. They are clipped to the frame now, and its border goes over them.
0.84.02026-11-05 21:10 UTCrelease

Added

  • Text per colour stripe: font.Settings.subpixel_text (.Rgb, .Bgr) gives text a coverage per stripe of the screen's pixels, sharper at few pixels per letter, on Direct3D 11 with the atlas (DirectWrite) and on WebGPU with Slug (three samples a third of a pixel apart). Blended per channel in the frame's own target; in a layer, or turned, the same text is grey. font.system_subpixel_text says what the system does, render.text_subpixel_supported what the renderer can.
  • The site says what it is when it is shared: a card, Open Graph and Twitter tags on every page, an Atom feed of the versions, a sitemap and a manifest (tools/site_meta.mjs, at deployment).

Fixed

  • Read-backs from several threads: the process's table of read-backs was allocated with the allocator of whoever wrote in it first, and freed by whoever emptied it, through an allocator that could be gone. It is on the process's heap.
0.83.02026-11-05 11:57 UTCrelease

Added

  • The side buttons of the mouse: Mouse_Button.Back and .Forward on Windows, X11 and Wayland, ui.mouse_pressed(.Back), and back and forward over the DevTools protocol.
0.82.02026-11-05 11:05 UTCrelease

Changed

  • Middle-click autoscroll goes five times faster by default: up to 15000 px/s, reached 300 px from the anchor, the speed doubling every 60 px (DEFAULT_AUTOSCROLL): the curve Wren settled on. It was 2800 px/s at 420 px.
  • A target_hz above the screen's rate is made: 120 on a 60 Hz screen is up to 120 frames a second while something moves (none at rest), each on its slot, none waiting for the screen, shown at once (Cadence_Plan.above): it stayed at the screen's rate. The screen shows the newest: not smoother, but each refresh has fresher input.
0.81.02026-11-05 09:12 UTCrelease

Added

  • ui.modal_sized: a dialog of a size of its own, centered and always within the window: it opens at what it prefers, the person resizes it by its edges and corners (the opposite side follows, it stays centered), a double click goes back; the size is the application's to keep. ui.modal stays in the window too: narrower if it must, higher when what is in it would pass the bottom.
0.80.02026-11-05 07:44 UTCrelease

Added

  • The output of frames is the application's to choose: Pacer.choices (a ceiling, a rate; read at the next frame, render.pace_frame planned with none), and Cadence.uncapped: no slot, no wait for the screen, every frame shown at once, for a diagnostic or a benchmark. A window at rest stays at rest.

Changed

  • platform.wait_slot: render.pace_frame no longer sleeps through a frame's slot: input is taken as it arrives (time-stamped, kept for the next poll_events), a key or a button ends the wait, a pointer that moves and the wheel do not. wait_handle has until_press. An offscreen window does not wait.
0.79.02026-11-05 06:54 UTCrelease

Added

  • ui.find_sweep, ui.find_all, ui.find_pending, ui.find_refresh: a find in page over a lazy column reads everything once for a needle (when it rests 80 ms, and again if what is built no longer answers), and stays lazy between: lazy_begin(all = find_sweep()). In opencode native, a frame while finding 40 -> 1.7 ms on a conversation of 150 answers.

Changed

  • Text cut with an ellipsis: where it is cut is kept (by text, font, size and width): it was measured rune by rune at every frame, through the shaper. A frame at rest in opencode native 1.65 -> 1.10 ms.

Fixed

  • render.pace_frame waits for the frame's slot, after the swap chain and only what is left of it: Frame_Decision.wait_ns was worked out and not made, so nothing capped the frames of a screen that does not hold the app back. platform.precise_sleep: a wait under the system's tick.
0.78.02026-11-04 12:52 UTCrelease

Added

  • Dock_Options.strip_last: boxes after a stack's fold and menu buttons, the strip's last control (a window's close button stays at the far right; strip_end comes before them).
  • ui.field_num_step: the number at the caret of a focused field stepped as browsers' style editors step it: Up / Down 1, Page Up / Page Down 10, Shift 10, Alt 0.1, Ctrl 100, and the wheel over the field with the same modifiers; its unit and the text around it stay (margin: 10px 5px, rgba(10, 20, 30, 0.5), calc(100% - 12px)), a number inside a word or a hex colour is none, the number stepped is selected and the step is an edit of the field's history. ui.num_step_text and ui.num_step_delta do it on a string and a key press.
  • ui.color_picker: a colour picker for a ui.Color_Pick the app owns (color_pick_set, color_pick_rgba, color_pick_text, color_pick_destroy; color_picker_width): a saturation / value square, a hue bar and an opacity bar beside the colour it was opened with (a click takes it back) and the new one, a switch of the text's format (hex, rgb, hsl, oklch) and the colour as text, applied as it is typed. Every part is a Tab stop, moved by the arrows (Shift: a tenth; the hue by degrees), and screen readers see sliders, a radio group and a field. No eyedropper: the platform layer reads no pixel of the screen.
    • ui.color_parse / ui.color_text: hex, rgb() / rgba(), hsl() / hsla() and oklch() read and written, in the style they were written in (Color_Style: the format, the legacy comma syntax or the short hex); srgb_to_hsv, hsv_to_srgb, srgb_to_hsl, hsl_to_srgb, srgb_to_oklch, oklch_to_srgb.
    • ui.alpha_picker, ui.checker_draw; hue_picker takes horizontal; sat_val_picker, hue_picker and alpha_picker take the keyboard and tell screen readers their values.
0.77.02026-11-04 08:14 UTCrelease

Fixed

  • A folded pane's strip in the theme, a fold button on the stacks that fold, tooltips the size of their text: the strip of a folded side (pane_split, a dock's folded split) painted nothing at rest and the palette's raw hover colour (opaque white on a dark theme) under the pointer; it now has the theme's pane_strip background (by default the bars' surface) and the theme's hover_fill over it, and its chevron is larger (PANE_CHEVRON_EM 1.4, also pane_toggle's). A dock's stacks on a side that folds have a chevron button at the end of their strip, as large as the menu's button (pane_toggle, which now takes the size next gives it; a Tab stop, Enter folds); a strip's tabs are in the room its end's buttons leave, so tabs too many for a narrow stack are cut and the fold and menu buttons stay in view (they were pushed out of the strip). A tooltip's content inherited the app's style, so under a style that fills it was as large as the window; a size relative to the window is now the content's own in it, ui.tooltip_text(text) is as wide as its text up to TOOLTIP_MAX_WIDTH_EM and wraps past it, and tooltip goes above the pointer when it does not fit below (TOOLTIP_ABOVE_EM); its first frame measures it unseen and asks for the next one, which places it (it was placed by the size of 10 x 3 em it was taken to have, and stayed past the window's edge when nothing else made a frame). Tests docking a_folded_strip_takes_the_theme_colours, the_fold_button_folds_and_the_strip_brings_it_back, the_end_buttons_stay_in_view_past_too_many_tabs, a_tooltip_over_a_tall_strip_fits_its_text; ui_robust tooltip_places (above the pointer at the bottom).
0.76.02026-11-04 07:50 UTCrelease

Added

  • ui.menu_at(p) and ui.wheel_consumed(): the wheel over an open menu is the menu's: menu_at says whether a point is on a level of the open menu (a submenu, a nested menu, a drop-down's list) as the last build laid it out, so an app that routes the wheel to its own content before it builds the interface (a browser's page) gives it nothing there; wheel_consumed says whether this build's wheel went to the interface (a box that scrolls under the pointer, or a menu's level, one that fits included). A menu taller than the window scrolls under the wheel, one that fits takes it and does not move, down and across; the scroller under either gets nothing (test keyboard menu_takes_the_wheel_over_it).
0.75.02026-11-04 05:02 UTCrelease

Changed

  • Slug glyph data built in half the time: slug_build sorts the curves of an axis once (one u64 key each) and puts each curve in the bands it spans, found from its bounds against the bands' own; it sorted the curves of every band and tested every curve against every band of each of the ten band counts it tries. The same data (test slug bands_are_their_definition); 400 glyphs of a face, best of 5: Segoe UI 5.5 -> 2.8 ms, Times New Roman 8.3 -> 3.9 ms, Nirmala UI 10.0 -> 4.6 ms.
0.74.02026-11-04 03:56 UTCrelease

Changed

  • font.color_prepare, textures zeroed on the GPU: font.color_prepare makes what color glyphs are drawn with (Direct2D on a WARP device, about 20 ms) for an application to call on a thread of its own while it starts; the first color glyph a frame looked up made it on the drawing thread. Textures are made render targets too and zeroed by a clear on the GPU (ClearRenderTargetView) where they were zeroed by uploads of zeros: a 2048 x 2048 glyph atlas page 6 ms (R8) and 3.5 ms (RGBA) of the CPU before, its first frame's.
0.73.02026-11-03 23:38 UTCrelease

Fixed

  • The ASCII case helpers are package ascii (ascii/ascii.odin: ascii.lower, upper, lower_byte / upper_byte, equal_fold, has_prefix_fold, contains_fold), no longer base's ascii_*: a package named base, which font, devtools, platform and config now import, clashed with an app's own package of that name (Odin wants one name per package in a program).
0.72.02026-11-03 23:27 UTCrelease

Fixed

  • ASCII case for names and protocols: strings.to_lower, to_upper and equal_fold of Odin dev-2026-11 fold by Unicode (the Kelvin sign U+212A is k to them, the long s U+017F s), where names and protocols want ASCII. New in base (base/text.odin): ascii_lower, ascii_upper, ascii_lower_byte / ascii_upper_byte, ascii_equal_fold, ascii_has_prefix_fold, ascii_contains_fold. Switched to them: the DevTools server's header names and Host (Ho\u017Ft: is no Host, localho\u017Ft no localhost), CSS colour keywords, nodeName, the accessibility roles and actions; font family names as cache keys (Windows, Linux, macOS) and fontconfig's / Core Text's answer checked against the family asked for (DejaVu San\u017F no longer loads DejaVu Sans); preference booleans; the GTK theme name, file extensions for MIME types on Linux; the changelog tool's type and slugs, tk's checksums and emoji version line, run_tests' groups, the examples' option names. Unicode stays for user text (find in page, fuzzy matching, type-ahead, the settings' and DevTools' searches, the test session's text lookups), display text and Windows paths. Lint tests/unicode_case (a step of run_tests): a call of strings.to_lower / to_upper / equal_fold or unicode.to_lower / to_upper in the toolkit's sources fails unless tools/unicode_case_allowed.txt lists its line with why; an entry that matches no line fails too.
0.71.02026-11-03 20:39 UTCrelease

Added

  • Docking (ui/dock_model.odin, ui/docking.odin, docs/docking.md): the app's panels in stacks of tabs the user rearranges. The layout is the app's ui.Dock, flat data: a tree of nodes in one #soa array (leaves: a stack of panels and the one shown; splits: an axis, a ratio, the second side folded), floating roots at a place of their own, the panels (the app's u32 ids) in tab order; dock_add, dock_move (into a stack at a tab, at a side of one, at an edge of the space, floating), dock_move_node, dock_redock, dock_close, dock_activate, dock_set_split, dock_layout, dock_target_at; one line of text (dock_format / dock_parse: unknown names dropped with the stacks they leave empty, the panels it does not name placed by the app, any other text refused with the dock left as it was). dock_begin / dock_panel / dock_end build it: a tab dragged out shows the drop targets (five squares over the stack under the pointer, four at the edges of the space, the strips between their tabs) and a translucent preview of where it lands; let go elsewhere it floats (an overlay of the window with a frame and a shadow, moved by its strip with the drop targets, resized by its corner, docked back by a double click); Escape cancels; the handles are pane_split's (minimum sizes, fold); close buttons, a middle click; the stack's menu reaches every drop target from the keyboard; the arrows along a strip, Ctrl+Shift+arrows move a tab, Ctrl+Tab goes through a stack; roles tab list, tab (controls its panel), tab panel, separator. Theme entries dock_preview and dock_marker. Example examples/docking; tests tests/docking (the model and the text; the drags, the keyboard and the menu through the test session).
0.70.02026-11-03 17:38 UTCrelease

Changed

  • ui.build_events: a copy of the last build's input, kept by the state until the next build (it was the caller's slice, valid until its next poll).
  • Built with Odin dev-2026-11 (pinned by SHA-256 in the CI, docs/getting-started.md): core:image's pixels are a [dynamic]u8, nothing keeps a reference to a stack past its procedure (the compiler's new escape analysis: the tests' globals are cleared, ui.use keeps the caller's state on purpose), core:compress/deflate checks flate's streams in the tests and docs/flate.md compares both (flate stays for streams and deflate_runs). wgpu-native stays 29.0.1.1.
0.69.02026-11-03 16:34 UTCrelease

Added

  • Menus taller than the window scroll: a level (menu, submenu, nested menu, dropdown list) whose content is taller than the window is as tall as the window, placed again at each frame (a window made shorter while it is open), and scrolls: the wheel, its scroll bar (a press on it is not a press outside; the rows leave it room), the keyboard's selection brought into view (Up / Down / Home / End / Page Up / Page Down, type-ahead to a hidden row, a dropdown's current value from menu_select). A menu that fits is placed as before (flipped to the other side of its anchor, else shifted to stay whole). ui.menu_item_rect(depth, idx): where an item was laid out. Tests menu_taller_than_the_window_scrolls, menu_near_the_bottom_flips_or_shifts

Changed

  • Menus are dense: MENU_ITEM_EM is 1.9 (was 2.2): rows of 29 px for 15 px text, as Windows 11's and Chrome's menus (times the density: 22 px at DENSITY_COMPACT, 34 px at DENSITY_MAX); the padding above the first item and below the last is 0.25 em (was 0.3), a separator's gaps 0.2 em (were 0.25); the icon cell is as tall as the row. Test menu_rows_follow_the_density
0.68.02026-11-03 15:17 UTCrelease

Added

  • ui.pane_split, ui.pane_toggle, ui.Pane: panes the user resizes from a few em (PANE_MIN_EM) to all the room but a few em for the other side, folds (a drag under half the minimum, a double click, Enter, a chevron button) to a strip that brings them back (a click, Enter, a pull), and places at the side or below (pane_axis, pane_place_menu); the app owns a Pane per split (sizes per orientation, folded, place) and saves it through Pane_Options.on_save; pane_format / pane_parse make it a line of text; menu_move_to lists "Move to" items for a tab that may go to another strip. Keyboard (arrows, Home, End, Enter) and accessible (a separator with its value, expanded). examples/panes uses them. Tests tests/panes/pane_split_test.odin
0.67.02026-11-03 13:49 UTCrelease

Added

  • ui.set_scrollbar_arrows: classic arrow buttons at both ends of the scroll bars of scroll boxes, off by default (the bars stay as they were): each as long as the bar is broad, taken from the track; a press scrolls a step (3 em, eased like the wheel), held it repeats after 250 ms every 50 ms while the pointer stays on it. ui.scrollbar_arrow_rects gives where they are; draw.triangle fills a triangle in one-pixel rows (the arrows' glyph). Test arrow_buttons_step_and_repeat
0.66.02026-11-03 11:23 UTCrelease

Added

  • ui.menu_nested_open / ui.menu_nested_open_rect / ui.menu_nested: a menu opened from inside an open one, at a point or under a rect (a row's context menu in a drop-down panel), over it, the menu staying open behind it. It closes like a submenu: a press outside it closes only it, Escape closes it, choosing an item closes the menu.
0.65.02026-11-03 05:24 UTCrelease

Removed

  • Public procedures nobody called (neither the toolkit, nor Wren, nor opencode_gui_toolkit): draw.damage_padded, layer_cache_forget (an idle result goes after its frames anyway), picture_slot, picture_version; dbus.arg_variant_u32, read_variant_string / _bool / _u32, w_i16, w_i64; font.native_coverage (and the text backend's gt_face_coverage), native_table; platform.a11y_prop_ids; render.canvas_pool_bytes, canvas_texture_changed, canvas_texture_size, damage_rects, heaps_reset, video_gpu_bytes; ui.autoscroll_is_enabled, post_queue_capacity.
0.64.02026-11-03 02:10 UTCrelease

Added

  • tests/globals: every package-level variable of the toolkit's packages (those of when blocks and the procedures' @(static) ones too) is in tools/globals_allowed.txt with its class (const, process, thread, test) and why; the test fails on one not listed, one listed that is gone, and a class the code contradicts (@(thread_local) is thread). It reads the sources next to it, not from the working directory; -define:GLOBALS_WRITE=true rewrites the list keeping the classes known. docs/getting-started.md, "Where state lives", says the rule; CONTRIBUTING.md: a new global needs a class.
  • tests/canvas: the asynchronous read-back (canvas_read_begin / _ready / _finish) gives the bytes drawn, the same as canvas_read; one cancelled gives nothing and keeps nothing (its staging texture and query released, a finish after it writes nothing); a block out of the canvas is refused at the start; a block read across the canvas's corner is transparent beyond it.
  • render.present_call: what a Present is asked for (the sync interval, the tearing flag, the mode the frame is presented in) from the mode asked, the tearing support, the interval and frame_end's vsync; both backends take it from there (wgpu's Immediate or Fifo). render/present_test.odin: tearing only where allowed and never with a wait, the interval clamped to DXGI's limit, vsync = false at once.
  • platform.file_dialog_call (Windows): what the Common Item Dialog is told for a File_Dialog (options set and cleared, the type list and the line selected, file name, default extension, the GUID of remember_id, the folder and whether it is forced), computed apart from the dialog; DIALOG_OPEN, DIALOG_SAVE, DIALOG_FOLDER name the kinds of dialog_test_hook. tests/dialogs checks an open, a save and a folder dialog's call without opening one.
  • font.glyph_images, font.slug_glyphs: the bitmaps / Slug data of a whole run of glyphs, the atlas lock taken once, shared, for those already made: threads that draw at once look up side by side (8 threads: 17 ns per glyph instead of 120; 1 thread: 7 instead of 11). draw.glyph_run uses them. Every lock of the toolkit, what it guards and what was measured: docs/locks.md; tools/text_bench -threads times the locked paths.

Changed

  • ui.set_window_button_names translates the caption buttons of the current State only (each window's ui.State has its own names, English by default): call it after each ui.init. The interfaces' clock starts once for the process from any thread (atomic).
  • platform: a thread's state is the thread's, the process's is locked or atomic. On Linux each thread that opens windows has its own connection to the display server (Wayland or X11: its events, its seat's focus and serials, its selections and drags, the cursor libraries made on it) and its own session bus (the a11y bus address, the colour-scheme subscription, the idle inhibitions); the loose Wayland and X11 state is in the connection's struct, the XCB functions bound on first use are in the library's table, and the Wayland protocol tables are built once with the library. On Windows OLE is initialized once per thread (dragdrop_thread_init, drop_target_enable and drag_start no longer call OleInitialize each time), the system cursors and pointer settings are the thread's, and the window class is registered once (sync.Once). The virtual screen of the offscreen windows is locked; the build number, the tray's message and ids, the ABI check of the accessibility library are atomic.
  • A public ui proc on a thread with no State (no init, use or begin_build there) stops at once with ui.NO_STATE_MESSAGE, "ui: no begin_build on this thread", instead of crashing further on a nil State: one branch where the thread's State is read.
  • GPU profile: both backends fold a step's timestamp into the profile with one procedure (profile_add: summed by kind, the slowest kept longest first, a clock that went back counts 0). render/gpu_profile_test.odin checks it on made-up timestamps; tests/gpufx checks set_gpu_timing: off nothing is measured, on each submit is timed and gpu_result names one of them with a time above 0.
  • tools/tk: the PowerShell scripts of tools/ (build_text, build_a11y, build_naga, fetch_emoji, fetch_wgpu and the Linux fetch_wgpu.sh, gen_emoji_data, make_icon, make_logo, ppm_diff, emoji_board) are one Odin program, a command each with the same flags in Odin's spelling (odin run tools/tk -- fetch_wgpu "-dest:build", fetch_emoji -unicode, build_text -force, ppm_diff a.ppm b.ppm -tolerance:2...), the same outputs, pins and stamps; tools/shaders builds naga in process. The static libraries of native/ are built once more after the change (their stamp now covers tools/tk/native.odin). Only tools/release.ps1 stays a script.
  • Word cache: a shard's lock is shared by the threads that find their word in its current generation (a page's threads shaping the same words: 190 ns per word with 8 threads instead of 440).

Removed

  • Wayland: the primary-selection listeners: the toolkit bound zwp_primary_selection_device_manager_v1, made a device and tracked its offers, but never read one nor offered a selection (no source was ever made): the protocol tables, the listeners and their state are gone. On X11 a copy still owns PRIMARY.

Fixed

  • render, flate: no global raced on. A second window's swap chain is sized by an argument of create_swapchain instead of a global flag two renderers on two threads shared; the sRGB tables of the capture are made once (sync.Once) instead of behind a plain flag; the environment switches (TOOLKIT_RENDER_TRACE, TOOLKIT_DAMAGE_VERIFY) are read once atomically; qpc_to_tick asks the system's counter frequency instead of keeping it. flate.deflate_runs' code tables are made at start-up (@(init), as the fixed codes) instead of lazily.
  • odin run tools/run_tests -- -backend:wgpu -group:ci1 from PowerShell selected no step: PowerShell 7 hands a -name:value typed after -- to the program as -name: and value (odin passes on what it gets; from cmd or bash the flag arrives whole). tools/cmdline joins them again, for run_tests, changelog and tk; the docs say odin run again where they said to build the runner first.
  • IME (Wayland): the preedit's caret and the text the input method replaces wait for the protocol's done like the rest (the caret moved at once, the Backspace presses went out before the done). The composition is platform.Ime_Compose (ime_compose_preedit / _commit / _delete / _done / _reset, pure), the caret's rectangle in the compositor's units ime_cursor_rect_logical (at least one unit high); tests/ime feeds them the protocol's events.
  • Tray menus (Windows): the default item of a menu is shown in bold (AppendMenuW ignored MF_DEFAULT: it is set with SetMenuDefaultItem). platform.tray_menu_build makes the native menu of a model without showing it; tests/tray reads it back with GetMenuItemInfoW (separators, check and radio marks, the default item, a disabled one, a submenu, each command's id).
0.63.12026-11-02 17:38 UTCrelease

Changed

  • The interface state a build works on is the thread's: ui's current state (what begin_build selects and the public procs use) is thread-local, so several apps of one process build and draw their interfaces at once, each on a thread of its own; before, two threads building at once broke each other's parent stack.
0.63.02026-11-02 14:34 UTCrelease

Added

  • render.preload_device: the graphics device made early, on a thread of its own, while the program does the rest of its start; the next render.init / init_window / init_offscreen that asks for that kind of device (hardware or WARP) takes it, waiting for the thread if it has not finished, and makes only the swap chain or the offscreen target. The first device of a process loads the graphics driver, the longest step of a renderer's start. Its state is explicit (render.device_preload_state: Not_Started, Creating, Ready, Failed); a device of the other kind, or one that failed, is released and init makes its own as before; render.release_preloaded_device lets an unused one go. On wgpu the instance, adapter and device are made without a surface: init makes the window's surface on that instance and makes its own device when the adapter cannot present to it. TOOLKIT_RENDER_TRACE says how long init waited for it.
0.62.02026-11-02 12:47 UTCrelease

Added

  • devtools.start_local, devtools.Local_Client: the protocol with no socket, for a program or a test that drives itself; Toolkit.state says how many pictures are being encoded.
  • ui.set_clock: a state's time goes by a clock its owner moves: every delay and wake of the interface follows it, wake_in_ms and wake_due included. Build_Params.time_ms stays for one build.
  • testkit/session: an @(test) procedure makes an application with no window of the system on the offscreen renderer, sends input through platform.inject_event, runs frames, reads widgets and real pixels, with barriers on a state (wait_until, wait_idle, wait_box) and a clock of its own (advance); attach drives an application that makes its own frames.

Changed

  • tools/changelog is an Odin program, tested by tests/changelog, in place of tools/changelog.ps1 and tools/changelog_test.ps1; -Migrate (for an "## Unreleased" this repository does not have) is gone.
  • The tests are Odin: odin run tools/run_tests runs every package on Windows and Linux (on Windows on a desktop of its own, and nothing takes the focus of whoever is at the machine), in place of tools/test_windowless.ps1, tools/test_backends.ps1 and the test part of tools/linux_ci.sh; ten packages that no CI ran now do (window, cursors, tray, dialogs, clock, size_move, i18n, planes, video, textures). tests/e2e/run.mjs is tests/examples/whatsnew_test.odin, in the test's process. Guide: docs/testing.md.
  • tests/examples: examples/fidget and examples/todo are tested in the test's process with no window and no input of the machine (tools/keyboard_test.ps1, tools/fidget_test.ps1, tools/ui_test.ps1 are gone, so is fidget's --state_title); the examples have open and close, and a settings folder of their own for a test. Esc in fidget's command palette closes it, as its foot says, instead of only leaving its field.
  • Offscreen windows have a machine of their own: platform.virtual_screen_set gives the screen monitor_size and display_info answer for them (no more {0, 0}), platform.set_offscreen_active their activation, and their clipboard is the process's store on Windows as on Linux: a headless program no longer reads or writes the clipboard of the person at the machine.

Fixed

  • The caret of line_edit and text_edit wakes the loop at its flips only: the wake came at every half phase (265 ms), which drew each picture of the caret twice.
  • The plain text clipboard of an offscreen window on Linux: get_clipboard gave nothing and set_clipboard did nothing, while clipboard_set kept to the process's store: a headless program could not copy and paste its own text.
  • One clock for the interface: a scroll bar's reveal (scrollbar_reveal) and the merging of typing into one undo step in a line edit read the system's clock whatever Build_Params.time_ms said; a replay or a test with its own clock got other results.
0.61.02026-11-01 13:55 UTCrelease

Added

  • Color glyphs off Windows: the COLR interpreter gets its tables from the native backend, and CBDT bitmaps (Noto Color Emoji on most Linux systems) are drawn from their PNG images (font/cbdt.odin). font.glyph_is_color and font.color_glyph_rgba work there.
  • Fractional scaling on Wayland: wp_fractional_scale_v1 with wp_viewporter, the buffer in physical pixels; a scale of 1.5 was drawn at 2 and scaled down by the compositor.
  • Cursors on Linux: on X11 from the theme (libxcb-cursor) or the server's cursor font, custom images through RENDER; on Wayland custom images through wl_shm and the theme (libwayland-cursor) where wp_cursor_shape_v1 is missing, and the cursor is sent again on each pointer enter. platform.cursor_on_screen says what shows.
  • tools/doc_check.mjs, run by the CI: the files, flags, defines and package names the documentation cites must exist. tools/release.ps1 retakes the About picture itself. The documentation no longer says Linux is missing where it exists, and says what it lacks (color glyphs, X11 cursors, Wayland fractional scaling).
0.60.22026-11-01 12:36 UTCrelease

Added

  • tools/theme_shots.mjs: a picture of a page of examples/whatsnew in every palette, with no window; --palette=<name> on that example.

Fixed

  • Command line arguments keep every character on Windows: os.args came through the C runtime's ANSI code page ("Łódź" became "L\xf3dz", "Привет" "??????"), in paths and passwords too. Any program that imports platform now gets them from the system, in UTF-8.
0.60.12026-11-01 11:50 UTCrelease

Changed

  • The letters of a match are drawn dark, in the theme's new find_text, on stronger find_match and find_current backgrounds: amber code and light text did not read on them (contrast 1.8 on the current match). At least 4.5 in every palette.

Fixed

  • Find and selection show over inline code: a rich paragraph painted its runs' backgrounds over them, leaving a pixel at each end of a match. They now lie between the backgrounds and the text.
0.60.02026-11-01 11:10 UTCrelease

Added

  • Rich_Context.line_height and rich_paragraph(line_height = ...): every line of a paragraph the same height, on a baseline from its base font, whatever other faces it holds (CSS line-height). Inline code no longer has to push a line apart.
0.59.02026-11-01 09:03 UTCrelease

Added

  • draw.image_cover and draw.cover_src: an image that fills a box cropped rather than distorted (CSS object-fit: cover). examples/effects uses it: its photo was stretched into every thumbnail.
  • ui.set_scrollbar_autohide: scroll bars show only while the pointer is over their box or one is held, and fade otherwise. ui.scrollbar_reveal shows one for a moment when something else scrolls it (the keyboard); ui.scrollbar_opacity says how much it shows. Off by default.

Changed

  • tools/screenshots.mjs replaces tools/screenshots.ps1: the pictures are the frames the examples render, over the DevTools protocol, with an empty settings folder; it no longer moves the mouse, raises windows or moves the user's settings aside. It also refreshes site/img. fidget, todo, transforms and effects answer to TOOLKIT_DEVTOOLS.
0.58.02026-10-31 22:15 UTCrelease

Added

  • ui.scrollbar_rects: the track and the thumb a scroll box shows, for tests and tools.
  • platform.window_on_destroy: a call when a window is destroyed, for what keeps a pointer to it and may outlive it.
  • devtools: Ctrl+Z and Ctrl+Y in Chrome's DevTools: DOM.undo and DOM.redo go over the edits of styles, texts, removed boxes and aria-label, from mark to mark.
  • devtools: aria-label can be edited from Chrome's DevTools (DOM.setAttributeValue, DOM.setAttributesAsText, DOM.removeAttribute): it changes what a reader gets. The other attributes are refused with a message that says why.

Changed

  • Text_Area.sb_drag and Text_Edit_Draw.bar_hot are a ui.Text_Scrollbar, not a number. Field_Snapshot and Text_Snapshot are one type, ui.Edit_Snapshot.
  • Double click: widgets and selected text share one time, 450 ms (widgets counted 400 ms, selected text 450 ms).

Removed

  • ui.Picker_Draw.ring: never read.

Fixed

  • A command to the DevTools server could wait until something else woke the window: its wake could be taken by the frame already starting, and the window slept with the command in its inbox. The ticker now wakes it for as long as a command waits.
  • examples/whatsnew: its title says the version it runs on, from ui.VERSION, and that its pages are the changes of 0.55 (it said "What's new in gui_toolkit 0.55" in every version).
  • Examples: a live resize no longer stretches the last frame in any example (composition swap chain, render.set_fixed_surface, render.pace_frame; --bench of effects and transforms keeps the ordinary swap chain its published figures are of). examples/hello, which a new program copies, has the three lines and docs/getting-started.md explains them; tests/resize_probe checks a program from outside.
  • font.colr_dump: every transform is listed with its matrix, read by the same decoder as the interpreter.
  • font.colr_nests_glyph: a paint whose fields run past the COLR table now counts as unreadable (the interpreter already refused it), instead of being left to Direct2D.
  • render.capture_poll_raw and render.capture_raw_finish: the two halves of capture_poll, so that a read-back only costs the copy of its rows on the thread of the frames; the devtools take the picture on the encoder thread. The table of an fp16 window is no longer built for an 8-bit one.
  • WebGPU: a backdrop or a blend mode in a frame of a region reads the frame being composed, not the surface texture, which was still empty.
  • WebGPU: frames of an offscreen renderer wait for the device: with no present to pace them they piled up on a slow device, and a read-back waited behind them for up to minutes.
  • render.damage.verify compares with the frame really drawn whole, all its steps run again on the side, instead of a recomposition that sampled pooled textures already reused. -define:TOOLKIT_DAMAGE_CHECK=true runs that proof on a program that marks nothing.
  • draw.destroy leaves the context empty: draw.init on the same struct appended to the lists it had freed, and frames drew garbage.
  • Partial redraw: a frame with a backdrop or a blend mode into the frame is drawn whole: outside the region it would have read the last frame's finished pixels, and a kept backdrop kept them.
  • Partial redraw: a batch that reaches two rectangles of a region no longer draws what lies between them, where translucent text and shapes piled up on the last frame; rectangles fused over the budget no longer overlap (drawn twice).
  • rich_paragraph: a version given again for shorter runs, or two contents with one hash, lays the runs out again instead of indexing past them.
  • ui.destroy after platform.destroy_window no longer writes to the freed window, and a post no longer wakes it: the State forgets a window when it is destroyed.
  • .Hot_Within sees as far up the tree as hot_within: 64 ancestors (it stopped at 48).
  • Toolkit drawing at high DPI: the tab underline, the rings of check boxes, radios and color pickers, the slider's ring and the shadows of sliders and switches, hline, what takes a press around a scrollbar and its least width follow the scale. At 100 % nothing changes.
  • Linux, Wayland: a clipboard or drag source and a selection offer given up are destroyed on the compositor too (only the client side was freed).
  • Windows: a drag of the app over another of its windows is taken as over the window it came from (the thread in drag_start cannot answer before the drop).
  • wait_event (offscreen window, Linux): events already handed out by the last poll no longer end the wait at once.
  • Linux: open_url, open_path and reveal_in_folder leave no zombie process.
  • Linux, Wayland: only a window made a drop target with drop_target_enable takes a drop, as its answer in drop_set_effect says; drag_start shows its picture; the press that began a drag gets its release when it ends.
  • Linux, Wayland: closing a window no longer ends the connection with a protocol error (a wrong request destroyed its decoration).
  • Linux, X11: get_placement, outer_rect and client_origin read the window's position (they said 0,0); a placement saved and restored under a frame does not move the window.
  • Linux, X11: a waiting poll no longer sleeps over events already read from the connection.
  • Linux, X11: clipboard_changed sees any program taking the clipboard, through XFIXES.
  • Linux, X11: display_info gives the rate of the monitor under the window, read from RandR, and follows it when the window moves or the mode changes; 60 Hz only without RandR.
  • Linux, X11: drag_start shows its picture (Drag_Image), carries the formats of the app's own (Drag_Data.custom) and follows XdndProxy.
  • Linux, X11: with several windows, each event goes to the window it names, not to the window that polls; drops report the pointer's position (it was always the corner of the screen).
  • Linux, X11: copy and paste with other programs work: requests and answers were read at the wrong offsets of their events, and the transfer of large data never advanced.
  • devtools: frameMs (Toolkit.metrics, Toolkit.frames, timelines) is taken before a capture is read back, and a capture's conversion to RGBA moved to the encoding thread: a frame that reads a picture back no longer reads as late, with the next one early, although no refresh was missed.
  • devtools: the screencast takes one more capture after a change, so what the program does in answer to the frame just shown is not lost as its last frame.
  • dbus: a bus that goes away with something of ours unread (ECONNRESET) is a lost connection: pending handlers run, as on an orderly end.
  • dbus.call: a call in a handler while another call waits: each gets its reply, whatever their order, where the outer one timed out; what an outer call had read no longer waits for the inner call's timeout.
  • Recorder: with injected, an action sent by Toolkit.axAction is recorded, as a press line that does it again.
  • Recorder: the horizontal wheel is recorded, and wheel <x> <y> <notches> [<across>] plays it (tools/cdp.mjs).
  • devtools: what Chrome's frontend asks as it goes is answered (CSS.takeComputedStyleUpdates, Storage.getStorageKey, DOM.getNodesForSubtreeByStyle, DOM.getAttributes, its check for form-associated elements) instead of filling its log with errors.
  • devtools: DOM.getDocument and DOM.requestChildNodes respect the depth asked. Children the client has are no longer sent again (Chrome's frontend made new nodes of them, and what it was unfolding stayed empty), and a node not unfolded says when its number of children changes (DOM.childNodeCountUpdated).
  • font: the native backend no longer takes quadratic time on a very long word without a space.
  • flate.deflate_push: a stream past 2 GiB no longer stops finding matches.
  • flate.inflate_push: a big block that arrives in many chunks is no longer decoded again from its start with each one (quadratic time): its output comes as its input arrives. Inflating and deflating no longer fill the temporary allocator.
  • font.color_glyph_rgba: emptying the outline cache of the COLR interpreter freed heap memory with the allocator of the caller: a caller with its own allocator got bad frees.
  • font: when Direct2D could not make its device for color glyphs, the locks held at that moment were zeroed under their owner: the failure now only gives back the Direct2D objects.
  • font: a hostile COLR font can no longer hang the drawing thread with an outline of many crossing edges: the scan conversion of a glyph counts against its work allowance, and a glyph over it is refused.
  • font: a hostile COLR font can no longer exhaust memory or hang through color lines: the stops of a gradient count against the work allowance of a glyph (a graph that reads too many is refused and shows its outline), and finding a stop no longer walks along them.
  • A device lost on one renderer no longer fails the read-backs of another (draw.offscreen_end, render.readback_poll), and the table of read-backs is safe when renderers live on several threads.
  • A buffer refused or not mapped during a frame no longer writes through a null pointer (Direct3D 11): the frame draws what it can and frame_end reports the lost device.
  • render.kept_targets_bytes counts as render.targets_bytes does: a kept snapshot is 4 bytes a texel, and mip chains count.
  • render.capture_cancel on WebGPU no longer lets the map it cancelled write on the next capture, and a capture being mapped survives surface_use.
  • draw.destroy gives back the context's glyph atlas texture: a context made and destroyed on a renderer that stays left it behind.
  • A layer in a blend mode composited right after a filter pass replaces what it read, as any other (Direct3D 11): with nothing drawn in between it blended over translucent pixels and changed their alpha.
  • render.set_gpu_profile no longer erases the frame's clear color on a window (Direct3D 11): what no draw covered turned black while profiling.
  • 2D canvas: a clip that lies off the canvas, or one made while a layer is open, no longer sends what is drawn next to the wrong target (into the clip mask, or to the canvas instead of the layer).
  • Partial redraw (draw.damage_begin, render.set_partial_redraw) works as documented on both backends: on Direct3D 11 it never took effect on a window and wiped what lay outside the region offscreen; on WebGPU a window crashed on it, the region was not cleared first, and a frame without a region left the next one showing stale pixels.
    • A frame with a region now composes into a kept target, copied whole to the swap chain (the swap chain cannot present rectangles). A region of nothing presents nothing. Frames without damage_begin are drawn as before.
    • damage_scroll redraws where the content was and is: no backend moves pixels by a block copy.
    • render.damage_verify_differences counts the frames render.damage.verify found different, and the check now runs on Direct3D 11 and draws Slug text and application shaders on WebGPU.
  • Wrapped text: the lines kept between builds no longer live in the allocator of the context at the first wrap (a program that changes context.allocator around a build freed them from another one).
  • ui.fuzzy_score no longer panics on a text with invalid UTF-8 that matches the needle, and its ranges stay in the text.
  • rich_paragraph: rich_set_faces applies to paragraphs already laid out, and the layout cache no longer depends on the padding bytes of a run's style.
  • ui.post through a window: after ui.destroy every window the State was built for returns false, not only the last one (the others used a queue that was gone).
  • line_edit, text_edit: a value set by a screen reader can be undone, and a selection it asks for in the same build lands on the new text.
  • line_edit, text_edit: Backspace at the start or Delete at the end of the text is no edit: it no longer empties the redo history nor adds an undo step.
  • Autoscroll: the distances and the speed of Autoscroll_Settings are logical pixels as documented: at 200 % the dead zone was half as large and smaller than the marker.
  • Autoscroll: a middle press on a box that scrolls itself (text_edit) no longer starts a session that scrolls nothing and swallows the press; the scroll region around it scrolls, if there is one.
  • Autoscroll: the click that ends a latched session does nothing else (it moved the focus, jumped a scrollbar and reached the selection).
  • ui.modal: Escape goes first to what is inside the dialog (a focused field gets cancelled), then to the dialog on top, not to the outermost one. The dialog closes at the end of its block.
  • ui.list_select before a list's first build, or for a row added in this frame, is no longer lost: the row is checked against the rows actually built.
  • ui.selected_text during a build no longer returns "" when the selected boxes are not built yet (a Copy button above the text): it answers with the text the last build showed.
  • Linux: clipboard_changed tells a change once (it said true at every call while another program owned the clipboard), clipboard_formats says what the owner offers, set_clipboard offers its text under the text targets, and file lists are percent-encoded URIs.
  • Linux: wait_handle with no limit called inside a frame callback waits for the handle (it returned at once).
  • drag_image_fit: the colours stay right when a large picture is brought down to a few pixels (the sums overflowed).
  • Windows: get_placement returns screen coordinates: with a taskbar on the left or top a saved window no longer moves at each restore.
  • Linux, X11: is_minimized, is_maximized and is_fullscreen follow the window manager (a restored window stayed minimized).
  • Linux, X11: a read of a selection returns the whole data or nothing, never a truncated part, and a slow owner's transfer goes on as long as chunks come.
  • Linux, X11: a drag no longer makes the app take itself for the clipboard's owner, and losing PRIMARY is no longer taken for losing the clipboard: paste reads what another program copied.
  • Linux, X11: drag_start talks XDND to the window under the pointer (it reached no window), reports the effect the target took, and no longer leaves the press stuck; drops report client positions and follow drop_set_effect.
  • Linux, Wayland: a click before any motion lands where the pointer is on a scaled screen (the position on entering the window was not scaled).
  • Linux, Wayland: drag_start returns no effect for a drag that was cancelled (it returned the effect of the one before or the action last hovered).
  • Linux, Wayland: reading another client's selection gives up when the peer stays silent instead of freezing the interface, and dropping the app's own drag on its own window no longer hangs it.
  • Linux, Wayland: a held key repeats, at the rate and delay of the compositor (Event.repeat).
  • Linux: wake wakes a real window's loop on Wayland (it did nothing) and no longer writes on X11 the property a paste reads, which could corrupt the pasted data.
  • Linux, Wayland: a loop that polls without waiting (an animation) now receives input and answers the compositor: poll_events(w, false) reads the socket; wait_handle no longer spins while input waits.
  • tk_instance (Linux): a runtime directory that is not this user's alone (/tmp/tk_instance-<uid> made first by someone else) is not used: the start carries on by itself.
  • dbus.call_async: the handler runs when the bus goes away whatever its deadline, as documented; a message that cannot be one ends the connection instead of stalling it while its buffer grows.
  • dbus: a full socket is waited for instead of being taken for a lost connection, so a burst or a large message no longer ends it.
  • dbus.call: a reply followed by another message in the same read (Hello and NameAcquired) is no longer wiped before the caller reads it, which could make connect_bus fail now and then. A handler that calls no longer meets its own message again.
  • tk_config.restore: bringing back a value over a saved user one marks the preferences dirty: the next start no longer gets back what the restore took away.
  • devtools: a connection ending at once can no longer be reaped before its thread is known, and accept failing for good no longer takes a core.
  • devtools: inf and nan are no longer taken as a CSS length, opacity or colour channel of an edited style.
  • devtools: two Page.captureScreenshot at once each get their own clip: the second used to get the picture of the first.
  • devtools: what cannot be edited (DOM.setAttributesAsText, DOM.setOuterHTML, other DOM.set* and CSS.set*, Page.setDocumentContent, cookies, DOM storage) answers an error instead of a false success; what clients send on attaching is still accepted.
  • devtools: an edit lasts as long as its client also when it never asked for the document, and a second client taking the tree undoes the edits of the first instead of inheriting them for good.
  • devtools: a text replaced from Chrome's DevTools, or edits taken back when it leaves, no longer leave the boxes of the last build pointing at freed memory (ui.Box_Edit's text is copied into each frame).
  • devtools: Page.stopScreencast while a frame was being read back no longer leaves the renderer unable to capture: Page.captureScreenshot answered "the renderer cannot capture now" for good and a later screencast sent nothing.
0.57.12026-10-31 12:18 UTCrelease

Fixed

  • The screencast could miss its last frame: input sent while a capture was coming back, or the last step of an animation, counted as nothing changed. Tests: the end-to-end run waits for the frames to stop instead of fixed delays, and what still depends on a machine's timing (a first frame, the last one) is said as FLAKY without failing it; frames that never stop still fail it.
  • Closing Chrome's DevTools could leave a window on freed memory: the connection was freed while the DOM side still held it, so the edits could stay and the program could hang. They now go with the client, every time.
0.57.02026-10-31 10:04 UTCrelease

Added

  • Chrome's DevTools on a window: the Elements panel shows the box tree and follows it, Styles, Computed and Layout a box's rect and colours in sRGB, Styles and the text editable live for as long as DevTools is attached, the Accessibility tab what a reader gets, hovering a node lights its box. tools/cdp.mjs inspect prints the address; the devtools://devtools Origin is taken on the WebSocket only.
0.56.22026-10-31 08:56 UTCrelease

Fixed

  • examples/whatsnew no longer stretches while it is resized: a composition swap chain with a fixed surface, as opencode native, and inner = true for the frames of a live resize. The other examples keep the ordinary swap chain, which stretches.
  • A lazy column's height changed at every frame when an item showed nothing: its height of 0 counted as not known yet, so it stood for the mean of the others as a space and for nothing when built. A scroll box following its bottom had its scroll bar jump, without end.
0.56.12026-10-30 20:43 UTCrelease

Added

  • flate.deflate_runs: compression at a high rate for what repeats in known ways, such as the rows of a picture: runs and matches a row above, in one block of the fixed Huffman codes.

Fixed

  • A screenshot of a real window took two seconds and froze it: the wake asked for its next frame was consumed by the frame already starting, so the window slept until its next timer (about 1.2 s); reading a translucent window's fp16 target back ran pow on every channel (now a table); the PNG was encoded on the UI thread (now flate.deflate_runs, made for rate, on a thread of its own). A timeline keeps its pictures in memory and compresses, compares and writes them when it ends. An offscreen window keeps its wakes, so the end-to-end run never saw the first one.
0.56.02026-10-30 19:50 UTCrelease

Added

  • Timelines: tools/cdp.mjs record --timeline <dir> keeps a run whole (each action with when it happened, a picture after it, every frame's time), as a page that stands alone, a timeline.json and a Chrome trace; play <timeline.json> --timeline <dir> runs it again, --realtime with its pauses, and fails if a picture differs. tools/timeline.mjs for scripts. Toolkit.frames and Toolkit.pollRecording feed it.
  • Page.startScreencast: the window's frames as events, one at a time, limited in rate, none at rest; tools/cdp.mjs cast <dir>.
0.55.02026-10-30 18:43 UTCrelease

Added

  • tests/e2e, in the CI: examples/whatsnew --headless driven over the protocol: no layout warning, nothing a reader cannot name and the reference image on every page, the scenarios that broke before, exit code 0.
  • Toolkit.waitFor and Toolkit.waitIdle: a script says what it waits for (a box there or gone, nothing moving) instead of sleeping a guess; wait-for and idle in tools/cdp.mjs.
  • A recorder: Toolkit.startRecording / stopRecording (tools/cdp.mjs record, play) write what a person does as a script, clicks by what they hit rather than where.
  • Toolkit.metrics: build, layout and frame times (p50, p95, max) of the last 240 frames, boxes, lazy items built, the accessibility tree's cost, and the latency input to screen in a RENDER_PROBE build. ui.build_metrics reads the last build's from the program.
  • Accessibility actions and audit over devtools: Toolkit.axAction asks an action of a node by role and name as a screen reader does, Toolkit.axAudit (ui.a11y_unnamed) lists the controls a reader cannot name, which are not even nodes of the tree.
  • devtools: a window driven over the Chrome DevTools Protocol: devtools.start_from_env(win) (TOOLKIT_DEVTOOLS=<port>, 127.0.0.1 only) and devtools.service each frame. Input.dispatchMouseEvent / dispatchKeyEvent / insertText go into the window's queue (no mouse or keyboard of the machine, no focus needed), Page.captureScreenshot returns the presented frame as PNG, Accessibility.getFullAXTree and queryAXTree the tree a screen reader gets, and the Toolkit domain reads the box tree (getTree, find, click by name or text). A request from a browser's page (an Origin header), for another Host or without the target's random id is refused. Puppeteer and Playwright attach (docs/devtools.md says what works). tools/cdp.mjs drives it from the command line; docs/devtools.md. ui.box_text and ui.box_current read a box from outside a build.
  • examples/whatsnew: a page per change of this version, each shown live (frames presented at once, items a lazy column built, build times, the layout warning, the emboss, next_merge, find in page, box_at).
  • ui.box_at(ids..): the box of the last build at a path of ids from the root, for a test, a tool or an overlay working from outside a build.
  • ui.next_merge(m): adds to the pending next instead of replacing it, so a helper styles its box while its caller's width or position stay. ui.merge_mod is public and merges every field (flags added).
  • A lazy column, ui.lazy_begin / ui.lazy_item: inside a scroll box only the items near the view are built, the others stand as one space of the height they had when last built (5000 wrapped paragraphs: 3 ms a frame instead of 100, a first frame of 12 ms instead of 1.4 s). An item never built stands as the mean height; one built at another width keeps its old height until it comes near the view; the view stays on the item it showed when heights change (after the layout, in the same frame); it also builds around where the view is heading (a wheel's burst), and asks for one more frame when the view still shows spaces. lazy_begin(all = true) builds every item (find in page). Like row(), the item is the block of the if: a column whose items all close empty (if !lazy_item(...) { continue }) is warned of.
  • rich_paragraph(..., version = v): with a version the layout cache finds the paragraph by its box and version instead of hashing all of its text at every frame; the caller changes the version when the text changes.
  • Layout warnings: a percentage inside a box sized by its children (it resolves against a distant ancestor, often the window) is said once per box on stderr when it grows past half the window. On in debug builds; ui.set_layout_warnings(s, on), and ui.layout_warnings() returns the messages for a tool or a test.
  • platform.input_pending(w), platform.event_is_input(kind): whether input waits in the window's queue, read without taking it (the events stay for the next poll_events).
  • render.Pacer, render.pace_frame, render.paced_present: the cadence model executed for a window, as applications wrote it by hand: the screen's plan adopted when the display changes, the swap chain's slot waited for, its latency set. It does not show input after a rest at once: measured, that one frame left the swap chain a frame deeper for the rest of the session. examples/hello uses it; docs/pacing.md.

Changed

  • docs: font-backend.md shows how a program with a Rust crate of its own builds the text backend into it (one Rust standard library per program) and why the prebuilt wgpu-native cannot join it on Windows; text.md documents find in page and its limits.
  • Tests that drive the global UI state refuse to run on several threads: keyboard, status, states, ui_robust and a11y fail to compile without -define:ODIN_TEST_THREADS=1, with a message that says why (they failed with bad frees or never ended). tools/test_backends.ps1 passes the define to a11y too.
  • A frame less between input and screen (Direct3D 11): the renderer takes one of the swap chain latency object's counts for good, so a frame starts when the last one is on screen instead of queueing behind it. Measured in opencode native (RENDER_PROBE, a fast hand over a list, six runs each): 49 ms from input to screen before, 34 after, still 60 frames a second. The price: a frame that takes longer than a refresh waits for the next one.

Fixed

  • Find in page no longer reads freed memory when its scope is not built any more (a page left while the needle stays): such a scope finds nothing. It crashed the next layout.
  • WebGPU: no white window while the first frame compiles: on Direct3D 12 with FXC the first frame's pipelines take seconds; the renderer presents the theme's background first, and says on stderr to put dxcompiler.dll and dxil.dll next to the program when that first frame took over a second.
  • The wheel moves the hover: rolling the wheel without moving the mouse makes the pointer's position valid again, so the highlight follows the row that came under it instead of staying on one scrolled away.
  • Embossed text by contrast (Gradient finish): the groove or the light edge comes from the text against what is under it (the box's own background or the nearest opaque one up), not from the text alone: grey text on a dark button no longer takes a light edge under it.
0.54.02026-10-30 09:51 UTCrelease

Added

  • Build_Params.smooth_scroll (Follow, On, Off): whether scrolling glides, as the interface's animations say (the default) or always / never. An application can keep the wheel's glide when the system turns animations off (Windows' "Animation effects"), where every notch used to jump.
0.53.02026-10-30 09:33 UTCrelease

Added

  • Find in page (ui.find, ui.find_matches, ui.find_count, ui.find_set_current): the occurrences of a needle in the text the interface shows (labels, wrapped paragraphs, rich text, a match across the runs of a paragraph), found after each layout in reading order with their rectangles whether on screen or scrolled away, painted behind the text (theme entries "find_match background", "find_current background"); case ignored. The application owns the field and the navigation.
0.52.02026-10-30 08:20 UTCrelease

Added

  • tools/slugsmall: DirectWrite's bitmaps against Slug with each combination of its small-text settings, stacked in one PNG per scene and scale with a 3x enlargement (odin run tools/slugsmall -define:FONT_BACKEND=native).
  • Slug: four coverage samples per pixel (font.Settings.slug_supersample_ppem) for glyphs at that size or less, on a rotated grid, each over its own half-pixel box. Off by default.
  • Slug: stem darkening (font.Settings.slug_darken): every edge of small glyphs moves outwards by that many pixels at 12 px per em and less, fading out by 36, on the side the glyph's winding says (Slug_Glyph.orient). Off by default.
  • Slug: hinted outlines for small text (font.Settings.slug_hint_ppem): screen-aligned glyphs at that size or less use an outline hinted for their size by the native backend's light auto-hinter (skrifa: vertical only, the baseline and x-height on whole pixels), cached per quarter pixel; gt_glyph_outline_hinted, Text_Backend.outline_hinted. Off by default.

Fixed

  • Segmented controls: the labels are no longer engraved (button segment sheen 0): lit below on the pill and shadowed above on the track, the selected and the other labels looked a pixel apart.
0.51.02026-10-29 22:46 UTCrelease

Added

  • A site on GitHub Pages (sachahjkl.github.io/gui_toolkit): site/, published by .github/workflows/pages.yml; the README tells about Linux.
  • A Linux job in the CI (tools/linux_ci.sh, also for a local check in WSL): odin check -vet of every package for Linux, the examples built with the native text backend and Vulkan, the tests that need no window. examples/smoke printed the window's HWND, a field Windows only has.
  • tools/fetch_wgpu.sh: wgpu-native's Linux static library, pinned by SHA-256, into Odin's vendor/wgpu/lib (Odin's Linux release does not ship it).
  • ui.fuzzy_score: subsequence matching for pickers and palettes ("cs5" finds "claude-sonnet-5"), the tightest window, a score that ranks runs and word starts first, and the matched runs to highlight. ui.mouse_pressed: whether a press happened in this frame, wherever it landed (a popover closed by a press outside it).
  • ui.line_edit(..., secret = true): a password field. Bullets are shown in place of the characters (the caret, the selection and the clicks follow them character by character), a double click selects all of it, Ctrl+C / Ctrl+X do nothing, and screen readers are told it is a password.

Changed

  • Middle-click autoscroll (ui.autoscroll_axis_speed): the speed grows geometrically with the distance from the anchor, V * (2^(x/D) - 1) / (2^(F/D) - 1) (x past the dead zone, D = the new Autoscroll_Settings.doubling, F = full_dist, V = max_speed): it doubles every D px and reaches max_speed at full_dist. exponent (a power curve) is gone.

Fixed

  • -vet failed on the Linux code: dbus casts, unused loop variables in the X11 backend, imports used on Windows only.
  • -define:FONT_NATIVE_LINK=false linked kernel32.lib as its stand-in on every system: libc off Windows.
  • Linux: the text renderer defaulted to the atlas, which nothing fills off Windows (no bitmap rasterizer): Slug there (FONT_TEXT_RENDERER).
  • Linux: a translucent window asked for a half-float surface that Vulkan on X11 / Wayland does not offer (BGRA8 only): the surface's formats are checked, 8 bits a channel otherwise.
  • Linux: the WebGPU backend defaulted to Direct3D 12 on every system: Vulkan off Windows (TOOLKIT_WGPU_BACKEND). Found by building opencode native for Linux, like the fixes below.
  • ui.text_edit(wrap = true) could show a horizontal scrollbar: a wrapped text's width is the one of the last layout, and when the box became half a pixel narrower the bar appeared, though wrapped text never scrolls sideways.
  • ui.row / ui.column keep a cross alignment given by next: next({cross = .Center}); if row() { ... } centred nothing, the scope's default (.Start) replaced it. An explicit cross argument other than .Start still wins.
  • ui.checkbox, ui.radio, ui.toggle given no width are as wide as their mark (or switch) and their label: the row took the text size of its own text, which is empty, so the clickable part was a sliver at the left of the mark (a click on the label did nothing). A width given by next is kept, the label filling it as before.
0.50.02026-10-28 07:11 UTCrelease

Added

  • font.glyph_outline and a neutral font.color_renderable: glyph_outline(state, face, gid, tolerance, out) hands a 2D canvas (or any glyph-path consumer) a glyph outline through the active backend (DirectWrite or the native Fontations backend) rather than a DirectWrite-only entry point, and color_renderable now answers on every system (off Windows the built-in COLR / CPAL interpreter draws colour faces). Both let an application draw glyph paths and build colour-font cascades the same way on every platform.
  • platform.raise_window(window) and platform.is_window_visible(window): bring an already-shown window to the front (Win32 SetForegroundWindow; X11 _NET_ACTIVE_WINDOW; a no-op on Wayland, where the compositor owns focus), and whether a window is on screen (mapped and not minimized). An application no longer calls Win32 for the "switch to this window" and "is this window visible" it needs around multi-window and capture flows.
  • Linux accessibility, IME and smaller desktop services (platform): a minimal AT-SPI 2 accessibility bridge over D-Bus (a11y_send / a11y_state / a11y_take_request expose the toolkit's neutral tree — roles, names, states, bounds, Invoke / Focus — to screen readers when one connects); input-method composition through Wayland zwp_text_input_v3 (ime_set_enabled, ime_set_cursor_rect, ime_preedit; committed text arrives as .Text events, and X11 composes dead keys through libxkbcommon); keeping the screen awake (idle_inhibit / idle_uninhibit through org.freedesktop.ScreenSaver); the recent-files list (add_recent_file to the freedesktop recently-used.xbel); and Wayland cursor shapes drawn by the compositor through wp_cursor_shape_v1.
  • Linux file dialogs, open-URL and live theme through the XDG portals (platform): open_file_dialog / save_file_dialog / pick_folder_dialog now use org.freedesktop.portal.FileChooser first (filters, multiple selection, a suggested name; it works under a sandbox), falling back to zenity / kdialog; open_url / open_path use org.freedesktop.portal.OpenURI; dark_mode_preferred reads the appearance portal's color-scheme and the new watch_color_scheme(cb) reports a live light / dark switch (the SettingChanged signal).
  • Linux tray icon and notifications (platform): tray_create / tray_notify and the rest of the tray API now work on Linux through the StatusNotifierItem specification over D-Bus, with its menu as a com.canonical.dbusmenu tree and notifications through org.freedesktop.Notifications (clicks, chosen menu items and notification results come back as Tray_Events). Same public API as the Windows backend; tray_create returns nil when there is no status-notifier host, as Windows does when the shell refuses an icon.
  • Linux cross-process clipboard and drag-and-drop (platform): the clipboard owner is now complete on both backends — a full Wayland wl_data_source offering text / HTML / PNG / text/uri-list (and reading a foreign owner over wl_data_offer.receive), the zwp_primary_selection_v1 primary selection, and an X11 SelectionRequest server with TARGETS / TIMESTAMP / MULTIPLE and INCR for large images; clipboard_get_image / _get_html / _get_files read whatever another process owns. Drag and drop works both ways with the same API as Windows (drop_target_enable, drop_data, drag_start, drop_inject): Wayland wl_data_device and X11 XDND version 5.
  • D-Bus client (dbus package): a small, pure-Odin D-Bus client for the toolkit's Linux desktop services, with no libdbus link (a binary starts on a machine without it and reports the bus unreachable). It connects to the session or system bus (connect_bus / connect_bus_address), authenticates with SASL EXTERNAL, does the Hello handshake, marshals and unmarshals the whole type system (basic types, strings, object paths, signatures, arrays, structs, dicts, variants, with the spec's alignment and byte order), calls methods synchronously (call) or asynchronously (call_async), subscribes to signals (subscribe), exports objects (export_object, request_name) and folds its socket into a program's own poll(2) loop (conn_fd, dispatch). dbus/*.odin, docs/dbus.md.
  • Test building blocks (testkit.Ports, testkit.process_state): a new package with the parts of a test harness that are pure Odin and not tied to any one application. Ports gives each test run its own block of test-server ports (an application sets a base-port environment variable, a default base and a span): the tests write the default ports and url / port move every address to the run's block so several worktrees test side by side, interning the results. process_state reads the process's resident and private memory, its open handle count and (on Windows) its GDI and USER object counts for endurance and leak tests, and memory_split (Windows) shows where the private bytes are — the heaps' allocated against committed, and the private committed pages outside the heaps split read-write vs executable. testkit/ports.odin, testkit/process_<os>.odin, tests/testkit, docs/testkit.md.
  • Single-instance mechanism (instance.acquire): a new package so an application can keep one running copy per named resource. The first process to start with a name owns it; a second start hands an opaque message to the first and comes forward instead of opening a second copy on the same state. The interface is platform-neutral — a name (key(prefix, path)), an optional identity token the owner checks so only a copy it trusts hands over, an opaque []byte message the package never reads, and a handler the owner runs while it pumps messages — with no window handle, executable semantics or OS type crossing it. Under it: a named mutex and a message-only window (WM_COPYDATA) on Windows, a flock lock file and a Unix socket in $XDG_RUNTIME_DIR on POSIX (instance_windows.odin, instance_linux.odin, instance_other.odin). An owner that is starting or closing is waited for; a silent one does not hold the second start. acquire, send, owner_start / owner_closing / owner_stop, pump_messages, raise_window, is_elevated. tests/instance, docs/instance.md.
  • Lifetime and ownership primitives (arena.Scope, arena.Pool): a new pure-Odin package with the two primitives an application builds its object graph on. A Scope owns a growing virtual-memory arena plus a reverse-order cleanup list and may have child scopes, so closing a scope closes its children, runs its cleanups and frees the arena in one go — an application is a tree of scopes and "close the view" frees everything without any subsystem keeping a list of what it owns (scope_make, scope_allocator, on_close, forget_cleanup, rebind_cleanup, run_cleanup, scope_close). A generational Pool gives fixed-address slots addressed by a Handle (a distinct u64, generation + index) that can never dangle: removing an object bumps the slot's generation so an old handle fails to resolve instead of reaching whatever reused the slot (pool_insert, pool_get, pool_valid, pool_remove, pool_handle_at, pool_next, pool_destroy). arena/scope.odin, arena/pool.odin, in-package tests, docs/arena.md.
  • Typed preference registry (config.Prefs): a new pure-Odin package — an about:config for any application. Every tunable is a named, typed, documented preference with a default, optional bounds or a choices list, a unit, and a layered source (default < user file < command line < policy, where a policy value also locks it). The registry validates every change, resolves a name to a Ref once so hot-path reads never hash a string, notifies observers by name prefix (config.watch, apply without a restart), persists only the user's changes atomically (save_user / load_file, values read before their definition applied later and surviving a round trip), snapshots and restores the whole set (snapshot / restore), and derives readable titles, a first-sentence summary and a word search for a settings UI (title_of, summary_of, matches). config/config.odin, config/snapshot.odin, config/titles.odin, in-package tests, docs/config.md.
  • platform.monitor_size(window): the pixel size of the monitor a window is on, neutral across systems (Win32 MonitorFromWindow + GetMonitorInfoW, the Wayland wl_output mode, or the X11 root screen). An application that wants a fixed surface the size of the screen (render.set_fixed_surface) no longer needs its own Win32 call.
  • Linux desktop services (platform): file dialogs (open_file_dialog / save_file_dialog / pick_folder_dialog) through zenity or kdialog; open_url / open_path / reveal_in_folder through xdg-open; known_folder_path from the XDG user directories; light / dark (dark_mode_preferred) and reduce-motion (os_animations_enabled) from the GTK settings; the rich clipboard (clipboard_set / clipboard_get_*) with text carried over the X11 CLIPBOARD selection and the Wayland wl_data_device, and HTML / image / files kept by the owner. render/wgpu_surface_linux.odin builds the wgpu surface from Surface_Handles (Wayland / XCB) for the renderer's Linux path.
  • wgpu is the renderer's Linux backend: on a non-Windows target render builds the WebGPU backend only (TOOLKIT_RENDER is ignored there and USE_WGPU is forced on). The Direct3D 11 backend (render_d3d.odin, frame.odin, the canvas, slug, video, app-shader and damage files) is now built only for the Direct3D backend (when !USE_WGPU, Windows); the shared types (Renderer, Texture_Data, the frame description) and the backend-agnostic procedures build on every system. The wgpu surface comes from platform.Surface_Handles (Wayland wl_display + wl_surface, or XCB connection + window); present pacing on Linux is the FIFO vblank (there is no DWM timing or waitable-timer latency object). wgpu-native must be built for Linux (libwgpu_native.a).
  • Linux window backend (platform): platform.open_window and the whole window / input API now run on Linux, over Wayland (xdg-shell, wl_seat with an xkbcommon keymap, wl_output scale for DPI, zxdg-decoration or a client-side title bar) and X11 (XCB, xkbcommon, Xft.dpi, _NET_WM_STATE, Motif hints), chosen at open from WAYLAND_DISPLAY / DISPLAY. Every window library is loaded with dlopen (libwayland-client, libxcb, libxkbcommon), so a binary starts on a system missing one and names it; nothing is hard-linked. The same Window, Event, Key, Cursor, Placement types as the Win32 backend — an application written against platform does not change.
  • Text catalogue (i18n.tr): a new pure-Odin package so an application can be translated without going through its code again. tr is a procedure group with three forms — tr(text), tr(context, text) (a translator's context for two meanings of one English word) and tr(count, one, other) (count-dependent forms, the choice left to the language). The English literal is the key; today each call returns its argument (same bytes, no lookup, no allocation), so a call in an interface drawn every frame is free, and a language can later swap in one flat pointer-keyed table without any other change. i18n/i18n.odin, tests/i18n, docs/i18n.md.
  • Partial redraw (damage regions) (render.set_partial_redraw, draw.damage): the renderer can now repaint and present only the part of the window that changed since the last frame (a caret, a hover, a progress bar, a video, a local animation) instead of the whole window. The application opens a region with damage_begin and marks changed boxes with damage_add / damage (and damage_scroll for a scrolled view); the region is the bounded union of the boxes (near ones merged). The renderer clips every frame-target batch to the region, clears only the region, and presents it: Direct3D 11 with Present1 dirty rectangles and a buffer-age redraw for the flip swap chain's un-kept back buffers; WebGPU composes into a persistent target and copies it to the surface (wgpu-native has no present-with-damage yet, a documented limit). A frame that marks nothing draws and presents nothing. render.damage.verify (set_damage_verify, or TOOLKIT_DAMAGE_VERIFY=1) renders every frame in full too and reports the first pixel that differs. Off by default (the whole window every frame, as before). render/damage.odin, render/damage_d3d.odin, render/damage_wgpu.odin, render/damage_verify.odin, draw/damage.odin; docs/draw.md, docs/webgpu.md.
  • font.color_glyph_rgba, font.glyph_is_color, font.Color_Glyph: rasterize one color glyph (COLR / CPAL, sbix, CBDT, SVG) to a straight-alpha RGBA bitmap at an exact em size, with the offset from the pen to the bitmap, outside the glyph atlas and the draw layer, for a caller that composites it itself (a 2D canvas drawing emoji in fillText). It reuses the COLR interpreter for the glyphs it owns and Direct2D otherwise; fg colors foreground / text-color layers. The signature is platform-neutral; off Windows the functions compile and report no color glyph until a portable rasterizer lands. See docs/text.md.
  • font.cascade language: a cascade now carries the content's BCP 47 language (cascade(s, entries, features, no_system_fallback, language)), and the shaper passes it to the backend as the shaping locale (DirectWrite's GetGlyphs / GetGlyphPlacements locale name, HarfRust's buffer language). Faces then apply their language-specific forms (locl): Serbian and Macedonian Cyrillic, Han unification of CJK ideographs, Romanian ș/ț, and so on. Empty keeps the previous default (no locale), and two cascades differing only in language are distinct Font_Ids, so the word cache tells them apart. See docs/text.md.
  • Frame capture on WebGPU (render.capture_request / render.capture_poll): reading a frame back without the screen now works with the WebGPU backend, not only Direct3D 11. Before the present, frame_end copies the frame target (surface or offscreen, in whole or in part) into a mappable buffer; capture_poll maps it without waiting (Pending until the GPU is done) and returns straight RGBA8 with sRGB values and alpha forced to 255, the same picture the Direct3D path gives. It costs nothing until a capture is asked for, and works with the window covered, off the screen, hidden or minimized (render/capture.odin).
  • render.surface_* on WebGPU: a second window drawn by the same renderer now works with the WebGPU backend, not only Direct3D 11. surface_init / surface_use / surface_destroy create a per-window WebGPU surface (with its own present and latency state, and the DirectComposition visual for a translucent window) and swap it with the renderer's window state, mirroring the Direct3D path. The device, queue and pipelines stay shared (wgpu_surface.odin).

Changed

  • platform API made system-neutral: platform.wake_handle now returns an opaque rawptr (paired with the new platform.wake_signal) instead of a Win32 HANDLE, and the new platform.native_surface_handles hands a renderer the window's native handles through a neutral Surface_Handles (Windows HWND, Wayland wl_display + wl_surface, or X11 connection + window) so render can make a surface on any system without a Win32 type in the signature.
  • render.init takes a neutral surface, not an HWND: render.init(&r, surface: platform.Surface_Handles, size, transparent, space) opens the renderer on the native handles the platform package fills (platform.native_surface_handles(window)), the HWND on Windows and the Wayland or XCB handles on Linux; render.init_window(&r, window, size, ...) is the convenience form. surface_init / surface_create (second windows) take the same neutral handles. No Direct3D, DXGI or Win32 type appears in the renderer's public signatures.
0.49.02026-10-27 21:38 UTCrelease

Added

  • ui.text_edit syntax colouring (ui.Text_Highlight, ui.Text_Span): a highlight parameter draws coloured runs the caller classifies per visible paragraph (spans), underlines paragraphs a caller's validator rejects (error_line), and reports the paragraph under the pointer (Edit_Result.hover_line) for a per-line tooltip. The editor knows no language; the cost is only the visible lines'.
  • Middle-click autoscroll (ui.set_autoscroll_enabled, ui.Autoscroll): a press of the wheel on a scroll region drops an anchor and the pointer's distance from it scrolls, the farther the faster, along a tunable acceleration curve (dead zone, power shape, speed cap), as Chrome and Firefox do it on Windows. Hold mode (keep the button down) and toggle mode (a quick tap latches it until the next click) are both live; a direction cursor and an anchor marker show while it runs. Off by default; scroll_y, list and vlist get it once an app opts in. The curve and state machine are a pure, frame-rate-independent core (ui.autoscroll_axis_speed, ui.autoscroll_velocity) an application can reuse for its own view; see docs/autoscroll.md.
  • ui.reorder_visible: the half-open range of items a scrolling reorderable list shows (scroll, view and pitch, with a margin on either side), so a long list builds only the rows in view and a frame's cost stays flat whatever the list's length.
  • fsx: a platform-neutral package of file helpers with the guarantees a persistent store relies on, on every system (fsx_windows.odin, fsx_unix.odin): write_atomic (write through a .tmp renamed over the file, a reader sees old or new), read_all / write_parts / replace / read_at / stat / delete_file, make_dirs / list_files, path_kind (links never followed), remove_tree (one entry at a time, not through the Windows shell) and temp_dir. No Windows or POSIX type crosses the boundary. See docs/fsx.md.
0.48.12026-10-27 20:51 UTCrelease

Fixed

  • ui.NAMED_PALETTES: the text of the One Dark and Solarized palettes is lighter (One Dark's bright white #c8ccd4, a step between Solarized's base1 and base2): their schemes' own foregrounds stood too close to the lit tab of a tab bar in Wren.
0.48.02026-10-27 20:04 UTCrelease

Added

  • ui.NAMED_PALETTES: eleven more palettes from well-known editor schemes, each with its own accent: Gruvbox and Gruvbox Light, Naysayer, Solarized and Solarized Light, Monokai, Tokyo Night, Catppuccin (Mocha) and Catppuccin Latte, One Dark and Everforest. palette_named finds them by name; a test checks that every named palette keeps its text legible on its background and panels and its dark flag in line with its background.
0.47.22026-10-27 19:25 UTCrelease

Changed

  • The native libraries are built without fat LTO again (tools/build_text.ps1, tools/build_a11y.ps1): with it (gt_text.lib 6.4 MB instead of 33 MB) the text tests crashed on the CI runner at their first test (atlas_stress, a signal) while they pass on a development machine; the cause is not found, and the size is not worth a crashing test run. Wren builds these crates into its own library and is not affected.

Fixed

  • The text tests no longer fail now and then on a CI runner (text_test.atlas_stress, "Signal caught: Unknown", sometimes a runner that never ended): DirectWrite throws C++ exceptions and catches them itself when an entry of its process-wide cache does not fit, and the Windows test runner of core:testing takes any exception on a test's thread for a crash and kills that thread. The tests of tests/text, tests/color_glyphs and tests/text_backends now run their body on a thread of their own (tests/unwatched), where a caught C++ exception is ignored and any other exception still fails the test. The text package runs on several threads again in tools/test_windowless.ps1. Outside the test runner nothing changes: DirectWrite catches these exceptions itself.
  • A test package that does not end names itself ( ools/test_windowless.ps1): each package is killed after 300 s, with its log (the state changes of its tests) in the CI's, instead of the CI cutting the whole step off after twelve minutes with nothing to read.
  • The CI's cold build of the Rust libraries has room to end (.github/workflows/ci.yml): with fat LTO it is slower than the step's 12 minutes, so the cache was never saved and every run was cold; the build is a step of its own with a 30 minute limit, and the cache fills at the first success.
0.47.12026-10-27 06:12 UTCrelease

Fixed

  • The native text backend and the accessibility adapter are built with fat LTO (native/text, native/a11y, tools/build_text.ps1, tools/build_a11y.ps1): their crate types listed rlib next to staticlib, and rustc skips LTO whenever an rlib is among them: every dependency stayed a separate unoptimized object (gt_text.lib 33.2 MB, now 6.4 MB; gt_a11y.lib 16.9 MB, now 4.8 MB). The crates are now plain libraries (an application's Rust library still depends on them) and the scripts ask for the static library alone (cargo rustc --crate-type staticlib); they fail if an object of another crate is left in the archive.
0.47.02026-10-27 06:06 UTCrelease

Fixed

  • A drag inside the window is shown at the top rate of a variable refresh screen (platform.frame_decision, Cadence.variable, platform.cadence_adopt): on a variable refresh screen (G-Sync, FreeSync, Windows' dynamic refresh rate, which reports 60 Hz at rest), a Drag frame (a splitter, a panel's handle, a tab) is presented at once with two frames queued, still one frame per slot of the top rate, instead of waiting for a refresh at the rate the screen rests at: a splitter dragged at 1 kHz went from 62 to 183 frames a second on a 180 Hz screen reported at 60 Hz. Fixed refresh screens and every other state are unchanged. cadence_adopt(&c, plan) takes the plan's slots and screen (instead of c.slots = plan.slots).
0.46.02026-10-27 05:27 UTCrelease

Added

  • platform.Event.injected: an event made by inject_event (a test, a remote control, a macro) says so; an application that reads the pointer's position from the system (a window dragged across the screen) uses the event's own position for these, as the real pointer is elsewhere.
  • Build_Params.inactive, ui.inactive: a window that is not the one the user is in is built with inactive = true: its focused line and text edits keep the focus but draw no caret and ask for no wake to blink it (an application with several windows no longer blinks a caret in each).
0.45.12026-10-27 03:19 UTCrelease

Added

  • Text and bounds in the UI Automation test client (uia.document_text, uia.text_selection, uia.select_text, uia.bounds; uia_probe text, uia_probe select-text --start A --end B, uia_probe bounds): what a text pattern holds, its selection or caret, a selection made as a screen reader does, and where an element is, for end-to-end tests.
0.45.02026-10-27 01:55 UTCrelease

Added

  • Accessibility, node by node and several windows: platform.a11y_diff_patch sends a tree's changes from only the nodes that changed (a document that knows its mutations no longer makes its whole tree again); the children a node lost are forgotten with their subtrees, so a node put back goes whole. ui.a11y_cost(s) gives the nodes and the milliseconds of the last tree. A ui.State built for another window than its last one sends that window a whole tree. tests/a11y reads two windows apart through UI Automation and checks that a window a reader has read stays quiet at rest (no wake, no update). docs/accessibility.md lists the known limits (Linux and macOS, the toolkit's tree made again in each build, what grafted documents such as Wren's pages lack: iframes, caret and selection, text bounds, a second window).
  • docs/getting-started.md and examples/hello: a new project with the toolkit as a submodule (prerequisites with the pinned Odin, MSVC, the optional Rust libraries; a window in a few lines built with -collection:gt=...; the render and text backends, accessibility, tests, versions) and the pitfalls met so far (the output folder, odin test deleting its exe, a render.Surface in a local, nested builds, keys, expect_assert on Windows). hello --frames=N runs without showing its window. Checked on a clean clone; tools/window_shot.ps1 accepts an absolute -Out.
  • flate: DEFLATE, zlib and gzip as streams (Inflater / Deflater: input in chunks of any size, each push gives the output it allows; inflate / deflate for whole buffers), pure Odin for any platform. Checksums and sizes checked, a bound on the output (limit, Too_Large). The deflater writes each block in the cheapest of stored, fixed and dynamic Huffman codes (about 17 % smaller than fixed codes on text). Ported from Wren's src/flate (same API); docs/flate.md, tests/flate.
  • Offscreen readback on the WebGPU backend: draw.offscreen_end gives a render.Readback_Id and render.readback_poll the picture (straight RGBA8, sRGB values, alpha kept) as under Direct3D 11: the frame copies the target into a buffer, the poll maps it without waiting (Pending until the GPU is done). tests/layers checks the pixels on both backends.
  • ui.Build_Params.time_ms: the build's clock (caret blink, double and triple clicks, hover delays, timers, toasts), now_ms() when 0. A test or a replay passes its own to be deterministic; double clicks and the text selection's clicks now read the build's clock instead of the wall clock.

Fixed

  • CI: two tests that failed now and then are deterministic. tests/ui_robust (nested_build_is_refused) checked an assertion through testing.expect_assert_message, whose exception handler on Windows races the system's end of the process: the whole test program ended without a message. The assertion is now caught on a thread of the test's own. tests/keyboard (caret_rect_is_where_the_caret_is_drawn) depended on the caret's blink phase, i.e. on how long the program had run (a slow WebGPU start blinked it off); it and the double-click tests (selection, panes) now pass time_ms. tools/test_windowless.ps1 and tools/test_backends.ps1 print the exit code of a failed package (an access violation, a trap nothing caught).
0.44.02026-10-27 01:30 UTCrelease

Added

  • platform.frame_decision: the cadence model (platform/pacing.odin, [docs/pacing.md](docs/pacing.md)): a plan from the screen and the application's choices (cadence_plan: the top useful rate of a variable refresh screen, Frame_Slots strict or loose), a state per frame (Rest, Continuous, Drag, Input_Answer, Resize_Step, Resize_Burst) and one pure decision (Frame_Decision: the wait for its slot, whether it waits for the swap chain, whether it is presented at once, the swap chain's latency), plus cadence_inner_frame, cadence_echo and the frame clock (frame_clock_advance, vblank_at_or_before). Test: tests/pacing (states, transitions, and simulated runs on fixed and variable refresh screens, tearing, a 1 kHz mouse, a resize, a panel dragged, AltSnap); tests/frame_slots and tests/pacing join the windowless tests of the CI.
0.43.02026-10-26 22:00 UTCrelease

Added

  • platform.Frame_Gate: the frames of a thread as one state machine (platform/frame_gate.odin, [docs/frame_gate.md](docs/frame_gate.md)): Idle -> Polling -> Work -> Building -> Drawing -> Presenting, Full and Light frames, frame_gate_begin / frame_gate_stage / frame_gate_end; a frame asked for where none may begin is deferred, never nested, and a move the machine does not have is counted (a panic with strict). The window procedure defers a WM_PAINT where no frame may begin; drag_script pumps the thread's messages between its steps as the system's drag loop does. Test: tests/frame_gate.
0.42.32026-10-26 21:54 UTCrelease

Fixed

  • CI: green again and about 6 minutes instead of 30 to 37. The CHANGELOG step failed on every push (tools/changelog_test.ps1 ended with the exit code of a command it made fail on purpose; it now exits 0); a test package of a single test counted as failed (text_backends printed "The test was successful", not "All tests were successful"; both are accepted now). The jobs run in parallel: build (changelog, examples, shaders), the windowless tests (tools/test_windowless.ps1, the step's script moved there) and the WebGPU tests in four groups (tools/test_backends.ps1 -Group ci1..ci4, checked to hold every package once; -Group sample on pull requests) with DXC, a third of the time of FXC on WARP (FXC still runs two packages, -Define TOOLKIT_WGPU_DX12_COMPILER=fxc); each job and slow step has a timeout; the Rust libraries, naga's translator, the emoji font and DXC are cached; Odin is set up by .github/actions/setup-odin, its archive hashed with .NET rather than Get-FileHash. Every push to master keeps its own run (only pull requests cancel the previous one).
  • WebGPU: render.video_convert converts pictures in memory (I420, NV12; P010 and 10-bit I420 when the adapter has TextureFormat16bitNorm) with video.wgsl, crop, rotation, matrix and range included, as on Direct3D 11: it returned false for every picture (render/wgpu_video.odin). A decoder's Direct3D 11 texture (gpu_texture) is still refused on WebGPU (wgpu-native cannot import it); tests/video checks that refusal there instead of calling a Direct3D 11 device the backend does not have (it crashed).
  • WebGPU: Slug text when the device refuses its shaders draws nothing instead of passing a missing shader module to the pipeline: r.slug.failed is honoured by both backends (it was Direct3D 11 only), a refused slug.wgsl sets it, a recreated device asks again.
0.42.22026-10-26 19:54 UTCrelease

Fixed

  • tools/fetch_emoji.ps1, build_naga.ps1 and fetch_wgpu.ps1 hash their files the .NET way, not with Get-FileHash: the build step of a CI run (cmd, after the MSVC environment was set) failed with "Get-FileHash is not recognized" as soon as the emoji font had to be fetched again.
0.42.12026-10-26 19:41 UTCrelease

Added

  • render.surface_init(r, &s, hwnd, size, ...) -> ok makes a Surface in the one the program points to. surface_create (which returns it by value) is kept and calls it. A Surface is several kilobytes (Present_State's ring of 256 frames): held in a local and copied into a record, -o:speed -debug split it into 12 612 values with a debug record each, and LLVM spent more than ten minutes on that module (Wren's development build and its CI did, until it called surface_init). The doc of surface_create says so.
0.42.02026-10-26 17:55 UTCrelease

Added

  • Accessibility: screen readers read the toolkit's windows (ui/a11y.odin, platform/a11y.odin, platform/a11y_diff.odin, platform/a11y_accesskit.odin (Windows), platform/a11y_stub.odin, native/a11y, docs/accessibility.md). Each build turns the boxes into an accessibility tree (boxes with a role or text; layout boxes left out; ids are the boxes' keys; bounds, focus, states, values, actions) and AccessKit 0.25 exposes it through UI Automation (WM_GETOBJECT). Built only once an assistive technology asked for the window; only the nodes that changed are sent (platform.A11y_Diff). Every widget gives its role, name and states (buttons, check boxes, radios, switches, sliders, steppers, progress, segmented, chips, dropdowns, tabs, fields and text editors with text runs and caret, lists and virtual lists, menus and menu bars, tooltips, toasts as live regions, modals, splitters, accordions, cards, form rows, title bar and caption buttons, status bar, labels, paragraphs, rich paragraphs with their links). The app names its own boxes with ui.a11y(info) (next box) or ui.a11y_set(box, info); ui.a11y_wanted(), ui.a11y_active, ui.a11y_tree, ui.a11y_find, ui.a11y_stats. Requests of assistive technologies (invoke, toggle, select, expand / collapse, focus, set value, increment / decrement, text selection, scrolling, context menu) arrive as the same signals as input; the others in ui.a11y_requests(); ui.a11y_request(key, action), ui.a11y_numeric_request, ui.a11y_inject (tests). Trees of the app's own (documents) are grafted under a node (A11y_Info.graft) and sent with platform.a11y_send. ui.set_window_button_names (translated caption buttons). Platform: a11y_state, a11y_send, a11y_take_request, a11y_available, the update writer (a11y_node, a11y_children, a11y_str...); Event_Kind.Accessibility. Compiled in with -define:A11Y_ACCESSKIT=true (tools\build_a11y.ps1 builds build\a11y\gt_a11y.lib; A11Y_NATIVE_LINK=false when the program's own Rust library carries it). Every update is checked against a mirror of the tree before AccessKit sees it (a broken update is refused, not a crash); text runs and text selections are made safe for AccessKit's text code. ui.a11y_box_text (the text a box shows to a reader). ui.a11y_focus_on(key): the readers' focus on a graft node while the app's view has the keyboard (a focus on a graft whose tree is not there yet waits for it in the adapter).
  • tools/uia: a small UI Automation client (COM IUIAutomation): elements, control types, names, states, values, invoke / toggle / select / expand / set value / focus. tools/uia_probe: the same as a command, for end-to-end tests of applications (a hidden window works).
  • Tests: tests/a11y (the tree, incremental updates, requests; with -define:A11Y_ACCESSKIT=true, a hidden window read and driven through UI Automation). CI runs both.
0.41.12026-10-26 17:00 UTCrelease

Added

  • platform.Chrome_Regions.overlays: what the app shows over everything (the ui fills it with the open menus' panels). hit_test_chrome answers Client there before anything else, the resize bands included.

Fixed

  • An open menu that covers the integrated title bar's resize band takes the pointer there (ui chrome_collect): a menu taller than the window starts at its top, and over the band the system showed the resize cursor (diagonal at the top right corner) and resized the window on a press.
  • The open menus are above whatever the app builds at the root after them (menus_raise, in end_build before layout): a menu is built where its button is, and a notice, panel or dialog built later at the root was drawn over it and took its pointer. Test: tests/chrome open_menu_over_resize_bands_and_later_boxes.
  • font.glyph gives the ink box where the ink is with the native text backend (native/text gt_glyph_box): read-fonts 0.46 counts a glyph's extents height downward and never negative, and the bottom of the box was put a glyph's height above its top, so the box was twice as high and a glyph centred by it (Wren's tab icons, a chip's icon) was drawn a glyph lower than meant. Test: tests/text_backends native_glyph_box_matches_dwrite (-define:FONT_BACKEND=native).
0.41.02026-10-26 16:08 UTCrelease

Added

  • ui.post: calls posted from any thread (ui/post.odin, ui/post_queue.odin, docs/post.md): post(state or window, fn, data, word) runs fn(data, word) on the interface's thread at the start of the next begin_build (or drain_posts), and wakes the window once per drain. ui.Post_Queue is a bounded lock-free ring (Vyukov's MPMC queue, no allocation per message); a full ring blocks (default, nothing lost), drops the oldest (on_drop), grows into a spill list or fails (Post_Overflow); each producer's order holds in every mode. post_configure (capacity, overflow, calls per build, on_drop), drain_posts (bounded; needs_frame while calls wait), post_close, post_stats, set_post_wake. Example: examples/stream (a thread posting simulated server-sent events). Test: tests/post.
  • Notification area icon (platform/tray.odin, Windows tray_win32.odin on Shell_NotifyIconW version 4, stub elsewhere, docs/tray.md): tray_create, tray_set_icon (PNG) / tray_set_icon_rgba, tray_set_tooltip, tray_set_menu (items, separators, check and radio marks, disabled and default items, submenus; opened by a right click or the menu key), tray_show_menu, tray_notify (title, body, icon, silent, quiet time), tray_poll (clicks, double clicks, right and middle clicks, menu items, notification shown / clicked / timed out / hidden, hover, Recreated after the shell restarted: the icons are added again on TaskbarCreated), tray_destroy; destroy_window removes the window's icons. tray_test_hook and tray_inject for tests. Test: tests/tray.
  • Rich clipboard (platform/clipboard.odin, Windows clipboard_win32.odin, stub elsewhere, docs/clipboard.md): clipboard_set (text, HTML with its source URL, image, files in one write), clipboard_get_image (PNG, CF_DIBV5, CF_DIB, CF_BITMAP), clipboard_get_html (fragment and source URL), clipboard_get_files (CF_HDROP), clipboard_formats, clipboard_format_names, clipboard_sequence, clipboard_watch / clipboard_changed; images are written as PNG + CF_DIBV5 (alpha) + CF_DIB (over white). Pure conversions: dib_to_rgba (every DIB header and depth), rgba_to_dib, hdrop_encode / hdrop_decode, html_format_source_url; png_encode / png_decode. Test: tests/clipboard.
  • ui.splitter (ui/split.odin, docs/panes.md): a handle that resizes one pane (logical pixels, or any unit through unit) within its limits and the room the other pane keeps, the pane before or after the handle, double click / Enter back to the default, arrow keys and Home / End with the keyboard focus (optional), the resize cursor, a rule drawn in the accent colour while hot or held; finished says when to persist; nothing drawn or animated at rest.
  • ui.accordion: a header with a turning chevron that folds the content built in its block, with an animated height (no frame at rest), Enter / Space; the content is not built once folded.
  • ui/reorder.odin: a list reordered by dragging along X or Y, from Wren's tab strip: reorder_item_size, reorder_offset, reorder_slot, list_move, reorder_edge_scroll, reorder_moved, and the drag's state Reorder (reorder_frame, reorder_begin, reorder_dragging, reorder_item_pos: items slide to their slots, the dragged one follows the pointer).
  • Example examples/panes; tests tests/panes.
0.40.12026-10-26 15:36 UTCrelease

Added

  • ui.building(): true between begin_build and end_build (on this thread, whatever the state). An app whose window procedure makes frames (on_frame, inside a loop of the system) asks it before building one.

Fixed

  • A build begun inside another one is refused with a clear assertion (ui: begin_build inside another build) instead of breaking the one in progress: begin_build emptied its parent stack, freed its frame arena and selected another state under it, and the outer build failed later at an unrelated place (Wren's crash of 2026-10-26: a bounds check in ui.spacer, after a TrackPopupMenu opened during the build painted the window from WM_PAINT). Test: tests/ui_robust nested_build_test.
0.40.02026-10-26 14:05 UTCrelease

Added

  • ui.rich_paragraph (ui/rich_text.odin): runs with their face, size, bold / italic, inline code, colour, background, underline, strike and links in one paragraph; lines break at the backend's opportunities on the whole text, "\n" breaks, long words are cut between clusters, max_lines ends with "…", text_align aligns; links answer hover, click and the keyboard (Tab through them, Enter); layouts are cached by content (thousands of runs laid out once). Geometry: rich_layout, rich_text, rich_index_at, rich_caret, rich_range_rects, rich_link_at; rich_set_faces. Box.measure_y (a .Text height that follows the width). Theme entries link, code_bg. Tests: tests/keyboard rich_text_test. Example: examples/markdown.
  • Selecting text outside fields (ui/selection.odin): .Selectable labels, paragraphs and rich paragraphs share one selection across boxes (drag, Shift+click, double / triple click, Shift+arrows, Ctrl+C, Ctrl+A); text cursor, the theme's selection colour; selected_text, has_selection, selection_serial, selection_changed, clear_selection, select_box. Test: tests/keyboard selection_test.
  • font.styled_face: the family's own bold / italic face of a system font, else simulated.

Fixed

  • Bold runs of a system font were the regular face with simulated bold (0.02 em: hardly bolder at 24 px): they take the family's bold face now.
0.39.02026-10-26 13:10 UTCrelease

Added

  • Simulated bold and oblique in the native backend (font/simulate.odin): as DirectWrite draws them (bold: +upem/50 per inked glyph and emboldened outlines; oblique: 0.33985 shear). Font.sims on every platform; with_simulations off Windows. Test: tests/text_backends simulations_test (widths to 0.01 px, Slug outline boxes).
  • System fonts on Linux (fontconfig) and macOS (CoreText) (font/font_system_linux.odin, font/font_system_darwin.odin): load_system, has_system_family, the per-character fallback and system_families; collection faces by PostScript name (gt_face_postscript_name, gt_file_face_count). Checked with odin check, not run on those systems yet.
  • FONT_NATIVE_LINK=false: a program that builds native/text into its own Rust library links no gt_text.lib (two Rust static libraries collide).
  • native/text/examples/shape_dump: HarfRust's shaping of a text, like hb-shape.
  • tests/keyboard text_edit_draw_test: text_edit_caret_rect against the drawn caret.

Changed

  • The Hebrew difference between the backends is explained (docs/font-backend.md): DirectWrite drops the XPlacement of right-to-left kerning pairs; the native backend applies it, as HarfBuzz does.
0.38.32026-10-26 12:07 UTCrelease

Added

  • File dialogs (platform/dialogs.odin, Windows dialogs_win32.odin, stub elsewhere): open_file_dialog, save_file_dialog and pick_folder_dialog with a title, filters (File_Filter), an "All files" line, the starting folder (start_dir, or a Known_Folder default), a remembered folder per remember_id, the suggested name and default extension, several files, the overwrite question; Dialog_Result gives the paths and the type line chosen. Pure helpers: filter_patterns, filter_matches, filters_from_accept (a web page's accept list); dialog_test_hook stands for the real dialogs in tests. Doc: docs/dialogs.md. Test: tests/dialogs.
  • Shell actions: open_url, open_path, reveal_in_folder (ShellExecuteExW; the file manager with the file selected), known_folder_path.
0.38.22026-10-26 11:52 UTCrelease

Added

  • ui.text_edit wraps and grows (wrap, auto_height, min_lines, max_lines): long lines break at the box's width at the font backend's line break opportunities (a word wider than the box between grapheme clusters); Up / Down / Home / End, clicks and drags follow the visual lines, the caret at the end of a wrapped line stays there (Text_Area.upstream); the box is as tall as its lines within the limits, then scrolls. ui.text_visual_lines, ui.visual_line_of, ui.Visual_Line (ui/text_lines.odin). Tests: tests/keyboard (text_edit_wrap_test.odin). Example: the composer of examples/fidget.
  • Caret rectangle: Edit_Result.caret (box coordinates, this build) and ui.text_edit_caret_rect(a) (the caret and the selection's other end, window coordinates, as last drawn) for completion popovers and input method windows.
0.38.02026-10-26 07:55 UTCrelease

Added

  • Native text backend (-define:FONT_BACKEND=native, font/backend_native.odin, native/text, tools/build_text.ps1): Fontations (read-fonts' font model), HarfRust and ICU4X (line breaks with dictionaries, bidi through unicode-bidi) in a static Rust library behind a C ABI, built and pinned like Wren's image decoders. Shapes 2.6 times faster than DirectWrite on the corpus (2.0 µs a word against 5.2, without the word cache). Faces are still opened by the platform; Settings.backend picks either backend for one State. font.native_table, font.native_coverage, font.native_outline_provider. See docs/font-backend.md.
  • tools/text_bench and tests/text_backends: the two backends compared on the corpus (equivalence report and timings; logic checks in the tests).

Changed

  • The font package compiles on Linux and macOS (odin check font -target:linux_amd64 / darwin_arm64): DirectWrite and Direct2D are behind font_windows.odin, raster_windows.odin and the color files; font_other.odin loads faces from files and memory through the native backend (no system fonts yet: TODO fontconfig / CoreText). load_memory takes font.Simulations ({.Bold, .Oblique}) instead of DirectWrite's flags.

Fixed

  • Kerning under letter-spacing and font-feature-settings (dwrite backend): an explicit feature list replaced DirectWrite's default features (kern, liga, clig, calt, rclt); they are now kept unless the list sets them.
  • tests/retained passes with FONT_TEXT_RENDERER=slug too (its atlas page assertions follow the renderer).
0.37.02026-10-25release

Added

  • Text backends (font/backend.odin, docs/font-backend.md): the font package shapes, analyses (scripts, bidi, line breaks) and reads faces (coverage, metrics, glyph boxes, Slug outlines) through Text_Backend, a table of procedures, and finds the system's fonts (fallback, font.system_families) through System_Fonts, the platform's. DirectWrite is the dwrite backend (font/backend_dwrite.odin, the code moved, not changed: the corpus dump of tools/text_dump is byte-identical before and after); other platforms get an "unsupported" system stub (font/system_other.odin, TODO fontconfig / CoreText). Settings.backend (init only), font.backend, font.backend_available, font.face_metrics.
  • tools/text_corpus, tools/text_dump: a multilingual corpus (Latin with ligatures and kerning, Cyrillic, Greek, Arabic, Hebrew, Devanagari, Thai, Lao, Khmer, Myanmar, Chinese, Japanese, Korean, emoji sequences, a variable font, fallback) and a dump of everything the package says about it (glyphs, clusters, widths, metrics, bidi levels, line breaks), to diff two builds.

Changed

  • Font.features (cascade features) are []Feature instead of DirectWrite's structure; the system fallback and the script analysis of ASCII text go through the backend.
0.36.22026-10-25 22:29 UTCrelease

Added

  • platform.Frame_Slots / frame_slot_wait (platform/frame_slots.odin, pure): the app's own cap on the cadence of its frames, a grid of slots one period apart that no frame starts before. The swap chain's latency object paces an app only where the system holds frames back until a refresh; on a variable or dynamic refresh display (G-Sync, FreeSync, Windows 11's dynamic refresh rate) it is released at once, and an app woken by a mouse at 1 kHz makes and presents a frame per move (270 to 915 a second measured on a 180 Hz G-Sync monitor). strict makes the grid the period itself; a loose one (0.9 of it) is a net a screen that paces the app never reaches, and tightens by itself after 8 delayed frames in a row. A frame that starts an answer to input (immediate) is not delayed. Test: tests/frame_slots (a loop woken every millisecond on a screen that paces nothing: at most one frame per period).
  • Display_Info.max_hz: the highest rate of the monitor's modes at the current size and orientation. With a dynamic refresh rate the mode and the display path say 60 Hz all the time while the screen is at 180 Hz when something moves; platform.refresh_is_variable(hz, max_hz) tells when to aim above hz.
  • platform.display_live_hz(w): the refresh rate the compositor says it runs at right now (DwmGetCompositionTimingInfo, rateRefresh): with a dynamic refresh rate the one reading that moves with the screen. DWM answers for the primary monitor only and only to a NULL window handle (a handle gives E_INVALIDARG), so a window on another monitor has no answer (ok false). Its refresh count is no use (it counts the calls of the process).
0.36.12026-10-25 21:43 UTCrelease

Added

  • Box_Flag.Scrollbar_Left (ui/scrollbar.odin, ui/events.odin): the overlay scrollbar of a .View_Scroll_Y box sits at its left edge instead of its right one (drawn, hit and dragged there; its grab margin widens toward the content). A panel docked on the left whose right edge joins the content (a tab sidebar whose current tab flows into the page) keeps its scrollbar on the outside. Test: tests/ui_robust scrollbar_on_the_left.
0.36.02026-10-25 21:32 UTCrelease

Added

  • Window placement, for apps with several windows or a saved layout (platform/placement.odin, placement_win32.odin): platform.get_placement(w) / set_placement(w, p) (Placement{rect, maximized}: the outer rectangle in screen pixels where the window is restored to, and whether it is maximized; set_placement moves and sizes the window without showing it, on the monitor nearest to the rectangle and inside its work area, and show_window then shows it maximized if asked), the pure fit_rect_to_work(rect, work), outer_rect(w), client_origin(w) (where the client area starts on the screen: turns a pointer position of a window, captured outside it, into a screen position) and move_window(w, x, y). tests/placement. A browser that moves tabs between windows used all of them.

Fixed

  • set_placement asks twice when the window changed monitor: a window that crosses to a monitor of another DPI is resized by the system for it (640 x 480 became 896 x 672); asked again, now that it is on that monitor, the rectangle is the one wanted. Windows now open on the monitor the user is on (0.35.3), so this is the common case.
  • ui.init no longer restarts the toolkit's clock (ui/state.odin): the origin of ui.now_ms() was reset by every init, so opening a second window (one ui.State each) made the time of the first one jump back. It is set by the first init only.
0.35.32026-10-25 21:22 UTCrelease

Fixed

  • A menu row that the pointer left for a disabled row stayed selected (ui/popups.odin): a disabled row gets no signal, so the selection followed the pointer over enabled rows only and kept the last one while the pointer crossed disabled ones (the burger menu, the dropdown lists). A pointer that moves onto a disabled row now leaves nothing selected. Test: tests/keyboard menu_pointer_over_a_disabled_row_selects_nothing.
  • A new window opened on the primary monitor (platform/platform_win32.odin): CW_USEDEFAULT puts it there whatever program launched it, so a window started from a program on another monitor had that monitor's refresh rate and DPI wrong until it was dragged. It is now made on the monitor of the foreground window, else the one under the pointer.
  • ui.VERSION said 0.35.1 in the 0.35.2 release; it follows the changelog again.
0.35.22026-10-25 20:54 UTCrelease

Added

  • Offscreen drawing and readback (draw/offscreen.odin, render/readback.odin, docs/draw.md): draw.offscreen_begin / offscreen_end draw into a transparent target of their own, never shown and not cut by the window; render.readback_poll gives its pixels after the frame (straight RGBA8, sRGB, alpha kept; an Op_Kind.Read copies the target where it was recorded). render.straight_srgb. Test: tests/layers offscreen_draw_and_read_back (both blend spaces, WARP).
  • ui.wake_in_ms (the timed wake the last build asked for, measured from now) and ui.wake_due. wake_ms counts from the build: a loop that used it as its wait timeout and as "a frame is wanted" made a frame at every early wake of any message. Measured with Wren's tools\altdrag_sim.ps1 (AltSnap sends WM_SIZING before each step): the extra frame of each step was made for a caret blink not yet due (Ui_Timer 882 of 1544 frames of the run); with wake_due / wake_in_ms, 494 presents for 500 steps.
0.35.12026-10-25 20:34 UTCrelease

Added

  • Drag images: Drag_Image is now in platform/dragdrop.odin (independent of the system), with drag_image_valid, drag_image_fade (the translucent ghost of a dragged element) and drag_image_fit (scaled down to a size, its hot spot following). drag_image_held says what the system's drag image helper holds after drag_start (Windows: read back from the data object's DragImageBits).
  • The app's own drag back over its window (drop_sync_set, Drop_Sync): while drag_start blocks, the window asks the app at once for each Drop_* instead of queueing them, so the app can handle the drop before drag_start returns (a browser fires drop before dragend).
  • Scripted drags (drag_script, Drag_Step, drag_script_calls): the next drag_start follows given points through the window's own drop target, with the same data object and drag image, never the real mouse (tests, remote control).
  • dragdrop_thread_init: OLE in a single-threaded apartment on the interface thread, before any library puts it in the multithreaded one (which made drop_target_enable and drag_start fail).
  • Pointing devices (platform/input_devices.odin): input_devices (mouse, pen, touch points; Windows: GetSystemMetrics), touch_max_points, and the rules of the primary pointer / every pointer (primary_pointer, any_pointer) as the CSS media features pointer, any-pointer, hover, any-hover see them.
  • Touch gestures (platform/touch_gesture.odin, pure): Touch_Gesture turns the fingers' positions and times into tap, pan, pinch (scale about the fingers' middle), long press and fling (release speed); touch_fling gives the glide's distance and time under exponential friction.
  • Event.pointer.kind of an emulated Mouse_* event says which device the system emulates (touch or pen).
  • render.capture_cancel: forgets a capture asked for and not read.
  • tests/dragdrop: drag images, the scripted drag back over the window with drop_sync_set (enter, over, drop answered at once, the image held by the system), gestures, device rules.
0.35.02026-10-25 19:25 UTCrelease

Added

  • Drag and drop between applications (platform/dragdrop.odin, dragdrop_win32.odin, dragdrop_stub.odin, docs/dragdrop.md): the API is independent of the system; Windows implements it with OLE, other systems answer "not supported". A window becomes a drop target with drop_target_enable; a drag over it queues Drop_Enter / Drop_Over / Drop_Leave / Drop (position, modifiers, Event.drop_allowed) with the data in drop_data (Drag_Data: files, text, HTML fragment, URL and its title, PNG image, the app's own MIME types); the app answers with drop_set_effect (the system is given the last answer). drag_start runs a drag of the system with a Drag_Data and an optional Drag_Image, and returns the effect the target chose. drop_effect_for (the Ctrl / Shift / Alt convention), drag_data_types, drag_threshold, drop_inject (tests, remote control), drop_self_test (the round trip through the window's own drop target, no mouse). Pure helpers: drag_custom_encode / decode, uri_list_first, html_format_wrap / html_format_fragment (CF_HTML).
  • Fingers and pens (platform/pointer.odin, pointer_win32.odin): Pointer_Down / Pointer_Move / Pointer_Up / Pointer_Cancel events with Event.pointer (Pointer_Info: identifier, touch or pen, primary, pressure, tilt, twist, barrel, eraser, contact size) from WM_POINTER. The system's mouse emulation still comes, marked Event.emulated. pointer_buttons, pointer_pressure, Pointer_State.
  • Mouse_* events carry Event.buttons (Mouse_Buttons: the buttons held after the event), so a move during a drag says which button is held.
  • tests/dragdrop: the pure helpers, the pointer details, the round trip of every format through the system (hidden window), injected drops.
0.34.02026-10-25 18:28 UTCrelease

Fixed

  • Raising then lowering set_max_frame_latency no longer leaves the swap chain with two frames in flight for good (render/present.odin, render/render.odin, D3D11): the swap chain's frame latency object is a semaphore that the system raises when MaximumFrameLatency goes up and does not take back when it goes down. After a 1 -> 2 -> 1 (an app that allows a second frame for a resize step or an input frame, as Wren does) the object held one count more than a slot per round trip: every wait on frame_waitable returned at once, Present blocked for a whole refresh instead, and the frame on screen was one more frame behind the input, until the program restarted. The surplus is now remembered when the latency is lowered (Present_State.latency_debt) and consumed, without waiting, by frame_waitable / wait_for_frame as soon as the object has the counts to give. Measured on a 60 Hz window (a tab dragged at 1 kHz of pointer moves): wait for the slot 0.1 ms and Present 16 ms before, 16 ms and 0.6 ms after, and the time from input to the refresh that showed it, as the frame statistics give it, from 118 ms to 56 ms.

Added

  • render/latency_object_test.odin: the surplus of the latency object against a semaphore that stands for it (lowering, raising, taking without waiting, counts that come later).
0.33.02026-10-25 17:37 UTCrelease

Fixed

  • A window moved by another program's drag tool is no longer taken for a window in the system's move / size loop (platform/size_move.odin, platform_win32.odin): AltSnap (Alt + right button drag) and similar tools resize a window with SetWindowPos calls from their own process and POST it WM_ENTERSIZEMOVE / WM_EXITSIZEMOVE. The window took them for a loop of the system: it painted from WM_PAINT inside its own poll_events (a frame within the app's frame, two presents per turn) every 16 ms, while the tool waited at every step for its thread. Now the two messages open and close the modal mode only when they arrive inside the window procedure's DefWindowProc call, where the system's real loop runs (size_move_step, pure); from outside they are ignored and the size change arrives as WM_SIZE, drawn by the app's own loop like any other. WM_ENTERMENULOOP / WM_EXITMENULOOP are unchanged. A move that ended with WM_EXITSIZEMOVE from outside still refreshes the display information (another monitor's refresh rate).

Added

  • platform.pump_stats(window) (Pump_Stats): how many frames were made from the window procedure (paint_frames, a loop of the system), how many loops of the system were entered (modal_loops), how many WM_ENTERSIZEMOVE / WM_EXITSIZEMOVE from outside were ignored (ignored_size_moves). For tests and diagnostics of the message loop.
  • tests/size_move: the decision size_move_step (messages inside / outside DefWindowProc, nesting, an exit with no loop open); tests/window checks that posted and sent WM_ENTERSIZEMOVE from outside open no modal mode (the frames-in-a-loop test now uses the menu loop, which a test can enter without the mouse).
0.32.12026-10-25 15:37 UTCrelease

Changed

  • The selected row of a menu is a filled, rounded row with no outline (ui/theme_default.odin: menu_item selected background accent at 0.30, menu_item selected border transparent): it was the generic "selected" look, an opaque accent ring around a row with a 22 % fill, which read as a focus box more than as a highlight (the fill was too faint to see beside the ring). Lists, fields and every other selected item keep their look.
0.32.02026-10-25 15:04 UTCrelease

Added

  • Input -> screen latency, stage by stage (render/latency.odin, off by default): render.set_latency_probe(r, true) records, for each frame that reached the screen and was built from input, the time waiting for the frame (wait: event received -> frame began), building and drawing (work), Present (present) and scan-out (scan: Present returned -> the refresh that showed it), then latency_summary(r) gives p50 / p95 / max / mean of each, the total in refreshes of the monitor, the share of frames built from input and how many presents the swap chain's statistics count as not yet shown. latency_reset, latency_summarize (pure), latency_sample_of. The application tells when the frame read its input with render.set_frame_read. Displayed_Frame gained read, drawn and call (when frame_end and Present were called). Both backends feed it; nothing is recorded or allocated while the probe is off (render/latency_test.odin: arithmetic and ring, no clocks).
0.31.02026-10-25 13:53 UTCrelease

Fixed

  • Menus: the row under the pointer is drawn selected in the frame that sees the pointer on it, and the row it left is released in that same frame. The selection was decided while a row was built, so rows built before the hovered one (and the hovered row itself) showed the previous selection until the next frame: a pointer crossing a menu left two rows lit for a frame, and the new one a frame late (a refresh or two more once the frame had to wait for the screen). Menu_Item_Info gained key (the row's box): a level reads the hovered row from the previous frame's items when it begins (tests/states: menu_hover_selects_in_the_same_frame).
0.30.12026-10-25 12:00 UTCrelease

Changed

  • Timing checks in the tests (durations, CPU and GPU times, frames in a time window) are opt-in: base.perf_skip (package base, base/perf.odin) runs them only with GUI_PERF=1 or true, and never when CI is defined. The results are still checked in CI (tests/colr, tests/gpufx).
0.30.02026-10-25 11:42 UTCrelease

Fixes from the review of font, ui and platform (0.26.0). 0.29.0 is the version of another branch (render and draw).

Added

  • Grapheme clusters (font/grapheme.odin): font.grapheme_next, grapheme_prev, is_grapheme_boundary, grapheme_count (UAX #29: ZWJ and modifier sequences, flags, tags, keycaps, Hangul, Indic conjuncts, CR LF), a boundary after or before any byte index.
  • font.selection_spans / x_spans_of_range: the stretches of a line that a range of characters occupies on screen (several in bidirectional text).
  • font.raster_size_limit(s): the largest size glyphs are rasterized at (half an atlas page).
  • Colr_Params.surface_limit and work_limit, COLR_MAX_COMPOSITES, COLR_SURFACE_LIMIT, COLR_WORK_*: the bounds of the COLR interpreter's memory and work. gsub_ligate is bounded by GSUB_BUDGET.
  • ui.wake_within(s, ms): asks for a wake within ms, keeping the soonest of all the requests. ui.TIMER_KEEP_BUILDS.
  • tests/window (windows and messages; needs a desktop, not in CI), tests/ui_robust (in CI), tests/colr/hostile_test.odin (COLR and GSUB tables built by hand), tests/text/grapheme_test.odin.

Changed

  • Font_Id carries a generation (slot index in the low 20 bits): the slot of an unloaded font is reused by the next one, so loading and unloading no longer runs out of ids at 65 536; the id of an unloaded font reaches nothing, even once its slot is taken. Ids of the first font in a slot are the same numbers as before. Code that stores Font_Id as an opaque number is not affected; code that computes with it (index into a table by id) must mask with 1 << 20 - 1.
  • Caret, arrows, Backspace, Delete, clicks (hit_index), the cut of a toast and the line breaks of wrap_lines work on grapheme clusters, not on code points. Word movement keeps its code point steps.
  • platform.poll_events / wait_handle drop only the events they returned before (they used to clear the whole list, losing what a poll of another window had queued for its window).
  • platform: the mouse stays captured until the last button is up; a lost capture makes the missing Mouse_Release. A repaint of a window that is not itself polled, arriving while another window of the thread polls, no longer runs on_frame inside that poll: it sets paint_requested (take_paint_request). A move and a menu now get frames (a 16 ms timer, WM_ENTERSIZEMOVE .. WM_EXITSIZEMOVE) as the documentation said.
  • platform.open_window returns nil when the system cannot make the window; inject_event of a Close sets is_closed.
  • COLR: a glyph over a bound of memory or work is refused (drawn as its outline); PaintComposite nests at most 8 levels; the interpreter draws without the atlas lock. colr_nests_glyph answers "nested" for a graph it cannot read to its end (so that it goes to the interpreter, not to Direct2D), colr_find keeps a base glyph record whose offset is outside the table as an unreadable graph, colr_open accepts any offsets in a v0 header with no records and refuses a table whose base glyph list does not fit; a face with such a table is not drawn in color by Direct2D.
  • Atlas: a bitmap bigger than a page makes no page and evicts none; draw.glyph_run caps the rasterization size and stretches the bitmap (text over 1024 px per em was invisible). The Direct2D canvas over 1M pixels is given back after use. Settings.page_size is documented as read by init only.
  • ui.menu_item closes the menu when its block ends, not in the middle (the items after the chosen one were built as buttons for a frame). ui.apply_palette keeps the entries an application added to the theme first (Theme.palette_at); theme_add copies its tags. ui.focus_step keeps to the open modal; focused_name is empty for a box not built yet in this build.
  • ui.fuzzy_find returns positions in the text it was given (a dotted capital I made them one byte off).
  • Timers, scrollbar owners and a virtual list's measured heights of rows that are gone no longer grow without end.

Fixed

  • ui.dropdown with an empty list or a selection outside it, ui.tabs with fewer icons than labels, and ui.segmented with no label panicked or drew an infinite rectangle.
  • platform.config_dir with %APPDATA% over 259 characters panicked; the clipboard is read up to the size of its block, freed when it cannot be given to the system, and GlobalLock is checked.
  • The wake-ups of the caret blink and of a tooltip delay no longer replace each other.
0.29.02026-10-25 10:05 UTCrelease

Fixes found by the review of render and draw (branch fix/render-draw). 0.30.0 is the font / ui / platform review branch. Each fix has a test that failed before it (tests/lifecycle is new).

Changed

  • docs/webgpu.md lists the functions the WebGPU backend does not have; docs/draw.md no longer says 3D is unsupported (planes are); docs/shaders.md: app_shader and app_shader_ready.
  • Not fixed (reported): bsp still splits the whole context when one pair crosses, with no limit on the number of pieces, and Plane_Item.geom is the texel-aligned rectangle (faces that touch look crossing; Wren works around it); a backdrop of a cut plane is captured once per piece; the hash of an app shader does not cover APP_BINDINGS (changing it makes every precompiled blob stale: to be done with the applications' blobs); Surface release on a thread, the DirectComposition Panel lifetime, canvas source textures never zeroed (to check).

Fixed

  • Plane pieces with more than 6 cuts (draw/bsp.odin): a piece bounded by more than MAX_PLANE_CUTS cuts had the extra ones thrown away, so it was drawn over its siblings' region at its own rank and covered planes that had to be in front. It is now divided by a chord between two of its corners into convex halves (the chord is one more cut for each), as often as needed: no cut is lost, no limit. Hidden (skip) items no longer take part in the crossing tests.
  • draw.app_shader keeps AppIn.pos, size and px in local units under a uniform scale plus translation (DPI, zoom) as docs/shaders.md says (they were pixels: a scale was baked into the rectangle); any scale now goes through a transform entry. It returns false for a shader that is not render.app_shader_ready.
  • Device loss with several windows (Direct3D 11): a Surface set aside by surface_use kept its swap chain, views and capture copy from the old device (undefined behaviour, then a loop of recoveries); and set_blend_space gave the new view format to the current window only. The window state carries the device generation and the blend space it was made in, and surface_use remakes a stale one (render.Renderer.swap_gen, swap_space, space_epoch; Surface.gen, space_epoch). d3d_recover flushes the old context after releasing its objects (the old HWND swap chain used to keep the window, and CreateSwapChainForHwnd crashed). An offscreen renderer notices a device loss at frame_end.
  • Captures belong to their window (Capture_State is exchanged with the Surface: the next frame_end of that window takes it, not whichever window ends a frame first); the staging copy of an old device is released at recovery (a pending copy becomes Failed) instead of being used on the new device.
  • wgpu_destroy read the texture table after freeing it. wgpu_recover without a device (adapter gone) returns false at once instead of creating textures on a null device and dropping the textures and shaders for good. A refused app pipeline on wgpu (the module passed, the pipeline did not) gives the shader up instead of invalidating every frame.
  • App shaders that cannot be remade after a device loss keep their handle (and name) until destroy_app_shader; the handle used to be given to the next shader. render.app_shader_ready(r, s) says whether one can be drawn.
  • Kept layers and planes (cache_id) follow set_text_rendering, set_corner_smoothing and the font atlas settings (they are in the key now), and a result drawn while a color glyph was still pending (Settings.color_async) is not kept (the glyph never came in). A masked layer that lost a target is not kept as the masked result.
  • push_plane inside a recorded picture records nothing (it recorded the content flat, unprojected); current_clip is not empty while recording.
  • Slug text, when the device refuses the Slug shaders, is not drawn (it was one solid rounded rect per glyph); d3d_update_texture_r8 checks the handle, the block and the pixels like the other uploads.
0.28.02026-10-25 07:20 UTCrelease

0.27.0 is reserved for the fixes of the review branch.

Added

  • Boxes with leaning sides (ui.Box.slant, platform.Slant): a clickable box can say that its left and right edges lean (how far each is moved inwards at its top and at its bottom). Only that trapezoid is hit (ui.box_contains; the topmost box under the pointer still wins), and over an integrated title bar it is a *slanted hole* (platform.Chrome_Regions.slanted, platform.Slanted_Region, platform.slanted_contains; hit_test_chrome answers .Client inside it), so that the corners a trapezoid tab does not cover keep dragging the window. For tab strips drawn with sloped sides. Tests in tests/chrome.
0.26.02026-10-24 20:08 UTCrelease

Merge of three branches: the GPU 2D canvas engine, faster image uploads, the window border color. 0.20.0 and 0.21.0 (reserved below for the canvas engine and the uploads) were never released: their content is here.

Added

  • A 2D canvas engine on the GPU (render/canvas.odin, canvas_types.odin, canvas.wgsl, module Canvas of tools/shaders, [docs/canvas.md](docs/canvas.md)), Direct3D 11: render.canvas_texture_create(r, w, h, target, mips) makes a canvas (a render target of premultiplied sRGB-encoded RGBA8, kept) or a source of pixels (canvas_upload); the owner records its drawing in a render.Canvas_List (instances with a geometry, a paint and an operator; commands for clip masks, layers, snapshots, putImageData) and canvas_submit(r, target, &list) replays it in runs of one draw call per operator / source / clip / scissor. Rectangles, rounded rectangles and ellipses have analytic coverage (exact box filter when axis-aligned), polygons 16 N-rook samples on boundary pixels only with the fill rule per sample (the pieces of a stroke never count twice); solid, linear / radial / conic gradients and images (four filters, wrap modes) as paints; the 11 Porter-Duff operators as blend states and the 15 blend modes from a copy of the backdrop; clip masks, layers with color-matrix and gaussian-blur passes (large blurs on reduced images). canvas_read (waits), canvas_read_begin / canvas_read_ready / canvas_read_finish / canvas_read_cancel (polled), canvas_read_mask, canvas_clear, canvas_set_opaque, canvas_supported (false on WebGPU), canvas_stats, canvas_pool_bytes. tests/canvas (12 pixel tests), in tools\test_backends.ps1.
  • platform.set_border_color(w, rgb): the color of the 1-pixel border Windows 11 draws around the window (DWMWA_BORDER_COLOR), or nil for the system's. With an integrated title bar the system's border is half transparent along the top edge: a line of whatever lies behind the window showed above the app's tab strip.
  • tests/textures (both backends): an unwritten texture is transparent, an opaque upload with a wider stride shows exactly, a translucent one is premultiplied in both spaces, a partial update zeroes the rest, mips follow an opaque upload; render/premultiply_test.odin checks the word-at-a-time premultiplication against (c * a + 127) / 255 for every value. Both in tools\test_backends.ps1.

Changed

  • Faster image textures: create_texture_rgba no longer zeroes a new texture with one UpdateSubresource per row (551 driver calls, 1 to 4 ms, for a 735 x 551 photo). The texture is marked unfilled; an update that covers it whole clears the mark, and one still unfilled when the frame is submitted (or hit by a partial update first) is zeroed with a few band-sized calls from one zero buffer (Renderer.zeros). Observable behavior is the same: a new texture is transparent. Data textures (create_texture_data) and video targets keep their own paths.
  • Faster uploads: update_texture_rgba checks whether the block is opaque (a vectorized AND of the words) and uploads opaque pixels, which is every JPEG and most PNG / WebP / AVIF, straight from the caller's buffer with its own pitch: no conversion pass and no scratch copy. Translucent blocks in the sRGB blend space are premultiplied a word at a time without branches or tables; the linear space keeps its table version. Both backends.

Fixed

  • Windows 11, integrated title bar: a line of what lay behind the window showed above the tab strip, because the system's border is half transparent there. An app now paints it opaque with platform.set_border_color (nothing changes until it does).
0.25.02026-10-24 19:27 UTCrelease

Added

  • Application shaders (render/app_shader.odin, app.wgsl, wgpu_app.odin, draw/app_shader.odin, [docs/shaders.md](docs/shaders.md)): render.create_app_shader(r, {name, wgsl, dxbc, hash}) registers a fragment function the application wrote in WGSL (fn app_shade(a: AppIn) -> vec4<f32>, linear light, straight alpha; it reads app_param(k) and app_tex0..3), and draw.app_shader(dc, shader, rect, params, textures, blend, radii, tint) fills a rounded rectangle with it, in order with everything else, under the transform stack, clips, alpha stack, layers and planes (the vertex stage, corner shape and clip coverage are the renderer's). Up to 64 vec4 parameters and 4 textures per draw; blend modes Normal, Add, Screen, Multiply. Refuses (returns false, draws nothing) for shader 0, while a picture is recorded, and over the limits. Both backends: WebGPU compiles the module rect.wgsl + app.wgsl + the application's WGSL; Direct3D 11 embeds the pixel shader precompiled by odin run tools/shaders -- app <name> <file.wgsl> <dir> (naga + D3DCompile, <name>.dxbc and <name>.sha256; the hash of the module is checked when the shader is created, a stale blob is refused with a message).
  • Data textures: render.create_texture_data(r, w, h, format = .RGBA8 | .R8, mips = true) and update_texture_data make textures of raw 8-bit values (a normal map, a height map, a mask): no sRGB decoding, no premultiplication, in either blend space; mip chain by GenerateMips / mip.wgsl; recreated (empty) after a device loss like images.
  • render.renderer_id(r): a number no other renderer of the process has had (a renderer destroyed and made again at the same address is another one), for caches of GPU objects keyed by renderer (with device_generation).
  • tests/appshaders (both backends), added to tools\test_backends.ps1 and CI.

0.24.0 is reserved for another branch; 0.25.0 follows 0.23.0 on purpose.

0.23.02026-10-24 16:04 UTCrelease

Changed

  • render.surface_create(r, hwnd, size, transparent = false, fixed_size = {}): a second window can have a composition swap chain (transparent, with the window opened with platform.open_window(..., transparent = true)) and a fixed surface (fixed_size, as set_fixed_surface does for the renderer's own window): resized, it shows its buffers 1:1 clipped by the client area, never stretched. The default stays an opaque HWND swap chain, which stretches the last frame while the window is resized. surface_destroy also releases a translucent surface's DirectComposition objects (and goes through set_teardown_wait).
0.22.12026-10-24 06:26 UTCrelease

Added

  • render.set_teardown_wait(r, ms): destroy waits at most that long for the swap chain (and a translucent window's DirectComposition objects) to be released, which happens on a thread of its own; past it the release goes on by itself. Releasing a swap chain waits for the system's compositor to let go of the window's surface, and on a machine whose cores are all busy that took seconds in a program that was closing. 0 (the default): destroy waits as long as it takes, as before.
0.22.02026-10-23 23:50 UTCrelease

Added

  • Synthetic input: platform.inject_event(w, event) queues an event that the next poll_events returns after the system's own, through the same path (hover, focus, shortcuts, text input behave as for a real device). For tests, remote control and macros.
  • Reading a frame back without the screen (render/capture.odin): render.capture_request(r, rect) marks the next frame, frame_end copies that frame's render target (or a part of it) into a staging texture just before presenting, and render.capture_poll(r) returns RGBA8 pixels once the GPU is done (it never waits: Pending until then). The picture is what the renderer drew: it works with the window covered, off the screen or hidden, and does not depend on the monitor's scale. Nothing is paid until a capture is asked for. Direct3D 11 (swap chain and offscreen); the wgpu backend answers false.

0.20.0 and 0.21.0 were reserved (feat/canvas-gpu and feat/gpu-accel); they were merged into 0.26.0 instead, and those two numbers stay unused.

0.19.02026-10-23 23:48 UTCrelease

Added

  • ui.menu_item(..., keep_open = true): choosing the item does not close the menu, for the switches of a settings menu (the check mark changes, the menu stays for the next one).
  • ui.set_menu_item_height(em): the height of the items of the menus built from then on, in em (default MENU_ITEM_EM, 2.2; 0 puts it back). A dense tool panel sets it while it builds its menus.
  • ui.menu_heading(text): a small weak title above a group of items of a menu (not an item: the keyboard skips it).
  • Fixed: platform.open_window kept the window class name in the caller's allocator, so a window opened later (once that memory was reused) failed with "cannot find window class"; the name is a literal now.
  • ui.use(state): selects the state the public procedures operate on, for programs that draw several windows with a state each.
  • render.surface_create / surface_use / surface_destroy: a second window drawn by the same renderer (same device, textures, fonts), as a surface swapped in for the frames drawn to it (Direct3D 11).
  • ui.tooltip_beside(): tooltip placed beside the pointer (its right, or its left when there is no room), centered on it, for the rows of a list or a table, where a tooltip below the pointer hides the rows under it.
0.18.02026-10-23 02:19 UTCrelease

Added

  • Video pictures as textures (render/video.odin, video.wgsl, shaders/video.hlsl): render.create_video_target(r, w, h) makes an RGBA texture for a decoded picture and render.video_convert(r, target, picture) fills it. A Video_Picture is what a decoder hands over: NV12 and P010 surfaces of the device itself (the hardware decoders of Media Foundation / DXVA write into textures of the renderer's device, shared with no copy when the surface allows it), or I420 and 10-bit I420 planes in memory. It carries the crop rectangle, the rotation (0, 90, 180, 270), the matrix (BT.709, BT.601, BT.2020), the range, and the transfer function (SDR, PQ, HLG, tone-mapped to the display's white with hdr_peak_nits and sdr_white_nits). The result is an ordinary texture to draw with draw as any image.
  • D3D11 creates its device with VIDEO_SUPPORT (dropped again when the software rasterizer refuses it: there is no hardware decoding there anyway); the wgpu backend has the same entry points (wgpu_video.odin, video.wgsl).
  • tests/video: the conversion of each format against reference values (colour matrices, ranges, crops, rotations, 10 bits), on D3D11 and wgpu; tools\test_backends.ps1 runs it.
  • render.set_max_frame_latency(r, n): the most frames the swap chain may queue (IDXGISwapChain2::SetMaximumFrameLatency); 1 by default, more while a window is resized so a present does not wait behind the previous frame. The wgpu backend has no equivalent (returns false).
  • render.set_fixed_surface(r, max_size): one surface size while the window resizes, shown 1:1 and clipped by the client area (composition swap chains only): a window being resized cuts the last frame instead of stretching it, and the newly shown strip stays the background until the next frame paints it. The blend-space change keeps the whole surface presented (d3d_resize skips the source region then).
0.17.12026-10-24release

Fixed

  • Direct2D crash on nested PaintGlyph: Direct2D of Windows 11 24H2 as first released (d2d1.dll 10.0.26100.1, the image of GitHub's windows-2025 runners; a patched 24H2 such as 10.0.26100.8875 draws them) dies with a null read inside d2d1.dll, an access violation nothing can catch, when it draws a COLR v1 glyph whose paint graph has a PaintGlyph inside the paint of another PaintGlyph (a clip inside a clip, directly or through transforms, layers, compositions and PaintColrGlyph). With Color_Engine.System such glyphs are now drawn by the COLR interpreter (font.colr_nests_glyph finds them in the font's own tables, once per glyph and face); every other glyph still goes to Direct2D. font.colr_avoids_system(state, face, gid) tells which. Found by the CI of Wren: tests/colr interpreter_agrees_with_direct2d died on U+F1400 .. U+F140F of the test font, 16 glyphs, and the process with it.
  • tests/colr: the comparison with Direct2D leaves out the glyphs Direct2D is no longer given; nested_glyphs_stay_off_direct2d checks, without depending on the machine's d2d1.dll, that exactly those 16 glyphs are kept off it and are drawn in color by the interpreter.
0.17.02026-10-22 11:06 UTCrelease

Added

  • Planes that cut through each other (draw/bsp.odin): draw.draw_planes(dc, items) draws the planes of one 3D rendering context in the order they hide each other, and when planes cut through each other (or hide each other in a cycle) splits them along each other's planes by a BSP (as Chromium's BspTree / DrawPolygon), the pieces ordered back to front for a viewer in front. A piece is the plane's layer drawn again under Plane_Draw.cuts (Plane_Cut: half-spaces of the space after the perspective divide, at most MAX_PLANE_CUTS, tested per pixel on the interpolated plane position in rect.wgsl: no seams between pieces). Plane_Item.parts: several layers on one plane (a plane and what rides on it) are cut and ordered together.
  • Effects on the composite of a plane: Plane_Draw.blend (mix-blend-mode of the projected quad), backdrop + shape (backdrop-filter filtered in screen space, shown through the alpha of a layer projected like the plane).
  • Sharp planes: Plane_Fx.mips gives a plane's layer a mip chain (render.acquire_target_mips, render.target_mips_supported, Op_Kind.Mips on D3D11 and wgpu); the projected quad's filter is anisotropic along the long axis of the footprint at the mip level of the short axis (proj_texel). FLAG_PROJECT instances take a frame rect (the antialiased edge, for a quad that is one piece of a larger plane) and the valid texel range of the layer (colors[2], colors[3]). draw.open_plane_frame (map a pointer back through a plane exactly).
  • tests/planes: planes crossing in an X (both orders of drawing give the same picture, with and without perspective), a star of three, blend on a flat and a turned plane, backdrop-filter through a silhouette, mip levels against aliasing; D3D11 and wgpu.
  • A COLR / CPAL interpreter (font/colr.odin, colr_raster.odin, colr_glyph.odin): Settings.color_engine = .Builtin draws COLR v0 and v1 color glyphs (gradients, transforms, the 28 composite modes, clip boxes, text-color paints) on the CPU from the face's own tables, the same on every platform, into the Color atlas pages (so also async, per text color, in pictures). Default .System (Direct2D), unchanged. colr_samples, colr_cache_kb, colr_counts, colr_of, colr_dump; Colr / colr_open / colr_render for the portable core. A graph it refuses (cycle, bad offset) shows the glyph's outline.
  • Built-in emoji: font.set_emoji_source(s, path | data): an emoji font loaded on first need, used for emoji characters before the system fallback (font/emoji.odin, emoji_data.odin generated from Unicode 18 emoji-data.txt by tools\gen_emoji_data.ps1). Tag sequences are formed from the face's GSUB ccmp ligatures (colr_gsub.odin).
  • tools\fetch_emoji.ps1 (Noto Color Emoji COLR v1, pinned by commit and SHA-256, OT-SVG table dropped: 4.9 MiB), font/data/NotoColorEmoji-OFL.txt, tools/colrcompare (interpreter against Direct2D), tools/colrboard + tools\emoji_board.ps1 (against Chrome / Edge), tools/emojiperf, tests/colr (also tests/color_glyphs -define:COLR_ENGINE=builtin).

Changed

  • rect.wgsl: two more flat varyings (the cuts of a projected quad); HLSL regenerated. ui.VERSION and the version constants agree again (they said 0.16.0 and 0.15.0).
0.16.02026-10-22 08:23 UTCrelease

Added

  • Planes: layers drawn through a projective 4x4 transform (CSS Transforms 2: perspective(), rotateX/Y, translateZ, preserve-3d). draw.push_plane / pop_plane / draw_plane (draw/plane.odin): the content of a rectangle is drawn offscreen in its own frame at a chosen raster scale, then composited as a quad through a column-major 4x4 matrix (draw.Mat4, the order of CSS matrix3d()), with perspective-correct interpolation, antialiased edges, anisotropic filtering along the long axis of the pixel's footprint (Plane_Draw.max_taps), the clips and alpha stack of the moment, and backface-visibility (Plane_Draw.cull_back, plane_faces_away). pop_plane hands the layer back so several planes can be sorted before draw_plane (preserve-3d). A plane whose content did not change is kept between frames (Plane_Fx.cache_id / cache_key, the layer cache of layer_cache.odin): push_plane returns false and only the matrix changes.
  • Shader: FLAG_PROJECT in rect.wgsl (a KIND_IMAGE instance whose homography is in two entries of the transform table): the vertex shader writes homogeneous clip positions, so the rasterizer clips against w > 0 and interpolates with perspective. No new pipeline: D3D11 (naga's HLSL, regenerated) and wgpu share it. tests/planes (flat plane equals the plain rect, perspective correctness, backface, a plane crossing the eye, kept planes, nested planes), on both backends.
0.15.02026-10-22 05:49 UTCrelease

Added

  • A WebGPU render backend (experimental), behind the same interface as the Direct3D 11 one: -define:TOOLKIT_RENDER=wgpu (default d3d11). wgpu-native over Direct3D 12 (or Vulkan with -define:TOOLKIT_WGPU_BACKEND=vulkan); the shaders ported to WGSL; translucent windows through a DirectComposition visual; GPU time per step. The pixel tests pass on both backends (tools\test_backends.ps1). See docs/webgpu.md.
  • tools\fetch_wgpu.ps1 (wgpu-native and DXC pinned by SHA-256), tools\render_probe, tools\ppm_diff.ps1, tools\window_shot.ps1.
  • Shaders written once, in WGSL: render/rect.wgsl, filter.wgsl, slug.wgsl (the Slug text shaders, ported), mip.wgsl. The HLSL of the Direct3D 11 backend is generated from them by naga (tools/wgsl2hlsl, naga pinned exactly, Cargo.lock pinned by SHA-256 in tools\build_naga.ps1), compiled to DXBC and embedded as before; odin run tools/shaders writes both; tests/shaders checks the SHA-256 of the sources in the header of each HLSL and the blobs; CI runs tools/shaders -- -check. render/rect.hlsl, filter.hlsl, slug.hlsl are gone (generated copies live in render/shaders/). D3D11 pixel tests unchanged, GPU time at a held clock and CPU per frame unchanged, first present +0 to +10 ms.n- render.backend_name(), render.adapter_description(); TOOLKIT_RENDER_TRACE=1` prints the time of the first present.
0.14.02026-10-22release

Added

  • Slug text: font.Settings.text_renderer = .Slug (default .Atlas, unchanged) draws glyphs on the GPU from their quadratic Bézier outlines (Eric Lengyel's Slug algorithm, MIT, patent in the public domain; shaders pinned in font/slug_ref, credit in NOTICE.md): sharp at any scale, rotation, skew or page zoom, exact subpixel positions, no bitmaps, nothing to re-rasterize when the scale changes (a picture of Slug text is never stale for its scale). Color glyphs (emoji) stay on the atlas path.
    • font: outlines come from a provider (font.Outline_Provider, slug_set_provider; DirectWrite's GetGlyphRunOutline on Windows, cubics turned into quadratics within Settings.slug_tolerance), slug_build makes the curve texels (RGBA16F) and band texels (RG16UI), slug_glyph caches them per (face, glyph) in pages of the two textures (Settings.slug_pages, least recently used page reused, pictures that drew from it go stale), slug_sync_page / slug_stats.
    • render: slug.hlsl (compiled after rect.hlsl, which it reuses for transforms, clips and the text correction), KIND_SLUG instances in the ordinary instance list drawn by their own pipeline (Frame_Data.slug_runs, Replay.slug_runs: a batch is drawn in pieces, in order), create_slug_textures, update_slug_page.
    • draw: glyph_run uses it when the setting says so; pictures remember their Slug pages.
    • tools/textcompare: atlas | Slug | difference images and measurements; tests/slug.
0.13.12026-10-21 19:32 UTCrelease

Added

  • GPU profile steps Upload, Acquire, Present and Idle (only while set_gpu_profile is on): where a frame's GPU time goes, the swap chain's wait and the present included.
0.13.02026-10-21 13:53 UTCrelease

Changed

  • Interaction states show at once: hover, press, focus, selection and disabled no longer fade in or out (hot_t, active_t, focus_t, disabled_t go from 0 to 1 in the frame that sees the change), and box colours jump to their targets (a selected row, the hovered menu item). A hover change asks for no further frame. A change of palette still cross-fades every colour for ui.PALETTE_FADE_MS (160 ms).
  • Hover and press fills are visible: the theme's new state entries hover_fill / press_fill are fractions of the way to the palette's tint (white on dark palettes, black on light ones) in sRGB values, drawn over the surface actually under the box (ui.box_under) with the alpha that gives that step in either blend space (draw.alpha_like_srgb). Per role: buttons 7 % / 13 %, ghost and icon buttons 8 % / 14 %, accent and danger buttons 10 % / 18 %, list rows 5 % / 9 %, tabs 6 % / 10 %, segments 7 % / 12 %, anything else with .Draw_Hot_Effects 7 % / 12 %; menu items show their selection under the pointer (8 % more while pressed). The old tiny overlay (1.4 % / 2 % in linear light) is gone. The tint entry hover itself is unchanged.
  • Fields: the border of a line_edit under the pointer moves 22 % toward the tint (input hover_border).
  • No press "squish" by default; Theme.press_squish (e.g. 0.04) brings it back, at once and without animation.

Added

  • Theme.transition_ms: > 0 brings back short cross-fades of the interaction states (default 0); Theme.serial, bumped by theme_add, theme_set and apply_palette when a colour changes.
  • Selectable list_rows have .Draw_Hot_Effects (tag list_row, built under it only); segmented items light up under the pointer (tag segment); tabs items have the tag tab.
  • "<tags> hot text": the text colour of a clickable box under the pointer (falls back to the normal one). remove_button hot text is the palette's red, remove_button hover_fill / press_fill a light red step: push the tag remove_button around an icon_button for a delete cross.
  • Box_Flag.Hot_Within: a box stays hot (and lit) while the pointer is on a clickable box inside it; selectable list_rows have it (a row and its delete button). ui.hot_within(key): the same question while building (last frame's tree), e.g. to show a row's buttons only while the pointer is on it.
  • list_row keeps a cursor given with next({cursor = .Hand}) (rows that open something).
  • ui.state_fill(box, name, under), ui.box_under(box), ui.srgb_step(a, b, t): the theme's state steps for custom draw procs.
  • draw.alpha_like_srgb: the inverse of alpha_like_linear (the alpha that looks in a blend space as a given alpha blended in sRGB values).
  • tests/states: instant states, transitions on demand, palette cross-fade, the size of the steps in both blend spaces.
0.12.02026-10-21 13:43 UTCrelease

Added

  • Every CSS cursor: platform.Cursor has all the values of CSS Basic User Interface 4 (none, context-menu, help, progress, wait, cell, crosshair, vertical-text, alias, copy, no-drop, grab, grabbing, all-scroll, col-resize, row-resize, the eight one-way resizes, nesw-resize, nwse-resize, zoom-in, zoom-out) next to the seven it had, which keep their names (Arrow = default, Hand = pointer, Resize_H = ew-resize, Resize_V = ns-resize). cursor_from_css / cursor_css_name (CURSOR_CSS_NAMES) convert from / to the keyword (-webkit-grab and the other legacy names too).
  • On Windows a cursor is the system's (IDC_*: the user's scheme and size) when Windows has it (cursor_system_id, cursor_source); the twelve it lacks (grab, grabbing, zoom-in, zoom-out, cell, copy, alias, context-menu, no-drop, vertical-text, col-resize, row-resize) are drawn by the toolkit (platform/cursor_shapes.odin: shapes on a 32-unit grid, signed distances sampled 4 x 4 per pixel, cursor_draw) at the size of the system's cursors on the window's monitor (SM_CXCURSOR at its dpi, cursor_size_px), in the colours of the user's scheme (white or black pointer, read from the system's arrow: cursor_scheme), with the hotspot where Windows puts it (an arrow's tip, a hand's palm, a magnifier's lens); made once per size and scheme, again when the dpi or the cursor settings change (WM_SETTINGCHANGE SPI_SETCURSORS), destroyed with the window. None hides the pointer over the client area.
  • Custom cursors from an image: custom_cursor_create(w, rgba, size, hotspot, density, key, max_css) (hotspot clamped into the image; larger than CUSTOM_CURSOR_MAX_CSS = 128 CSS pixels, Chromium's limit: .Too_Large, the caller shows its fallback), shared by key with counted references, custom_cursor_release, set_cursor_custom(w, cc, fallback, scale) (the image resized to its CSS size times the scale, cursor_resample: premultiplied, a tent filter as wide as the reduction; at most four sizes kept per image), custom_cursor_valid, custom_cursor_stats, custom_cursor_info.
  • destroy_window: destroys the window and what it holds (its cursors, events, title bar regions).
  • cursor_info, cursor_handle_of, shown_cursor, cursor_render (a cursor as the system draws it, for previews and tests).
  • examples/cursors: every cursor in a grid (light and dark tiles, its CSS name, system or drawn), hover a cell to get it; the last cell has a custom cursor. --preview N draws the previews at N pixels.
  • tests/cursors: CSS names, system or drawn for each value, the drawn shapes at several sizes and both schemes (colours, bounds, hotspots), resampling, and on a hidden window every cursor made at the system's size, custom cursors' references, sizes, hotspots, limits and release.

Changed

  • The cursor is shown at once when set_cursor / set_cursor_custom changes it while the pointer is over the client area or captured by the window (a drag: no WM_SETCURSOR comes during a capture; a page scrolled or changed under a pointer that does not move), and WM_SETCURSOR over the client area sets the one resolved last (no frame needed while the pointer moves over the same thing). The system keeps its own over the frame, the resize bands and the caption of an integrated title bar.
  • Native_Window.cursors is no longer an array of handles (the cursor state of cursors_win32.odin).
0.11.12026-10-20 20:49 UTCrelease

Fixed

  • ui.init makes the state current: getters (scale, font_size, focus_key...) called before the first begin_build read a nil state and crashed (Wren crashed at start-up when the pointer was over its window).
0.11.02026-10-20 18:01 UTCrelease

Changed

  • Shaders compiled ahead of time: render/rect.hlsl and render/filter.hlsl are embedded as DXBC (render/shaders/*.dxbc, render.SHADERS) instead of being compiled by D3DCompile when the renderer starts (280 ms to 1.5 s of every launch, rect.hlsl's pixel shader dominating). odin run tools/shaders writes the blobs after an edit of the HLSL; tests/shaders fails while one is stale. -define:RENDER_COMPILE_SHADERS=true compiles at start-up as before. render.shader_compile(id).
  • Resizing without ResizeBuffers at every step: render.resize keeps the swap chain's buffers larger than the window (rounded up to set_resize_slack pixels, default DEFAULT_RESIZE_SLACK = 256) and only changes the presented region (IDXGISwapChain2::SetSourceSize, microseconds) while the window fits in them; they are reallocated once per slack crossed, and made smaller when they hold more than twice the pixels shown. ResizeBuffers cost 1.6 to 3.5 ms a step. render.buffer_size. The window's swap chain is created with DXGI_SCALING_STRETCH (with NONE, DWM showed a smaller source region magnified).
0.10.12026-10-20 17:24 UTCrelease

Added

  • font.Metrics.line_gap: the face's line gap, unrounded (a layout rounds ascent, descent and gap one by one, as Blink does).
0.10.02026-10-19 15:16 UTCrelease

Added

  • Kept filter results (draw/layer_cache.odin): Layer_Effects.cache_id, cache_key, cache_anchor keep a layer's filtered texture from frame to frame (stored once the same key came two frames in a row); while the caller's key, the filters run by passes, the transform's linear part, the anchor's fraction and the bounds relative to the anchor hold, push_effects returns false (the content need not be drawn; what is drawn is discarded) and pop_layer composites the kept result, moved by whole-pixel moves of the anchor. Opacity, blend mode and trailing color matrices stay live. A layer up to max_layer_px is drawn whole when it is to be kept (scrolling it into view keeps it good). Layer_Effects.cache_under (blend modes into the opaque frame) keeps the blended pixels: no layer, copy or blend while what lies under is the same. backdrop_capture / backdrop take cache_id, cache_key (what lies under), cache_anchor. set_layer_cache(dc, budget, max_layer_px, idle_frames), layer_cache_stats, layer_cache_forget, layer_cache_clear.
  • Masked layers are kept too: push_mask takes the same cache_* fields and returns false like push_effects when the kept result stands (the mask is in the kept result: neither the content nor the mask layers are drawn, and mask_layer does nothing). The caller's cache_key must cover the mask layers; the toolkit salts it so that a masked and an unmasked layer never share a result. Trailing color matrices stay live only when they commute with the mask (no alpha column in the color rows, an alpha row that only scales alpha by [0, 1], as every CSS filter function); others run as passes before the mask, as CSS orders them.
  • render.keep_target / unkeep_target (a pooled texture held across frames), targets_generation, kept_targets_bytes, texture_bpp, acquire_target_format, Target_Format.
  • Per-step GPU profile (render/gpu_profile.odin): set_gpu_profile(r, on, detail), gpu_profile(r): time, count, pixels and estimated traffic of each kind of step (Gpu_Step: draw runs into the frame or a layer, clears, copies, color / blur / reduction / shadow / mask passes), render targets bound, the slowest steps; detail times every draw call (batch, instances, kinds, flags, scissor).
  • render.set_filter_precision(r, .Unorm8 | .Half): filter results in sRGB-encoded 8 bits or fp16.
  • render.FLAG_SCALED, render.FLAG_MATRIX for layer composites and backdrops; Pass.factor.
  • examples/effects: --nocache, --half; --bench prints the GPU time by kind of step; the thumbnails and the stress cards keep their results. tests/gpufx: reduced blurs against the exact gaussian, kept layers / blended pixels / backdrops against drawn ones (hits, whole-pixel moves, invalidation), stale texels never read, the profile, masked layers kept (against drawn ones, a new mask key redraws, a blur under a mask).
  • Integrated title bar (platform, ui/window_chrome.odin): the app's own boxes are the window's title bar, as in Edge and Chrome (tabs in the title bar).
    • platform.open_window(..., integrated_title = true) or platform.set_integrated_title(w, on) at any time: the client area covers the title bar (WM_NCCALCSIZE); the system's frame stays on the left, right and bottom (invisible resize borders, the shadow, Windows 11's rounded corners and border). Maximized, the client area stops at the monitor's edge and leaves 2 px along an auto-hidden taskbar so that it still comes up.
    • The app reports its title bar every frame (platform.set_chrome_regions(w, &Chrome_Regions): caption areas, the interactive holes in them, the caption buttons); WM_NCHITTEST answers from it (platform.hit_test_chrome, pure and unit-tested): HTCAPTION where nothing is interactive (drag, Aero Snap, double-click to maximize, right click for the system menu), HTMINBUTTON / HTMAXBUTTON (Snap Layouts on Windows 11) / HTCLOSE, HTTOP* along the top edge (a band of the frame's thickness, corners at both ends), the system's own answer on the other borders.
    • Over the caption and its buttons, mouse moves come as Mouse_Move events (hover follows); a press on a caption button is captured and comes as Mouse_Press / Mouse_Release (the system never draws its own buttons over the app's). Mouse_Leave only when the pointer leaves the window, not when it goes from the client area to the title bar.
    • Event_Kind.Activate and Window.active: the window became active or inactive (dimmed caption glyphs).
    • platform.minimize, toggle_maximize, request_close, is_maximized, is_minimized, show_system_menu(w, pos), set_fullscreen(w, on) / is_fullscreen (the window covers its monitor without frame; back to its placement), needs_top_border (Windows 10 draws no top edge: the toolkit draws it), resize_border, is_windows_11, app_icon_rgba(size) (the exe's icon as RGBA, to draw it in the title bar). Alt+Space opens the system menu.
    • ui.Build_Params.window: after each build the toolkit sends the window its title bar: every box with the new .Window_Caption flag is a caption, every clickable box over it a hole (popups included), window_buttons are the caption buttons. ui.title_bar(id) (a row with .Window_Caption), ui.window_buttons() (minimize, maximize / restore, close: 46 px wide, as tall as the row, glyphs from Segoe Fluent Icons or Segoe MDL2 Assets, else drawn; the system's fills: hover / pressed tints, close in red #c42b1c, dimmed glyphs while the window is inactive; clicks act on the window), ui.chrome_regions(s).
    • fidget: --integrated makes its menu bar the title bar.
  • Virtualized list ui.vlist(id, &Virtual_List, ids, labels, selectable) (ui/vlist.odin): only the rows in view (and a margin) are built, whatever their number. Rows of any height: measured when laid out, kept per row identity and per width / scale / font size, the average for rows never seen; the view stays on the row it shows when heights above it change. The keyboard of list over every row (Up / Down, Page Up / Down, Home / End, type-ahead on labels, Enter, Escape), the active row scrolled into view at once. vlist_destroy, vlist_invalidate, vlist_scroll_to, vlist_row_extent.
  • Wrapped text cache: a paragraph's lines are kept per (text, font, size, width) between builds (wrap_lines_cached, wrap_cache_len); layout and drawing no longer wrap every paragraph twice per frame.
  • Smooth scrolling along a curve for the toolkit's scroll regions (ui/scroll_anim.odin): impulse (default, as Edge) or ease-out, a duration per move, sampled at the frame's time (Build_Params.frame_ms: a display clock, e.g. the vblank the frame is shown at); a new target while moving keeps the speed. ui.set_scroll_settings(s, {curve, impulse, duration_ms}); .Exponential is the former easing. Apps that scroll their own document the same way feel alike.
  • tests/chrome: hit test (zones, edges, maximized), title bar regions and caption button clicks from a ui tree, virtualized list (rows built, measured heights, keyboard over unbuilt rows, view anchoring), wrap cache, scroll curve.

Changed

  • list: the keyboard handling and type-ahead are shared with vlist (List_State.virtual); no change for list.
  • Wrapped text is drawn at the width layout wrapped it at (Box.size), not the rounded rect's.
  • Color matrices ending a filter chain are applied by the composite (one pass and one target fewer; a layer with only color filters runs no pass).
  • Large blurs: the reduction by 2, 4 or 8 is one pass; the result stays reduced and is sampled back by the next pass or the composite (no upsampling pass); the variance of the bilinear resampling is taken off the gaussian's.
  • Filter passes no longer clear their target: they write a transparent ring of one texel past their region and read no further (the mask pass included). Filter chains end in sRGB-encoded values (no conversion pass back to linear).
  • push_effects and push_mask return a bool (see above); existing calls that ignore it are unchanged.
  • Backdrop holds the chain's trailing matrices and whether its texture is kept.
  • A masked layer whose filters end with a large blur applies its mask at scale 1 over the reduced result (sampled back bilinearly, as the composite would).
  • tests/chrome and tests/keyboard take a lock around each test (they drive the global UI state): they no longer need -define:ODIN_TEST_THREADS=1, without which tests/chrome used to hang the test runner.
0.9.32026-10-19 13:35 UTCrelease

Added

  • Direct2D draws color glyphs (font/color.odin, bindings in font/d2d.odin): COLR v1 paint trees (linear, radial and sweep gradients with their extend modes, transforms, PaintComposite modes, clip boxes, PaintColrGlyph), COLR v0 layers, sbix / CBDT / PNG bitmaps and OT-SVG (plain or gzip) are drawn on a private WARP device into a bitmap read back into the atlas' Color pages. Windows 11 22H2 and later: ID2D1DeviceContext7::DrawGlyphRunWithColorSupport; Windows 10 1607 and later: the runs of TranslateColorGlyphRun drawn by the call of their format (no paint trees: v0 layers or the outline); without Direct2D: COLR v0 layers composited on the CPU as before. Whether a glyph is a color glyph comes from IDWriteFactory8::TranslateColorGlyphRun (paint trees) or IDWriteFactory4's.
  • Text-color layers (palette entry 0xFFFF, COLR v1 foreground paints, SVG currentColor) take the text color: a color glyph is drawn in two colors once to find whether it depends on it; such glyphs are kept once per text color. font.glyph_image gains an fg parameter (sRGB, default black); draw.glyph_run passes the run's color. Glyph_Image.uses_fg.
  • font.color_renderable(s, id): false for a face whose only color format the system cannot draw (COLR v1 before Windows 11 22H2): a cascade should take those characters elsewhere rather than show outlines.
  • Faces with only COLR v1 (DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE) count as color faces. Whether a COLR v1 glyph uses the text color comes from its paint attributes (IDWriteFontFace7::CreatePaintReader), of a COLR v0 glyph from its layers; only SVG glyphs are drawn twice to find out.
  • Off the drawing thread (Settings.color_async, off by default): a complex color glyph costs milliseconds (a Segoe UI Emoji COLR v1 emoji: about 4 ms on WARP). The first lookup queues it and returns a pending image (Glyph_Image.pending); one thread draws the queue, puts the bitmaps in the atlas and calls font.set_color_ready_callback's callback (ask for a frame there). font.color_ready_generation, font.color_pending, font.color_wait. A picture recorded while one of its glyphs was pending is stale once the ready generation moves (Picture.glyphs_pending, pending_ready; checked before the empty-picture cull). unload drops a face's queued requests and waits for the one in flight; destroy stops the thread.
  • tests/color_glyphs: Google's COLR v1 test glyphs (gradient ends and middle, sweep quadrants, radial, composite, rotate / skew / transform, foreground paints in two text colors), Twemoji sbix / OT-SVG / OT-SVGZ smileys, the ChromaCheck CBDT glyph, color glyphs off, and the same glyphs drawn through the draw layer (WARP).
  • draw.push_mask(dc, bounds, fx), draw.mask_layer(dc, mode, op), draw.pop_mask(dc) (draw/mask.odin): content drawn into a layer, multiplied by the coverage of mask layers drawn after it, each by its alpha or its luminance (Mask_Mode), composited with the layers below it by Mask_Op (add, subtract, intersect, exclude: CSS mask-composite); then filters, opacity and blend mode as push_effects. Mask layers draw in sRGB. Without a render target (or in a picture) the content is drawn unmasked and the mask layers are cut away. CSS mask-image and background-clip: text are drawn with it.
  • render.Pass_Mode.Mask (render/filter.hlsl), PASS_MASK_LUMINANCE, PASS_MASK_DEST, PASS_MASK_APPLY, MASK_OP_SHIFT, render.Mask_Op. pop_layer closes a mask too.
  • tests/masks (both blend spaces): alpha and luminance coverage, the four operators, a gradient mask under opacity and a clip, no mask layer, text as a mask (background-clip: text), the fallback inside a picture.
0.9.22026-10-19 12:24 UTCrelease

Added

  • Frame pacing at the monitor's rate (platform/display_win32.odin, render/present.odin):
    • platform.display_info(w): the refresh rate of the monitor the window is on, exact (Display_Info.hz 59.94, 143.998, 180: the rational rate of the display path from QueryDisplayConfig, else the current mode, else DWM's composition rate, else 60), its source, the monitor and a serial that changes with any of them. Cached; read again after WM_DISPLAYCHANGE, WM_DPICHANGED, a move or size loop, or when the window is on another monitor. display_invalidate(w).
    • platform.wait_handle(w, handle, timeout_ms): waits for a handle (the swap chain's latency object, a timer) while taking the window's keyboard and mouse messages as they arrive; they are kept for the next poll_events.
    • Event.stamp: when the window procedure received the event (input latency).
    • platform.take_paint_request(w): a WM_PAINT that came during the app's own poll_events (see Changed).
    • render.set_present_mode(r, .Vsync | .Tearing) (tearing: for variable refresh displays, the app paces its frames; the swap chain is created with ALLOW_TEARING when tearing_supported(r)), present_mode, set_sync_interval(r, n) (every n-th refresh), set_expected_refreshes(r, x) (app-timed frames), frame_waitable(r).
    • Frame statistics after every present: take_displayed(r) returns each frame once it reached the screen (Displayed_Frame: present number, the input it was built from (set_frame_input, or mark_input), when Present returned, the vblank it was shown at, refreshes since the previous one and refreshes it came late for in a run of continuous frames (set_frame_continuous)). present_totals, measured_refresh_hz (vblank interval measured from the statistics), vblank_grid (the last vblank and the period: the grid frames land on), qpc_to_tick.
    • Renderer.swap_buffers (set before init): back buffers of the swap chain (default 2).
    • -define:D3D_DEBUG=false turns the Direct3D debug layer off in a -debug build (profiling with true GPU times).
  • render.wait_for_frame(r, timeout_ms) takes a timeout and says whether the swap chain was ready.

Changed

  • WM_PAINT during the app's own poll_events no longer runs a nested frame (it presented twice in one turn of the loop and waited twice for the swap chain, breaking the cadence): the frame being built repaints, and take_paint_request says one was asked for. Inside a loop of the system (live resize, move, menus: WM_ENTERSIZEMOVE / WM_ENTERMENULOOP) on_frame is still called from WM_PAINT.
  • RENDER_PROBE prints frames presented / shown / missed, input-to-screen latency and the measured rate from the new statistics.
  • stepper: holding a button wakes the loop at the next repeat instead of drawing a frame at every refresh.
0.9.12026-10-19 11:18 UTCrelease

Changed

  • Merge of 0.9.0 (DirectWrite text, retained glyph runs) with 0.8.1 (status bar, frame graph) and 0.8.2 (named palettes).
0.9.02026-10-19 11:11 UTCrelease

Text on DirectWrite (shaping, fallback, bidi, color glyphs, atlas pages) merged with retained drawing (0.7.0).

Added

  • Glyph runs record into pictures: draw.glyph_run (and text / text_ex on top of it) records shaped glyphs (positions from the shaper, subpixel positions, color glyphs) like direct drawing; text is rasterized for the picture's raster_scale times the slot's scale (within TEXT_RASTER_TOLERANCE the bitmap is stretched), baked only at the picture's own scale. Batches switch between gray and color pages inside a picture as in a frame.
  • Staleness per atlas page: a picture remembers the pages its glyphs are on and their epoch (font.Page_Ref, Picture.pages); it is .Stale when one of them was reused for other glyphs, or when the rendering settings changed (font.atlas_settings_generation), not on every eviction. A replayed picture marks its pages as used by the current frame (font.atlas_pages_hold): they are not reused under it. Batch_Bounds.gray / .color: the pages a picture batch samples, bound to the replaying context's textures (a picture can be replayed by another context).
  • Device loss: the atlas pages upload again whole from their CPU copy (same texture handles); pictures with text stay valid and replay without recording (before: the atlas was reset and every picture with text went stale).
  • font.Glyph_Image.epoch, font.Page_Ref, font.atlas_pages_hold, font.atlas_settings_generation.
  • tests/retained: the scene has color emoji and shaped Arabic (system fallback) next to Latin text, rotated glyphs with an emoji; a page reuse with tiny pages makes only the picture on it stale while a picture drawn every frame keeps its page and replays exactly; new rendering settings and clear_atlas make a picture stale; after a device loss a picture with text replays identically without recording.
  • Cascades: font.cascade(entries, features, no_system_fallback): per-character fallback through the entries (ranges = CSS unicode-range), then the system fallback (IDWriteFontFallback::MapCharacters); clusters stay in one face (marks, selectors, ZWJ emoji sequences). OpenType features on every face.
  • font.with_simulations (synthetic bold / oblique), font.axes, font.with_variations (variable fonts), font.unload, font.valid, font.primary_face, font.set_settings, font.clear_atlas, font.clear_word_cache.
  • Shaping: font.shape -> Shaped{glyphs (visual order), clusters (logical order), width} (Glyph_Pos, Cluster), Shape_Options{direction, one_run, letter_spacing, word_spacing, justify}, font.measure, font.caret_x, font.hit_index, font.shaped_destroy. Words shaped once and cached (sharded, bounded, per-thread front cache): measuring is thread-safe without a global lock.
  • Analyses: font.bidi_levels, bidi_runs, runs_of_levels, visual_order, reorder (UAX #9); font.line_breaks (UAX #14, dictionaries for Thai...); font.maybe_rtl, font.first_strong_rtl.
  • Glyph bitmaps: font.glyph_image (grayscale, Settings.subpixel_steps horizontal positions, rendering mode and grid fitting from Settings), color glyphs (COLR / CPAL layers composited to RGBA, drawn as images: emoji), atlas pages of both kinds with LRU reuse that never clears a page a current frame uses (atlas_begin_frame, atlas_remove_user, atlas_page_count, atlas_page_info, atlas_evictions).
  • draw.glyph_run(dc, size, pos, color, glyphs) (the painter's entry point), draw.text_ex(..., opts).
  • font.Settings / font.DEFAULT_SETTINGS (font.init(s, settings)).
  • tests/text: faces, memory faces, fallback (U+2190 in a Latin font), ligatures and kerning, Arabic joining, Devanagari, bidi, line breaks, color emoji pixels, atlas stress with a tiny atlas, measuring from 8 threads, and a WARP pixel test of drawn text.

Changed

  • font.set_settings with new rendering settings (subpixel steps, rendering mode, grid fit, color glyphs) forgets the cached bitmaps (they were made with the old settings; with other subpixel steps their keys meant other positions) and bumps the settings generation.
  • Text under a GPU transform at its layout size (rotation, skew) is placed at subpixel positions in local units, as text at a uniform scale: a picture recorded at its own scale and replayed rotated draws what direct drawing draws.
  • Picture.atlas_generation and font.reset_atlas are gone (font.clear_atlas clears the pages: pictures on them go stale).
  • font is rebuilt on DirectWrite (stb_truetype is gone): faces from the system collection (font.load_system, font.has_system_family), files (load_from_file) and memory (load_memory, load_from_memory, load_embedded: a custom font file loader, keys never reused). Same Font_Id, metrics, text_width, x_from_index, index_from_x, glyph (now outline metrics) and kern (a pair shaped together minus apart) as before, so existing callers get fallback and shaping unchanged. See [docs/text.md](docs/text.md).
  • font.Metrics gains x_height, cap_height, underline_offset / _thickness, strike_offset / _thickness.
  • draw.text shapes (fallback, ligatures, kerning, bidi in the string's direction) and draws through draw.glyph_run; it moved to draw/text.odin with TEXT_RASTER_TOLERANCE. draw.Context.glyphs holds the textures of the atlas pages; draw.init / begin_frame / end_frame / destroy call into it (text.odin).
  • font.State no longer has pending / pending_pixels / glyphs / fonts: the atlas is in pages uploaded per draw context (font.atlas_sync_page).

Fixed

  • font.shape of one right-to-left run of several words (one_run, a layout fragment) left its clusters in visual word order: the caret of the logical end and hit testing landed inside the text. Clusters are sorted back to logical order (O(n log n)).
  • A full atlas no longer resets in the middle of a frame (glyphs drawn earlier in the frame showed the glyphs rasterized over them: "20 ☒ 7 minutes").
0.8.22026-10-19 10:55 UTCrelease

Added

  • The palettes of fidget are built in: PALETTE_GRAPHITE, PALETTE_NORD, PALETTE_DRACULA, PALETTE_AMBER, PALETTE_AERO, PALETTE_BOOTSTRAP, the NAMED_PALETTES table (with Midnight and Daylight) and palette_named(name). fidget uses the table.
0.8.12026-10-19 10:45 UTCrelease

Added

  • Status bars and frame statistics (ui/status.odin): status_bar(id) (a bar along the bottom of a window, theme tags "bar", text a little smaller), status_fill(id) (the flexible part of the bar: takes the room left, clips its items), status_item(id, tone, mono, clickable, width), status_separator().
  • Frame_History: a ring of History_Samples (up to HISTORY_SERIES = 8 stacked values, a time, an app tag): history_init / history_destroy / history_resize (keeps the newest) / history_clear / history_push / history_at / history_last / history_find_tag (complete a sample later: GPU times arrive a few frames late) / sample_total; history_stats(h, since_ms, budget) (n, mean, min, max, p50, p95, p99, over budget, per-series mean and max, span) and history_rate(h, now_ms, window_ms) (samples per second).
  • frame_graph(id, &history, Frame_Graph_Opts): one stacked bar per sample, newest at the right; per-series colors, series (draw more series than the history counts, e.g. a GPU time over the CPU phases), bars, a dashed budget line, scale / max_scale (the top fits most bars; a rare spike is cut and marked instead of flattening the rest), warn / bad cap marks, highlight. The result is the box's signal plus the history index of the bar under the pointer. graph_scale gives the top it uses. Nothing asks for frames.
  • stat_row(id, label, value, width, mono, swatch_color, tone), stat_heading, swatch: rows of detail panels and graph legends.
  • popover(id, anchor, width, side, align_right): a floating panel above or below a widget (the other side when it does not fit, clamped to the window), open as long as the app builds it; popover_rect(id) for input the app routes itself.
  • render.set_gpu_timing(r, on): the GPU time of each frame_submit measured at run time, without -define:GPU_TIMING (timestamp queries in a ring, read back later: the CPU never waits); gpu_timing_enabled, gpu_next_frame and gpu_result (the time and the index of the submit it measured, to attribute it to its frame).
  • render.texture_memory(r): GPU memory of the renderer's textures by kind (glyph atlases, images with their mips, layer targets).
  • examples/fidget: its status bar uses them (build and draw time per frame, stacked, with a tooltip per frame).
0.8.02026-10-19 09:28 UTCrelease

Added

  • Menus rebuilt (popups.odin): any depth of submenus (menu_submenu, opens on click, after MENU_HOVER_MS of hover, or with Right / Enter / Space; to the right of its item, or the left when there is no room), menu_separator, disabled items (menu_item(..., enabled = false) or a disabled scope: muted, skipped by the keyboard), automatic width (ctx_menu(key) with width 0: as wide as the widest item), placement that stays on screen (flips to the other side of the point or anchor rect, then clamps), ctx_menu_open_rect (below a button, above when there is no room), ctx_menu_open(..., from_keyboard = true) (first enabled item selected), menu_select, menu_depth, menu_rect. An open menu owns the keyboard (key presses and typed text, in order): Up / Down / Home / End over enabled items (wrapping), Right / Left through submenus, Enter / Space choose, Escape closes one level, a letter selects the next item starting with it. Levels the app stops building close.
  • Keyboard lists (list.odin): list(id, &List_State) + list_row(&st, i, label, selectable): one Tab stop with an active row; Up / Down / Page Up / Page Down / Home / End (skipping non-selectable rows such as group headers), Enter or double click (activated), Escape (cancelled), type-ahead (LIST_TYPEAHEAD_MS), the active row kept in view; rows drawn with "selected" / "weak_selected" tags. list_select, list_state_destroy.
  • Wrapped text: Box_Flag.Text_Wrap (a .Text height is that of all the lines at the width the X pass gave), paragraph(id), wrap_lines.
  • Line edit history and commands: Ctrl+Z / Ctrl+Y / Ctrl+Shift+Z (typing and deleting merge into steps, FIELD_UNDO_STEPS), Ctrl+Insert / Shift+Insert / Shift+Delete; field_undo, field_redo, field_can_undo, field_can_redo, field_cut, field_copy, field_paste, field_delete, field_insert, field_select_all, field_has_selection, field_selection (for context menus).
  • tab_stops(on) scopes (widgets left out of the Tab order), tab_direction(s) and focus_step(s, from, dir) (an app handing the focus to its own content and back), tabs(..., right_clicked, middle_clicked).
  • ui.destroy(s) frees the state. platform.Key.Menu (the application key), Num_Add, Num_Subtract (Ctrl+keypad plus / minus zoom), keypad digits as N0..N9.
  • tests/keyboard: menus (keyboard, submenus, Escape by level, placement, press outside), lists (moves, headers, type-ahead, kept in view, Enter / Escape), line edit history and clipboard, wrapped text, without a window.
  • fidget: View menu with submenus.

Changed

  • ctx_menu (width now optional) pads its panel; State.ctx_menu_key, menu_sel, menu_width... are replaced by State.menus (the stack of open levels). Dropdowns open below their button (above without room) and from the keyboard (Down, Alt+Down, F4) with the current value selected.
0.7.02026-10-19 09:17 UTCrelease

Added

  • Retained drawing: draw.Picture, picture_begin / picture_end (record what is drawn between them instead of drawing it), replay(dc, pic, m) (Replay_Result: Drawn, Culled, Stale), picture_destroy, picture_release, picture_bounds, picture_stale, picture_size, recording. Transforms pushed while recording are slots (current_slot, push_slot, picture_set_slot, picture_slot): their matrices change without recording again (one GPU range rewritten). Clips pushed while recording are mapped at replay (an exact scissor under a uniform scale + translation, as push_clip). A replay draws under the current transform, alpha stack and clips, in the order of the frame (immediate drawing and replays mix). Pictures that would show text at another raster size, or whose glyphs were evicted from the atlas, report Stale.
  • Persistent GPU heaps for pictures (render.Heap_Kind, heap_alloc, heap_free, heap_write, heap_bytes, heaps_reset, Slot_Data, Replay, Batch.replay, Frame_Data.replays): first-fit ranges, growth by GPU copy. draw.set_retained_budget / retained_bytes: pictures not drawn in the current frame are evicted (least recently drawn first) past the budget and uploaded again from their recording when drawn.
  • Device loss: render.recover recreates the device, the swap chain or offscreen target, the pipeline and every texture under the same handle (contents cleared: device_generation changes); frame_begin and draw.begin_frame recover on their own (Present failures and GetDeviceRemovedReason are watched); device_lost, simulate_device_loss (tests). The glyph atlas is reset, the heaps emptied (heap_generation).
  • Gradients evaluated per pixel: draw.gradient(dc, rect, Gradient, radii, tint); Gradient_Kind (linear, radial, conic), repeating, stop positions, transition hints, Gradient_Space (sRGB, linear, Oklab, Oklch, Lab, Lch, HSL, HWB), Hue_Method, tiles (size, repeat per axis, spacing: CSS background-size / repeat / space), dithering. render.KIND_GRADIENT, gradient tables (Frame_Data.grads, GRAD_*).
  • Box shadows: draw.box_shadow (outer, optionally cut out of a rounded rect) and draw.inset_shadow: the exact gaussian blur of a rounded rect with per-corner radii (erf along x, the corner arcs integrated over their angle), render.KIND_SHADOW, SHADOW_INSET, SHADOW_HOLE.
  • Rect_Inst.aux, Clip_Data.xform, CLIP_SCISSOR, Batch.shape.
  • Tests: tests/retained (replay identical to direct drawing, slots, z order, partial recording, culling, budget, device loss, in both blend spaces), tests/gradients, tests/shadows (against a numeric convolution).
  • examples/transforms --retained (with --stress=N).

Changed

  • Clip_Data is 96 bytes; render.init and init_offscreen are split (create_swapchain, create_offscreen_target) so that recover can rebuild them.
  • push_effects / push_layer while recording fall back to the alpha (a picture holds no offscreen layer); backdrop_capture returns nothing.
0.6.02026-10-19 07:10 UTCrelease

Added

  • Blend spaces: render.Blend_Space (Linear, Srgb): where colors mix (blending, antialiased edges, interpolation, image filtering and mips, layer composites). Srgb composites like web browsers (CSS Color 4 / Compositing 1: rgba(0, 0, 0, .5) over white is 128). render.init(..., space), render.init_offscreen(..., space), render.set_blend_space (at run time: frame view, translucent swap chain format and color space, pooled targets), render.blend_space. Per layer: draw.Layer_Effects.space (draw.Layer_Space), draw.blend_space(dc); render.Layer.space, render.Image_Ref.space.
  • draw.set_interpolation(dc, .Target | .Srgb | .Linear) (draw.Interpolation): where corner colors interpolate (render.FLAG_LERP_SRGB, FLAG_LERP_LINEAR), e.g. CSS gradients in sRGB whatever the frame's space.
  • RGBA textures stored in the renderer's space when created (render.texture_space; R8G8B8A8_UNORM premultiplied on sRGB values in Srgb), converted by the shader when drawn into a target of the other space (render.FLAG_TEX_SRGB).
  • Text correction: render.Text_Rendering (curve: None, Srgb, Power; gamma, contrast, coverage_exponent), render.set_text_rendering, render.text_rendering, render.text_rendering_default, TEXT_RENDERING_LINEAR (the historical look), TEXT_RENDERING_SRGB (Chromium on Windows: Skia's sRGB curve, contrast 1.0). Skia's SkMaskGamma computed per glyph in the vertex shader; same text weight in both spaces.
  • draw.alpha_like_linear, ui.tuned: translucent colors tuned for linear light keep their look in an sRGB frame; ui.apply_palette(t, p, space); the UI interpolates its gradients in linear light in both spaces.
  • render.linear_to_srgb, render.srgb_to_linear.
  • tests/blend_space (WARP pixel tests of both spaces); tests/layers and tests/effects run in both spaces.
  • Examples: effects --srgb, transforms --srgb, fidget's Settings > Blending (and --blending=srgb|linear).

Changed

  • Corner colors are interpolated premultiplied (a transparent corner no longer darkens a gradient).
  • The glyph atlas holds raw coverage (font.GLYPH_GAMMA is gone): the 0.8 exponent is now Text_Rendering.coverage_exponent, applied by the shader (same look in Linear).
  • The constant buffer of rect.hlsl is 48 bytes (target space, text parameters).
  • A translucent window's swap chain color space is set explicitly (SetColorSpace1).
0.5.02026-10-19release

Added

  • Filters on layers: draw.push_effects(dc, bounds, Layer_Effects{alpha, filters, blend}) (then pop_layer). Filter / Filter_Kind / Color_Matrix; constructors filter_blur, filter_drop_shadow, filter_brightness, filter_contrast, filter_grayscale, filter_sepia, filter_saturate, filter_hue_rotate, filter_invert, filter_opacity, filter_matrix; filter_is_identity, filters_outset. Chains run as GPU passes (render/filter.hlsl): color matrices fused (up to 8, clamped between), separable gaussian blur with bilinear tap pairs and power-of-two reductions above render.set_blur_sigma_limit, drop shadows. Colors are filtered in sRGB as browsers do.
  • Blend modes: Blend_Mode (the 16 modes of CSS Compositing 1, plus Plus_Darker / Plus_Lighter) on Layer_Effects.blend; the composite reads a copy of what lies under it (render.FLAG_BLEND, Batch.backdrop).
  • Backdrops: draw.backdrop(dc, r, radii, filters), backdrop_capture / backdrop_draw (CSS backdrop-filter, frosted glass), render.FLAG_SCREEN.
  • Clip shapes: draw.push_clip_ellipse, draw.push_clip_polygon (nonzero / even-odd), antialiased.
  • Renderer: render.Frame_Data, render.Op (clear, copy, filter pass), render.Pass, render.Image_Ref, render.acquire_snapshot, render.release_target, render.blur_taps.
  • tests/effects: pixel tests of every filter and blend mode against the specifications' formulas, blur energy / symmetry / profile (full resolution and reduced), drop shadows, ellipse and polygon clip coverage, backdrops, target reuse.
  • examples/effects (build.bat effects): demo, --stress=N, --bench=N. Screenshot in docs/screenshots.

Changed

  • Frames run their steps in recording order (layers are no longer drawn before the frame): frame_submit(r, Frame_Data) replaces the positional arguments; Batch gains backdrop and op; Layer.done is gone.
  • Inside a layer the clip stack restarts at the layer's rect; the clip shapes around it cut its composite.
  • Pooled targets are handed back as soon as their last reader is recorded: a frame with many layers uses a few textures.
  • Clip_Data is 80 bytes (kind, first, count, flags); CLIP_CIRCLE moved from parent to flags.
0.4.22026-10-18 21:23 UTCrelease

Added

  • draw.set_circular_corners(dc, on) -> previous: rounded rects, images and rounded clips drawn while it is on use circular arcs whatever render.set_corner_smoothing says (the squircle suits the UI; web content and other specifications need circles). Per primitive: render.FLAG_CIRCLE, render.CLIP_CIRCLE (or-ed into Clip_Data.parent). Reset by begin_frame. Pixel test in tests/layers.
0.4.12026-10-18 21:14 UTCrelease

Added

  • Layers (group opacity): draw.push_layer(dc, bounds, alpha) / draw.pop_layer draw into an offscreen render target composited once with alpha, so overlapping primitives of the group do not show through each other (CSS opacity). Transforms, rounded / rotated clips, images, text and nested layers work inside. Falls back to push_alpha when the layer would be empty or too large. draw.layer_depth.
  • Renderer support: render.Layer, Batch.target, frame_submit(..., layers), a pool of fp16 render targets (render.acquire_target, release_targets, targets_bytes), render.FLAG_LAYER (texel-exact composite).
  • Offscreen renderer: render.init_offscreen(r, size, warp) (no window; WARP software rasterizer available) and render.read_pixels. render.destroy releases every GPU object.
  • tests/layers: pixel tests (group opacity vs. per-primitive alpha, opaque layer = no layer, nested layers with a rotated rounded clip, target pooling, fallback).
  • examples/transforms: the orbiting planet fades as one group (push_layer).

Changed

  • The shader constant buffer is 32 bytes (adds target_origin). init is split into device creation and pipeline setup (shared with init_offscreen); frame_end and resize do nothing for an offscreen renderer.
0.4.02026-10-18 20:28 UTCrelease

Added

  • 2D affine transforms in draw: Affine (CSS matrix(a, b, c, d, e, f) convention), push_transform / pop_transform, current_transform, and the helpers affine_mul, affine_translate, affine_scale, affine_rotate, affine_skew, affine_around, affine_apply, affine_apply_vector, affine_inverse, affine_bounds, affine_determinant, affine_scale_factor, affine_is_identity, affine_is_scale_translate, affine_from_xform. Rects (rounded, borders, shadows), gradients, text and images follow the transform; rotated and skewed shapes are evaluated in local space in the pixel shader (exact corners, 1 px antialiasing). Scaled text is re-rasterized at its on-screen size.
  • Rounded / transformed clips: draw.push_clip_rounded(dc, r, radii) (per-pixel, antialiased, nests up to 8 deep); push_clip under rotation or skew clips the exact rect. draw.current_clip.
  • Images: render.create_texture_rgba, update_texture_rgba (sRGB, straight alpha in; stored premultiplied in linear light), destroy_texture, texture_size, max_texture_size; mip chains regenerated after updates. draw.image, draw.image_corners (rounded corners, sub-rectangles, tint) and draw.image_tiled (seamless repeat). Images and glyphs share batches.
  • examples/transforms (build.bat transforms): animated demo, --stress=N / --bench=N load test.
  • -define:GPU_TIMING=true + render.gpu_ms: GPU time of the frame (timestamp queries).
  • Unit tests for the affine helpers: odin test tests/affine.
  • [docs/draw.md](docs/draw.md): transforms, clips, images, costs and limits.

Changed

  • render.Rect_Inst is 144 bytes (adds xform, clip, flags); use_tex takes KIND_SHAPE / KIND_GLYPH / KIND_IMAGE. render.Batch gains image; render.frame_submit takes the optional transform and clip tables.
  • draw.Context.clips holds draw.Clip (scissor + shape) and xforms holds draw.Transform (an Affine). push_scale / pop_xform keep their behaviour; the existing examples render pixel-identical to 0.3.2.
  • Soft shapes (soft > 1) drawn under push_scale scale their blur with the rest of the shape.
0.3.22026-10-15 20:18 UTCrelease

Fixed

  • Wine (and any system without DirectComposition): render.init(transparent = true) fell over on CreateSwapChainForComposition; it now falls back to an opaque window (render.is_transparent tells which).
  • fidget: removing one of the initial tags crashed (it deleted a string literal).
  • fidget: a clicked or dragged sticky note went to the back instead of the front.
0.3.12026-10-15 20:11 UTCrelease

Changed

  • Self-contained exes: the icon font is compiled in (ui.ICON_FONT_DATA, font.load_embedded); nothing has to sit next to the exe any more.
  • Text fonts: Segoe UI and Consolas are read from the Windows font folder (platform.system_font_path); when they are missing (Wine, trimmed installs) the exe falls back to Roboto and Inconsolata compiled into it (font.load_system_or_embedded, font.FALLBACK_UI_DATA, font.FALLBACK_MONO_DATA). fidget: --embedded_fonts forces the fallbacks.
0.3.02026-10-15 20:06 UTCrelease

Added

  • Arrow-key focus navigation: once a widget that does not use arrows has the focus, the arrows move it to the nearest Tab stop in that direction (trapped inside modals, scrolled into view). Sliders, text fields and open menus keep their arrows.
  • Scrollbars: every View_Scroll_Y box gets an overlay scrollbar (drag the thumb, click the track to jump); text_edit has vertical and horizontal bars.
  • Wrapping rows: ui.flow(gap) and the Wrap box flag place children left to right and start a new line when the row is too narrow. Chips and the fidget button / tag / swatch rows use it.
  • Corner rounding: ui.set_rounding (0 = square, 1 = default, up to 2) scales box radii and widget chrome; ui.rad for custom draws. Radio buttons stay round, and so do boxes with the new Fixed_Radius flag. Rounded rects can use squircle corners (render.set_corner_smoothing), which removes the visible kink where an arc meets a straight edge. At rounding 0 the Windows 11 window corners go square (platform.set_square_corners).
  • Density: ui.set_density / ui.dense (Comfortable or DENSITY_COMPACT): row heights, vertical gaps and paddings shrink, the text keeps its size.
  • Disabled and muted scopes: if ui.disabled(cond) { ... } disables everything built inside (no clicks, hover or focus) with a neutral look and a fade; button_icon(disabled = ...) uses it. if ui.muted() { ... } dims secondary content that stays interactive.
  • Finishes: Palette.finish paints raised surfaces Flat, Gradient (Bootstrap 2: vertical gradient, top highlight, embossed text, focus glow) or Glass (Windows 7 Aero: glossy top half, bottom glow, white rim). ui.paint_rect gives custom draws the same finish. Palettes can also set a bar colour.
  • Translucent windows: render.init(transparent = true) presents through DirectComposition with a linear fp16 (scRGB) swap chain, so translucent pixels compose correctly; platform.set_backdrop shows the Windows 11 acrylic backdrop behind them.
  • Selection outline: selected rows, menu items and palette entries get a crisp accent border over a light fill.
  • fidget: Aero and Bootstrap themes (8 themes; Graphite is now the default), Settings for rounding, corner shape and density, an "Enabled" switch that disables a card, a grouped data table (collapsible department groups with totals, two-line headers with column totals, right-aligned numbers, column separators, alternating rows), --bench=N (CPU time per frame), --compact, --size=WxH, --long_text.
  • tools/keyboard_test.ps1: 33 checks (arrow navigation, menus closing on a click outside).

Changed

  • A box with Draw_Border keeps its border out of the layout (like CSS border-box): its children sit inside it, so a border never hides a child's own outline.
  • Disabled boxes no longer get a dimming overlay: they switch to neutral colours and fade as a whole.

Fixed

  • Context menus and dropdowns now close on a click anywhere outside, not only on clickable boxes.
  • Rects ignored the alpha stack (draw.push_alpha): only text faded.
  • The page and the menu bar inherited the default radius, leaving dark pixels in the window corners.
  • The sort arrow and resize lines of the table header were not aligned with the column separators.
0.2.02026-10-15 18:52 UTCrelease

Added

  • Multi-line editor ui.text_edit with ui.Text_Area: selection (keyboard and mouse, double-click word), Up / Down keep the column, Home goes to the first non-blank character, Ctrl+Home / End, Page Up / Down, word moves and deletes, Enter keeps the indentation, clipboard (CRLF and tabs normalized), undo / redo (Ctrl+Z, Ctrl+Y or Ctrl+Shift+Z; edits grouped per second), wheel scrolling, optional line numbers, optional Tab-indents mode, Ctrl+Enter = committed, Escape leaves the field.
  • Keyboard focus navigation: Tab / Shift+Tab move through the Tab stops in build order (wrapping), the focused widget is scrolled into view and gets a focus ring; Enter / Space activate buttons, checkboxes, radios, switches, segmented items, chips, tabs and dropdowns; sliders take arrows, Page Up / Down, Home / End. Inside a modal, Tab cycles through the dialog only, and the page loses the focus when the dialog opens.
  • Context menus and dropdowns from the keyboard: Up / Down select, Enter / Space choose.
  • ui.focused_name() (id of the focused box), new box flags Text_Input and Scroll_Self.
  • fidget: a multi-line editor card, more shortcuts in the cheat sheet, --state_title for scripted tests.
  • tools/keyboard_test.ps1: 28 checks with real keystrokes and modifiers (Ctrl+A/C/V, Tab, Space, Ctrl+Z/Y, Ctrl +/-/0, Ctrl+K, Ctrl+, and a dropdown driven from the keyboard), only sent while fidget is in front.
  • New logo: a white switch and slider on a cobalt rounded square (tools/make_logo.ps1), also the icon of todo.exe.

Fixed

  • icon_button registered its box under a key it then replaced: the button could not hold the keyboard focus.
  • A focused widget no longer steals Enter / Space from an open context menu.
0.1.02026-10-15 18:14 UTCrelease

First release.

Added

  • platform (Win32): per-monitor DPI aware window sized from the monitor DPI, events (keys, text with UTF-16 surrogates, mouse, wheel with modifiers), clipboard, cursors, dark title bar, OS "show animations" setting, wait_event / poll_events (re-entrancy safe during live resize), app icon from resource id 1.
  • render (Direct3D 11): one instanced-quad pipeline for SDF rounded rects, borders, soft shadows and glyphs; sRGB target (linear blending); waitable swap chain with one frame in flight for low input latency (~47 ms input-to-scan-out at 60 Hz, measured); RENDER_PROBE latency / frame-gap probe.
  • font: TrueType via stb_truetype, glyph cache, shelf-packed atlas, text measurement and caret mapping.
  • draw: rects (per-corner colors and radii), text, clip / alpha / scale stacks, sRGB / hex / HSV helpers.
  • ui: box tree with keyed persistence (## / ### id rules), style / tag / parent scopes using @(deferred_none), five-pass layout (pixels, text, percent, children-sum, strictness, floating, cross-axis alignment, scrolling), signals (hover, press, click, double / right / middle click, drag, wheel), animations that follow the OS setting, tag-based themes with cross-fades and two built-in palettes, built-in zoom (Ctrl+wheel, Ctrl +/-/0).
  • Widgets: label, button (+icon), icon button, checkbox, radio, switch, slider, range slider, stepper, segmented control, chips, rating, progress (determinate / indeterminate), dropdown, tabs, key caps, cards, form rows, single-line text field (selection, word moves, clipboard, mouse), scroll region, context menu, menu bar, tooltips, toasts (8 positions), modal dialogs, color pickers, fuzzy matching with highlighted labels, custom-draw boxes.
  • fidget: widget gallery (Controls, Inputs, Data with a 20,000-row virtualized table, Playground), command palette, menu bar, Settings and About dialogs, six themes, persisted settings.
  • todo: a todo app with persistence, filters, search, context menu, light / dark theme.
  • smoke: renderer, font and draw layers without the UI.
  • build.bat, embedded exe icons, scripted interaction tests (tools/fidget_test.ps1, tools/ui_test.ps1), screenshot generator (tools/screenshots.ps1), icon generator (tools/make_icon.ps1).