Changelog
Subscribe
Every version of Trame, newest first. The format is Keep a Changelog, the versions follow semantic versioning. What comes next is in the roadmap.
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 savedappearance.finishofglassis 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_dedupkeeps 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 withFeature.Vtfailed 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 whatmergemakes of the file and the content put (store.Merge_Proc).
Removed
ui.CHOICE_CLOSE_BOUND:ui.choice_memory_closeno longer waits for a read with a bound (see Fixed).
Fixed
ui.choice_memory_closekeeps 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.Vtand a Rust library links: the builtins that Rust'scompiler_builtinsand libghostty-vt'scompiler_rtboth define are weak in COFF, and radlink (Error 024) and link.exe (LNK1227) refused them,/FORCE:MULTIPLEor not.toolbox.vt_dedupnow takes them out of the Rust library before the link (the toolkit'sgt_native.lib, or a carried library named in the newLink.rust_libs), andFeature.Vtno 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.Graveis 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.treeandui.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 andui.tree_revealreserve room for the sticky stack so revealed rows are never hidden behind it.Tree.no_stickydisables sticky rows, andui.tree_stickylets callers customize sticky rows with the sameTree_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.Connkeeps the allocator passed toconnect_busandconnect_bus_address, and uses it forunique_name,waiters,reply_arenas, subscriptions, exported objects, andconn_close. On Linux,platform.session_busno longer leaks 4 blocks into the firsttestkit/sessiontest's tracking allocator.
Security
toolbox: Windows builds link with/DEPENDENTLOADFLAG:0x800:linker_flagaddsWINDOWS_LOAD_SYSTEM32(/DEPENDENTLOADFLAG:0x800) to every Windowsbuild(andtkadds it to shipped Windows demos and apps), so Windows loads statically imported DLLs from System32 only and never from a download folder beforebase.dll_search_restrictruns. Windowstestbuilds omit it so tests beside WARP'sd3d10warp.dllkeep loading it.
0.378.02026-12-03 19:51 UTCrelease
Added
terminal: a local terminal in one call per build:terminal.startruns a command, or the user's shell, on a pseudo-terminal and returns at once;terminal.buildshows it ingt:term's grid with Ghostty's emulation (gt:vt), andterminal.eventsends 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),TERMisxterm-256colorandCOLORTERMtruecolorunless the program says otherwise. Nothing waits on the interface's thread, anddestroyreturns at once, even while the child still writes.textandrow_textread 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_postruns a call at the next build, or itslostwhen the State is gone;task_link_releaselets 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 ofgt: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 withtoolbox.Feature.Vt(GT_VT=true, the native partvt, Ghostty's licence in its notices).tk build_native -features:vtbuilds or fetches libghostty-vt besidegt_native(Ghostty and Zig pinned); the Nix package.#nativeholds it, and a release publishesgt-vt-<os>-x64.tk gen_vtwrites 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 toon_menu. Tower's own routing, moved here.pty: a child on a pseudo-terminal:pty.startruns 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 answersisatty.read,write,resize,stop,wait(its exit code) anddestroyare blocking calls for a worker. The child runs as a process tree that ends with the program;process.tree_start_terminalstarts such a tree. See docs/pty.md.
0.377.02026-12-03 19:01 UTCrelease
Added
syntax: Lex and formula:.lexfiles are coloured as Lex (its reserved words,//comments) and.fmfiles as formula (its keywords and types, nested/* */comments);guessknows 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 (pastStyle.pad), not centered, and keeps its columns and rows while the box moves; once the box has rested forREST_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, notStyle.background.ZOOM_REST_MSis nowREST_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_dirgives the suite's frecency folder.
0.375.12026-12-03 10:40 UTCrelease
Fixed
- Windows blank/white window after hiding and reopening:
platform.hide_windowandplatform.show_windowon Windows now bumpWindow.shown_againsohost.host_framecallsrender.surface_remake(recreating the Vulkan surface and swap chain when the Vulkan fallback is active and clearinghidden);cpu_stage_beginandd12_rest_endnow preserve the HWND and clearlostbefore remaking the swap chain and uploading textures and heaps after device rest; anddamage_skips_presentrequirespresented_fullso a newly created or remade swap chain never skips its first full present. text_revealbubble padding ontext_pad = 0labels and tabs:uinow 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 fromui.tabs_extabs or other zero-padded labels.- Exact horizontal continuity across adjacent highlighted text runs:
ui.text_edit(draw_highlighted_line) andui.rich_paragraph(rich_paint_text) no longer round each colored run's startingxto 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_LINKnow passes-Wl,--gc-sectionsalongside-Wl,--allow-multiple-definitionso Linux binaries linking the all-features prebuiltlibgt_native.astrip unused native crates just like MSVC/OPT:REFon Windows. - Settings descriptions in hover tooltips:
prefs_pagenow 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 afterFeel.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. Addedui.hovered_box_for(b)for delayed hover tooltips on non-clickable boxes and widenedui.TOOLTIP_MAX_WIDTH_EMto28.
0.374.02026-12-02 21:22 UTCrelease
Added
- Prebuilt
gt_nativerelease archives and Nix native package:flake.nixnow exportspackages.x86_64-linux.native(pushed tocache.froment.software), releases publish verifiedgt-native-windows-x64.zipandgt-native-linux-x64.tar.gz(glibc 2.36) archives with.sha256and sourceSTAMP, andtk build_native/toolbox.build_nativeresolveGT_NATIVE_PREBUILT, localSTAMP, or the matching release archive before falling back to local Cargo builds (using non-LTOprofile.cifor non-release builds; setGT_NATIVE_BUILD_LOCAL=1to force local compilation).
Changed
- Smaller Mermaid builds:
gt_mermaidnow compiles onlymerman'ssvgrenderer and the 11 standard Mermaid diagram families (flowchart,sequence,class,state,er,gantt,pie,mindmap,timeline,git-graph,xychart) withopt-level = "z", dropping the extra diagram families and Cytoscape/ELK layout engines to shrinklibgt_native.aby ~15.8 MiB (-21%).
0.373.02026-12-02 14:28 UTCrelease
Added
platform.is_window_occludedandprocess.warm_defender: Windows now detects hidden, minimized, DWM-cloaked, and z-order-covered windows viaSetWinEventHookand an exact opaque rectangle-union check sogt:hostpauses animations while covered and wakes immediately when uncovered;process.warm_defenderwarms 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.dllis compressed withgt:flateinto 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'sShared.rest_after), and its textures, heaps and settings come back with the next frame. - Vulkan on Windows: a program built with
-define:TOOLKIT_RENDER=vulkandraws 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_drawsays 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'sitems: where an item of its own size sits in the height of its line (.Start,.Centerby default,.End), so cards of different heights line up their titles.- Tabs reordered by dragging (
Tabs_Options.reorder, inui.tabs_exand atab_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, andselectedis 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_pickertakes 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_convertdraws 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 bytools/shaders appbeside the DXBC),render.set_gpu_timingandrender.set_gpu_profilemeasure the GPU, a window draws with the depth pass,render.restlets the device go, and the pipelines compiled are kept in~/.cache/gui_toolkit/vulkanfor 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_testsruns 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.restrests at once;render.rest,render.wake,render.restingandrender.has_deviceare the renderer's, andplatform.wait_deadline_setgives 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=1turns on the validation layer, whose messages fail a test;tools/run_testsruns 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;d3d12andvulkanstay 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.compactandtabs_over(style, sf, compact): the same compact tabs for a program's own strip.
softwarenames the software device:render.init_offscreen(software = true),render.preload_device(software = true)andRenderer.softwarereplacewarp: 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
appthat exportsshade(docs/shaders.md):App_Shader_Desctakesbento,spirv,dxilandhash, andodin run tools/shaders -- app <name> <file.bento> <dir>writes its.spv,.dxiland.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
testcommand 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, andtk build_nagaare 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 andTOOLKIT_WGPU_BACKEND,TOOLKIT_WGPU_TRACE(TOOLKIT_RENDER_TRACEstays),TOOLKIT_WGPU_DX12_COMPILER,render.image_wrap_splits_batchesandBatch.image_wrap,tk fetch_wgpuand its DXC download,tools/run_tests's-backendand-group,tk desktop_tests -backend, andtoolbox.check_env(toolbox.odin_checkchecks another system's code on Odin's own root: itsrootparameter goes).
Fixed
- Windows install and update handoff: installed and updated executables, console launchers, and thumbnail DLLs flush via
FlushFileBuffersbefore 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.launchstrips installer-only__COMPAT_LAYER=DetectorsAppHealthwhile keeping user compatibility layers;update.updater_stopcloses and removes any in-flight<exe>.updatewrite cleanly before process exit without blockingupdate.statuson disk I/O. - Windows AltGr, mixed-DPI moves, modal drag cleanup, and capture pacing: AltGr on European keyboard layouts no longer reports
Ctrl+Altor steals typed symbols (@,€,{,},[,],~,\) as shortcuts while genuineCtrl+Altchords keep working; fullscreenWM_DPICHANGEDandmove_to_active_monitorscale cleanly across mixed-DPI monitors;TIMER_MODAL_FRAMEis always disarmed on window destruction; active Windows capture streams scopetimeBeginPeriod(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_deadlinetracks multiple callers per thread, runs during blockingpoll_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-unitraster_scale, snap.Atlasslot glyphs consistently, preserve LCD fallback rendering, and invalidate rotated LCD replays;gt:marksomits derived arrow curves from undo snapshots and avoids duplicate vertices inpolyline_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_texthandles CSS Color 4"none"components, signed scientific exponents, anddelta == 0. render.Kept_Texture,ui.Open_With,ui.Thumb_Cache,ui.logo, andsetup.logo_make: releasing or switching aKept_Textureafter its renderer is freed no longer reads freed memory, and dimension or renderer changes recreate the texture;ui.Open_Withdetaches cleanly across owner switches andui.destroy; Windows "Open with" runs on a dedicated STA thread with the parent window; Linux refuses setting a default forapplication/octet-streamand clears[Removed Associations];Thumb_Cachechecks renderer identity before drawing;ui.logoselects the closest native size;setup.logo_makefrees 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 onGDI_PRESENTS, and fix validation flushing, GPU profiling timestamps,create_video_targetduring the CPU stage, andvulkan_can_drawcapability 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_fieldandui.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_buttondraws 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 ofapplication/octet-streamcome 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 Windowsdesktop.open_with_dialogshows 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'son_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-definitiondoes on Linux. Off by default.- The file picker opens shares by their address: type
smb://nas/docsorsftp://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:locationmakes such places paths for a program's own use. ui.set_logoandui.logo: a program gives its logo's pictures once (the PNG of its desktop icons) and draws its logo in its title bar withui.logo(id, side); the About modal shows it with no code of the program's when itsAbout_Infogives 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_insetandui.icon_gapgive 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.frameis 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 throughdrop_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, withoutwl_data_offer.finish. Before, the window sentfinishon every drop, before the program saw it: wayland.xml makes that the protocol errorinvalid_finish, which ends the connection. A drop that the program refuses at itsDrop(withdrop_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). svgreads 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_supportedandtk 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) withfont.PAPER_MONO_DEFAULT_FEATURESenabled by default (single-story a, slashed zero, duospace glyphs, narrow space, and small arrows on; coding ligaturesss01off) and variable-weight bold viafont.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 companionFeatures (N)popover (ui.font_features_button) with grouped toggles, live per-feature samples, and aDefaultsreset, live feature application (ui.use_text_features), and theappearance.text.mono_featuresstandard preference ingt:prefs_page. - Binary cache for the development shell:
nix developdownloads what the CI already built from https://cache.froment.software.
Changed
mermaid.diagramandmarkdown.Diagram_Layouttake Mermaid's theme by name:mermaid.diagram(text, theme = "dark")andproc(text, theme: string)instead ofdark: bool;diagram_oftakes 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 aboverender.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_DISCARDtoFLIP_SEQUENTIAL, copying only dirty rectangles to the back buffer and passing them toIDXGISwapChain1::Present1when flip-model rules allow (full-frame on first present, after resize orSetSourceSize, and with tearing); addedrender.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_framenow waits viawait_frame_slotso Windows waits pump and timestamp input and WebGPU avoids acquiring a swap chain image before the JIT sleep;gt:hostnow paces continuous input on Wayland Mailbox surfaces instead of bypassinghost_pace, and feedsEvent.stamp, frame-read time and continuous-run state sorender.latency_summaryand 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:capturenow 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_setandclipboard_set_imagenow publish throughext_data_control_manager_v1orzwlr_data_control_manager_v1when 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 unfocusedwl_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.sectionwhen 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.tabsandui.tabs_expreviously combined a 1 em spacer with the label's owntext_padon 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) withtext_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_emown their top row withui.view_fold_button; skippingview_lone_headerfor 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-onlyui.view_info(vs, id, instance) -> (View_Info, bool)query exposing an open view'sopen,presentation,space,edge,stack,active(active tab of its stack),focused(keyboard focus inside the view), andtitlewithout exposing privateView_Recordinternals.ui.tree&ui.file_tree: dragging rows now shows a floating, non-clickable drag preview pill following the pointer (with icon, label, and a+Ncount 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 asAlt+UpandAlt+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_fonttoui.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_toolsand 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: reportchangedastruewhen a click or keyboard navigation changes the selected tab instead of always returningfalse.
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_nextsays, 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, forcpu_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 withui.native_child(box)each build;gt:hostautomatically puts the main DirectComposition surface below child windows (render.set_under_children), draws overlapping overlays on a secondtopmost = TRUEcomposition 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_startasks 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=falseorTOOLKIT_EARLY_DEVICE=0turns it off.render.preload_when_donegives a device being made a callback for its end (host.ahead_duewakes 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_wallpaperandui.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_lutapplies a table (draw.lut_texture) to a layer on the GPU, andimage.lut_levels,lut_exposure,lut_curve,lut_thenandlut_applymake 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 answersPaste_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_openon 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 throughwl_shmon Wayland orPutImageon 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_endandrender.cpu_frame_exactsay where it is;platform.show_pixels,platform.can_show_pixelsandplatform.drop_pixelsshow 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=0turns it off;-define:TOOLKIT_CPU_FIRST=falseleaves it out of the program (64 KB of code).TOOLKIT_CPU_SHADOW=1draws 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.tabsandui.tab_panelare 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.stylechoose another.ui.tabs_exgives 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 atab_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) replaceswheel_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_Shiftno longer comes asKey.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 toui.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_widthsizes 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 withui.context_takeopens its menu with nomovebefore 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 innextwithout 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,
tkscreenshots, 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 fromtoolbox) andbase.mesa_egl_vendorfind 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, whilepalette_chosen_commandstill 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 withcommand_pressed(c, disabled = hidden || disabled), so the key does nothing.shortcuts_sheet_openandshortcuts_sheet_settake the same slice ashiddenand 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=falseto leave it out (about 1.6 MB).TOOLKIT_DEVTOOLSnow 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_dialogopens 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 withsize_em.MARK_DIALOG_WIDTH_EMandMARK_DIALOG_HEIGHT_EMare gone;MARK_DIALOG_MOSTis the share of the window.
Fixed
gt:processandgt:toolboxon Linux:process.start,process.tree_start, andtoolbox.env_withdrop empty environment entries (and entries containing NUL) instead of passing the trailing""appended by Odin's Linuxos.environinto a child'senvp, 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_scopesfinds every scope opened under a negation:if !debug.section(x) { continue }closes the section at the end of theif, and the values after it fall outside it. The check, a step ofprogram_check, now reads the scopes of all the toolkit's packages and of the program (every@(deferred_*)procedure, not onlyui's), findsif !pkg.scope(...),if scope(...)unqualified in its own package,== falseand!= true, and says the file, the line and the right form. A commentcheck_scopes: on purposepasses a line that builds the misuse on purpose.check_scopes(src_dir, toolkit_dir)replaces itsui_dirargument;scope_namesreplacesui_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:hostopens (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_setandui.a11y_defaultkeep 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.segmenteddrew 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_canvasgives a picture point from the canvas's top left.
0.367.02026-11-27 18:31 UTCrelease
Added
fsx.same_entry,fsx.same_volumeandfsx.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.gitignorefiles (ignore_add,ignore_match,glob_match), for a walk that leaves out what a repository ignores.ui.treeandui.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_treeshows 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_textandui.find_match_inkare 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_drawdraws the line across a program's own row that holdsui.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_startgives 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.gpukeeps 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.Watchon 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 nextwatch_set. Awatch_setduring 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.clickandToolkit.waitIdleafter 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_terminalon 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 plantedwt.exeorcmd.exewould 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_nearavoids what it must not cover. Its newavoidargument 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 frommain. 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=1prints them at the first present, on Linux too.fsx.write_atomickeeps a person's document as it was:fsx.DOCUMENTwrites 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. AWrite_Reportsays what was written over, among it the other names of a hard-linked file, which keep the old content. The options are oneWrite_Optionsvalue: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_openasks 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_folderandfsx.temp_dirgive backslashes alone and long names (C:\Users\runneradmin\AppData\Local\Temp\gui_toolkit-..., notC:\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:drawmakes 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 withfill_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:picturesuploads 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.decodeoptions: orientation, limits and a memory gate.Decode_Options.orientshows a phone's photo upright;max_pixelsandmax_bytesrefuse 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_DIMENSIONSin its project'sdefines(docs/image.md, "Large pictures").- Every frame of a GIF.
gif.Decoderandnext_framegive an animation frame by frame, each drawn over what the one before left, with its delay;gif.decode_framesgives 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_sizegives the canvas a decode makes without decoding it (docs/gif.md). gt:exif: a camera's metadata.exif.readgives a photo's camera, lens, date, exposure and GPS from a JPEG, PNG or WebP;exif.orientationandexif.thumbnail(the camera's own small JPEG, shown at once) read without allocating;exif.set_orientationturns 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_mainsays 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_spanandbottom_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 withprefs_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 nowGraph_View.hover_link(it washover).- A look per link in
ui.node_graph:Graph_Options.link_looksgives 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_graphlays a graph out from top to bottom:Graph_Options.direction = .Downputs 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, attree_killortree_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_signalandtree_waitact 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) orContent-Lengthheaders (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 ofkeepstay as they were (a sidebar),ui.views_space_restoreends it; the person's Maximise keepsView_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_rowskeeps 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.minimapis aGraph_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.runandprocess.tree_startstart it withCREATE_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_stopno 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 fromui.task,ui.openor 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.startandprocess.runno longer pass on the signals that the starting thread blocks, nor the ignoredSIGPIPEof the toolkit, so a child such asyes | headends at a closed pipe as it does from a shell.
Security
process.startandprocess.runfind a command inPATHonly, 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 WindowsPATHEXTfinds npm's.cmdshims, and a.bator.cmdscript 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. Adebug.Curveis 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_removeandcurve_smoothwork in every build, a release too. In a panel,debug.curveanddebug.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_texttoo).debug.easingedits aui.Cubic_Bezierwith the toolkit's easings as presets;ui.tween_curvetweens along it,ui.cubic_bezier_at,ui.ease_bezierandui.bezier_paramevaluate one. The devtools'Toolkit.debugPanelslists a curve's keys andToolkit.debugSetsets them.examples/debug_paneldrives 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.earlierandprogram_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_wordssays 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_earlierpublishes 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 callsdebug.number,vector,toggle,choice,text,color,watch,plot,act,sectionandvalue(any Odin value by reflection, withdebug:"0..1","ro"and"-"field tags);debug.odin_textwrites 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.debugSetandToolkit.debugPresslist, set and press by the same paths;tk cdp debug,debug-setanddebug-press(andcdp.debug_set) do it from a script. A release build compiles every call to nothing. The dense pieces are inuifor a program's own instruments:ui.dense_scope(square corners, asView_Options.squaremakes a floating view;View_Options.densemakes its header a row of tabs),ui.drag_numberandui.drag_vector(drag, Shift slower, Ctrl faster, wheel, keys, double click to type),ui.tree_header,ui.dense_row.examples/debug_panelshows 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..Pulsemakes 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_labelgives the bar shorter words ("high") while the menu row, the tooltip and a screen reader keeplabel("Thinking: high");litshows its face while a picker it opened is open, and a screen reader hears it expanded;icon_intentcolours its glyph in an intent's hue (a mode it shows);badgeputs a count on its corner anddota still or pulsing dot, inbadge_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);.Foldfolds it into the "…" menu by its priority,.Wrapkeeps 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_toolwithwordsshows 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.facechooses.Ghost,.Raisedor.Linkfor one tool.
Fixed
ui.badgeon 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.scopeslets a program stay per person;Facts.scope,Facts.other_scope,Facts.system_refusalanddesktop.Scopesay the state. The updater of a copy that its account cannot write isAdministered: 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_copyand--task-manager on|offare 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) withIntegration_Options.task_manager, offered as a setup box tied to the part.- The Debugger of
taskmgr.exeruns 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|offwithrunas), 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.
- The Debugger of
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
openorexplore(ShellExecute, Python'sos.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:instanceon 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.Tableof several withrubber_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 takesui.List_State.pressed_empty(orui.row_content_at),ui.item_band_row_press, therow_pressofui.item_band_updateandui.Virtual_List.end_space.
Fixed
- The selection rectangle shows wherever the view is scrolled:
ui.item_band_updatebuilds 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_nv12andh264.to_i420SIMD 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_startwith 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 withfast_start = .Fragmented).
0.358.12026-11-25 15:20 UTCrelease
Fixed
ui.checkboxcheckmark contrast and Ember Light accent: checkmarks now use the theme'saccent_text(falling back toui.ink_onto 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#b8521dso 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 forimage,image_corners,image_cover,image_tiled, and retaineddraw.Picturerecordings without adding extra GPU samplers or splitting GL batches..Pixelatedfetches nearest texels when magnifying and falls back to trilinear filtering with mips when minifying;.Nearestfetches nearest texels at every scale.
Fixed
- Linux desktop light/dark detection (
platform.dark_mode_preferred,platform.watch_color_scheme): treat an XDG Settings portalorg.freedesktop.appearancecolor-schemeof0(no preference, which GNOME andxdg-desktop-portal-gtkreport for light mode) as light instead of falling through to stale GTK 3 settings, fall back toReadwhenReadOneis unavailable, reject malformed non-integer portal replies, and keep internalcolor_scheme_serialtracking independent from an application'swatch_color_schemecallback 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 (optionaldefsregistration, initial read, automatic refresh with optionaldestroyfor owned fields, optionalon_changecallback, and automatic cleanup inprefs_destroyorunwatch).- A drag carries a window on Wayland (
platform.Drag_Carry,drag_carry_supported):drag_starttakes a window that the compositor moves with the pointer while the drag runs (xdg-toplevel-drag-v1), withgrabscaled to logical surface coordinates andDrag_Carry.framecalled 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: switchesicu_segmenterfrom the 1.01 MiB dictionary data to the 303 KiB LSTM model for Thai, Lao, Khmer, and Myanmar line breaking, trimming ~725 KiB of.rodatafrom every binary that linksgt_text.
Fixed
ui.THEMESno 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_pagefree 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_toandprefs_page.flush.
0.356.12026-11-24 13:40 UTCrelease
Fixed
- A program that imports
gt:processno longer runs a test's code at its start. The child mode ofgt: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 arich_paragraphreports that link, withlinkits 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_atlets any box say which of its points take the middle button.
Removed
render.frame_waitable: a program that waits for the swap chain itself callsrender.wait_frame_slot(&r, win, timeout_ms, until_press). It takes the window's input while it waits, asplatform.wait_handledid; atimeout_msof 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.runbody ends the test at once on Windows: a session's action that fails, ortesting.fail_now, ends the body there, its cleanups run on its thread, andrunreturns. 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_openon 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_freegives 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_sourcesays whether fingers or a wheel made a scroll, andscroll_endthat 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_scrollandsession.finger_liftdrive 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_blockfor a program's own code blocks andmarkdown.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_iconandHandler.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.watchand says a change withfile_reply_changed; the computer's source does it withfsx.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_endends the session, then starts the executableprogram_startread (Program_Start.executable: the new copy, not<exe>.old), then closes the log.Program_Start_Options.launchreplaces 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 givesRan{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 withascii.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_dialogandgt:marks: a person draws on a picture before it is sent: boxes, ellipses, arrows, lines, ink throughgt: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-pickershows 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-pickerlooks 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_idkeeps 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_gettakes 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|folderprints the paths chosen (or JSON with--json), exit code 0 chosen, 1 cancelled, 2 an error;--portalmakes it the desktop's file chooser through the XDG desktop portal (Linux). Each release shipsgt-file-picker-windows-x64.zipandgt-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 aFile_Dialog), choices beside the files (File_Dialog.choices,File_Choice; their values inDialog_Result.choices, shown by the toolkit's picker as check boxes and drop-downs),platform.file_dialog_clone,file_dialog_freeanddialog_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 returnsFile_Picker_Events(the answer, another folder, another selection);file_picker_folder,file_picker_selected,file_picker_focus,file_picker_startandfile_picker_stopcomplete it. Several live at once; each reads the keyboard only with the focus in it.
Changed
ui.file_dialogis a picker in a view: the same call and the samedone, rebuilt overui.File_Picker.File_Dialog_Kindmoved toplatform;file_browser_counts(s)isfile_picker_counts(file_dialog_picker(s)); theFILE_BROWSER_*constants areFILE_PICKER_*, and the dialog's sizesFILE_DIALOG_*_EM; a source'sFile_Replynames its picker and its request (picker,serial) in place ofdialog.
Fixed
- A window that closed after a right click on a file no longer hangs:
ui.shell_menu_destroystops 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.runandtestkit.temp_folderchain a handler after the test runner's: aSIGSEGV,SIGILL,SIGFPEorSIGBUSwrites 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_textdoes 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'sos.stataliases the caller's path string insideFile_Info.fullpathwheneverFILE_ATTRIBUTE_REPARSE_POINTis set (NTFS junctions in a user's folder such asMy DocumentsorApplication Data, symbolic links, and OneDrive cloud files), soos.file_info_deletefreed the path a first time and the caller freed it a second time.fsx.stat_follownow 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 emitsPointer_*events with measured pressure, tilt in turns, barrel button, and eraser state alongside emulatedMouse_*events, matching Windows and Wayland.
0.345.02026-11-21 23:48 UTCrelease
Added
- Command palette file source (
ui.Palette_Files): plugs agt:filesearchindex intoui.Command_Paletteunder 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_Itemnow carries optional RGBA icons extracted from WindowsIContextMenubitmaps (MIIM_BITMAP) and Linux KIO/Nemo/Thunar icon names;ui.Shell_Menurenders async shell menus with bitmap icons inside anyui.menu, andui.file_dialognow 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 byfff-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), SIMDui.fuzzy_scoreandui.Frecency:gt:utf8validates UTF-8 16 bytes at a time (#simd[16]u8,base:intrinsicsonly, optionalreject_controls), verified against a scalar reference across 400 000 fuzz inputs and boundary windows;gt:sitenow uses it.ui.fuzzy_scoreruns a portable#simd[16]u8fast path on ASCII candidates up to 128 bytes with bit-exact results verified over 200 000 fuzz inputs.ui.Frecencyadds 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.Chosenrows:ui.ink_for(row, fg)exposes the toolkit's selection-ink mapping (title ink,weak/faint/softink, or custom colour pushed to 4.5:1 contrast, returningfgunchanged whenrow == nilor not chosen) for programs that pass an explicitfginside a selected row.- Custom-drawn
.Chosenrows (without.Draw_Background) now use theirtarget_bgselection 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 withmatch_bg, and find-bar matches switch their text ink to black or white when a theme's tint over a selection would leavefind_texthard 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
Sizefields 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 byfeel.step_shift). - Closed
ui.dropdown,ui.segmented(both looks) and closedui.font_pickernow step to their previous/next choice on the mouse wheel (wheel_steps). .Rownavigation buttons stay on one line, truncate cleanly with…and show a hover tooltip when narrow; non-.Rowbuttons that wrap onto multiple lines keep vertical padding above and below their text.- Collapsed sidebar icon rails (icon-only
.Rowbuttons and folded view-zone rails) show their tooltip immediately on hover with zero delay (Button_Options.tip_nowis 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).
- Numeric preference fields (including
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 (WindowsIContextMenu/IContextMenu2/IContextMenu3on a dedicated COM STA worker; Linux KIO service menus, Nemo actions, and Thunaruca.xml), with caller-suppliedexclude_verbs, mnemonic stripping, and submenu/separator pruning.
0.339.12026-11-21 16:27 UTCrelease
Fixed
- Linux
platform.open_pathopens files with the default application:open_path(andopen_urlonfile:URIs) callsxdg-opendirectly instead of sendingfile://toorg.freedesktop.portal.OpenURI.OpenURI, which rejectsfile:URIs whilecall_noreplyhid 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:turngivessin,cos,sincos,tan,atan2(in turns),asin,acos,wrapand the conversionsfrom_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/anglesholds 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 -> turnsdraw.filter_hue_rotate(radians)->filter_hue_rotate(turns)draw.Gradient.angle(Conic, clockwise from up): radians -> turnsdraw.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 -> turnsimage.hue_rotate(img, degrees)->hue_rotate(img, turns);image.Fill.angle(0 upward, as CSS): degrees -> turnsink.Sample.tilt(-90..90 -> -0.25..0.25) andink.Pen.nib_angle(30 -> 1.0 / 12): degrees -> turnsplatform.Pointer_Info.tilt(-0.25..0.25) and.twist(0..1), soui.pointer_device().tilt: degrees -> turnspdf.Stamp.tilt(-45..45 -> -0.125..0.125): degrees -> turns- a count of quarter turns is named
quarters, an angleturns: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: anintof degrees (0, 90, 180, 270) -> anf32of turns (0, 0.25, 0.5, 0.75)ui.Exploded_View.yawand.pitch,ui.Licence_Card_Look.rxand.ry,ui.licence_card_seal_reveal(rx, ry): degrees -> turnsui.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_parseandcolor_textconvert)
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 atPen.tilt1); 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.Stampandpdf.Shapehave agroup: 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, andlevelsgroups 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; everyInkfield 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), asgt:ink's samples take it, andui.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.measuredsays whether the device measured the pressure. A test draws with a pen throughsession.pen_drag,pen_press,pen_move,pen_hoverandpen_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.tweentakes a curve (ui.Ease:.Linear,.Out,.In_Out,.Sine,.Emphasized;.Outby 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_textandui.morph_labelkeep 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.receivedand.size, andupdate.progress(st). ui.progress(..., lively = true)andui.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.outlineandpolygonstay 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.Blobgainsdirection(into the stroke from its end) andseed;levelsdraws 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_fillanddraw.push_clip_polygonsoften 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_openhas nosearchparameter: removesearch = falseandsearch = true.Toolbar_Toolhas nomenu_searchfield: removemenu_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_framestarts 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_hzandrender.vblank_gridnow answer on Wayland, a frame after a rest takes the measured refresh as its dt, andrender.present_totalscounts 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 newFile_Source.rename,.trashand.restore(answered byfile_reply_renamed,file_reply_trashed,file_reply_restored; the computer's source has them).File_Dialog.row_actions_off(abit_set[platform.File_Row_Builtin]) removes the ones a program does not want. Also new:platform.move_to_trashandplatform.put_back(the freedesktop.org trash on Linux, the Recycle Bin on Windows), andTable.editing,edit_idandedit, a name edited in place in any table. - A program's flake builds from GitHub.
nix run github:owner/programfetches a tarball without the toolkit's submodule; a program's flake now takes the toolkit from agui_toolkitinput pinned to the submodule's commit (docs/toolbox.md, "The flake's toolkit"), and the check's new stepFlake_Toolkitholdsflake.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_Sis 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'suser, itsgenerationand 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'spicturecallback 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_makeanswers aFile_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_Bandleaves the rows that cannot be selected (Item_Rows.selectable) as they are and never puts the cursor on one.Item_Band.changed(withItem_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_clearforgets 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;systemfalse 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_WEBPgets 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 itsremember_id; the preview is the same in every view. - Thumbnails of files:
File_Source.thumbnailasks a source for a picture of a file, answered with pixels byfile_reply_thumbnail, so a server's source can make its own.local_files()decodes the picturesgt:imagereads (a large one read from, and kept in, the system's cache) and gives the system's thumbnail for the other files.Thumb_Cachekeeps 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_keysgives Ctrl+wheel and the zoom keys to the table (Table_Events.zoomed),Table.rubber_bandselects 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_targetandItem_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_addgives the engine a TrueType or OpenType font; a stamp with thatfaceis 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: atilt, a heavier pen (weight), aflourishunder it and acaptionline (the place and the date). The shapeOutlinefills closed contours: a pen's ink whose width changes along the stroke. gt:ink: pen strokes turned into ink.ink.outlineturns 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 presetsPEN_BALLPOINT,PEN_FOUNTAIN,PEN_FELTandPEN_BRUSH;ink.polygonandink.trianglesgive the ink to a path filler or to a renderer of triangles.toolbox.Project.thumbnailer: the package of a program's thumbnail provider. On Windowsbuild_nativebuilds it last asthumbnailer_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>), andcheck_windowschecks it.desktop.Part.Thumbnails: the file managers show a program'sdocument_typesas 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 orthumbnail_dll) and registers it in HKCU underthumbnail_clsid; an update's next start rewrites it, and a DLL Explorer holds is renamed aside and reported to the uninstall. On Linux a.thumbnailerin$XDG_DATA_HOME/thumbnailers(thumbnailers_dir,<prefix>THUMBNAILERS_DIR) runs the program itself withthumbnail_arguments(default--thumbnail %i %o %s). A setupChoiceties 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 toset(clsid, render)and exportsdll_get_class_objectanddll_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
deferin 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.libalso namesSynchronization.lib: Rust's standard library waits withWaitOnAddress, 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_carriedandProject.systems: a program whose own Rust library carries the toolkit's native crates setsnative_carried, andbuild_nativethen builds none of the toolkit's library (native_parts): only the Windows resource, the console launcher and the Lucide subset.systemsnames the systems the program is built for ({}: Windows, Linux and macOS, as before):checkchecks 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, asfind_openandfind_closedo: 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: passs.
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 mostui.FIND_SETTLE_BUILDSbuilds; 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_vcruntimeon Windows,stripfor a Linux release, in the one-extra-linker-flagsoflinker_flag),Build_ModewithDev(-o:minimal) asBuild_Options.iterateandbuild 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) andBuild_Options.pinned_odin(odin versionagainstodin.version,GT_ANY_ODIN=1to 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 areplacewith 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: thevaluehint 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. EachBody_Partcarries the answer's status, the bytes received so far and the body's length; the callback's.Stopor aStopasked from another thread ends it. Itstimeoutis the longest silence, and the body has no bound unlessmax_bytesgives 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, afterstart_dirand the folder the dialog was last left in. A program's source answers it withFile_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_emof its views), then folds to its rail; then the left zone does the same. A zone whose views give nomin_width_emfolds 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_waittakes 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, asui.title_bardoes.
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.Keysdraws 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_trackplace them);Toggle_Form.Checkdraws 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, andui.caption_band_ink()andui.caption_band_bold()give its text, for a program that draws its own bar (a row of tabs) in place ofui.title_bar.
0.318.12026-11-18 17:14 UTCrelease
Fixed
- A window closed while a font family loads no longer crashes:
ui.destroywaits 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.Keysdraws 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'slistshows 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 newonActivate(index). A move of the active row is not sent to the plugin.plugins.List_Infogives 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
l10nat 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_pngwithout a renderer: in a session started withno_renderer, it ends the test with "this session has no renderer", ascapturedoes, 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 byrelief_rings,relief_round,relief_lines;RELIEF_BEVELis 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 keepsSHAPE_DEFAULT, the corners every theme had.CONTROL_RADIUS_EMandDIALOG_RADIUS_EMare gone: askshape_of(.Control)andshape_of(.Dialog). A program's ownTheme_Defliterals 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_EMis removed. A right click onui.view_fold_buttonopens the view's menu, which now has Maximise or Restore for a panel;ui.side_fold_buttontakes a tooltiphint, andView_Labels.menu_hintgives 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
palettedeclares a source under a prefix of the palette (@,#,/, or the plain search), which the plugin answers withpalette.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". Itsmenusandtoolbarput its commands in the places the program names (Host_Options.menu_places,plugins.menu_entries,plugins.toolbar_entries,plugins.toolbar_tool), without running it. Itsl10ntranslates its manifest's words for the toolkit's language, and its code readscontext.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 inHost_Options.app(plugins.App_Module), with a level of its own; a plugin calls them as promises with one argument object, hears the events withon(name, f), and asks forapp: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_emitsends an event to the running plugins that listen.plugin_api.app_module_dtsandapp_module_markdownwrite the module'sapp.d.tsand reference page, andtoolbox.generated_fileswrites or checks a tool's generated files. A manifest's"app": nsays 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_EMis nowSIDE_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_bytesbelow 0 reserves no block of addresses natively, so every chunk of cells comes from the allocator given toengine_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)andlucide.NAMES: a Lucide icon found by its name at run time ("search", "alert-triangle"), from a table thattk gen_lucidegenerates with the constants.- Rich views in plugins (plugin API level 6): a plugin's button, text, heading, field and switch take an
iconby its Lucide name; a text takes atone(info,good,warn,bad,weak),monofor the monospace face andhighlightto mark what a search found in the find bar's colours; a newbadgenode 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.sizeis Small, Medium or Large: its line, its room, its words and its glyph change together. A plugin's button also takes alook(raised,ghost,link) and asize, 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-pluginteaches a coding agent to write, run and test a plugin in JavaScript or a small application for gt-runtime;gui-toolkitteaches 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/"]toopencode.json, or unpackgt-skills.zip, attached to each release, into~/.config/opencode/skillsor~/.claude/skills([docs/skills.md](docs/skills.md)).odin run tools/tk -- skills <out>writes the catalog,-zip:<file>the zip, andtk cichecks the skills (skills -check).
Fixed
- A file another program reads is still written on Windows.
fsx.write_atomicreplaced 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_Availableby default,Required,Off) says what happens where the kernel has no Landlock;plugins.sandbox_availablesays whether this system can, andplugins.test_escapelets 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, asvlist_row_extentgives a row's top and height.
Changed
- A long list stays smooth while its rows are measured: scrolling a
ui.vlistof 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.taskalready queued when itsStatewas destroyed was dropped without callinglost, 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
listnode shows up to a million rows and asks the plugin only for those in view and a margin, as the person scrolls, withrow(i). A row not answered yet shows a placeholder, a slow plugin leaves the window scrolling, and a newversionasks the rows again.plugins.list_infoandplugins.list_scroll_toread 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:*ornet:<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.readandclipboard.writeare done by the program, which checks the grant: a call without it rejects withPermissionError, 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.grantandplugins.revokegive 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.restartmakes a failed plugin ready again;plugins.test_crashandplugins.test_hangare 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.tsdownloads from the page. The page is made fromplugin-api/api.jsonat 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.jsongives each field astate. ui.view_refit, andui.view_not_readyfor 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>orgt-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 attachesgt-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 importsgt:pluginsreads 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 callscommands.onandtoast.showfromimport { 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_apiwritesplugin-api/gt.d.ts,plugin-api/api.jsonanddocs/plugin-api.mdfrom the declarations, andtk cichecks them.gt:js: a runtime's cells live in a block of reserved addresses (Host_Config.reserve_bytes), soengine_newworks 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_initwith 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.diagnosticsis aprefs_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, ahost.Frame_Ringand whether partial redraw is on. A program on the host writesdiagnostics = prefs_page.diagnostics_of(&app.main)in place of&app.main.host.frame_addrecords one picture in a ring, andprefs_page.diagnostics_rowsgives 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_inittakes anannouncerto 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 innative/pdf, a part of the native library:toolbox.Feature.Pdfbuilds 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_fileon Windows: a file opened goes to the user's Recent folder and to the program's jump list (SHAddToRecentDocs), as it goes torecently-used.xbelon 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 byprint_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_rowsfor 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_matchesandui.find_row_matchesread it. Design:src/md/features/find-in-view.md; use:docs/find.md.desktop.Integration_Options.document_types,open_documentsanddefault_documents: a program registers itself as a handler of its document types (Document_Type: extension, MIME type, description), as the partsPart.DocumentsandPart.Default_Documentsthatinstall,remove,statusandapplyhandle like the others, so a setupChoicecan offer "Open PDF files with the program" and show its state. On Linux the desktop entry lists the types inMimeType=and takes one file as%f(hidden from the menu withNoDisplay=truewhen the launcher is off), and the default is the types' line ofmimeapps.list, the former default given back on removal. On Windows a ProgID per type,OpenWithProgids,Applications\<exe>\SupportedTypesand Capabilities named byRegisteredApplicationsput the program in "Open with" and in Settings > Default apps; Windows lets only the person choose a default, sodefault_documentsopens Settings at the program's page instead.opens_documentssays 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: itstexttakeswhole(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 gainsstamp(a row's text changed),version(any row changed) andreveal(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_queryand the marks' filter field are gone (the find bar and its scopes do it); so areui.find(needle, scope),ui.find_set_current,ui.find_sweep,ui.find_all,ui.find_progress,ui.find_refreshandlazy_begin'ssweep(a lazy column's rows are counted by their text, never built for a sweep): a program opens the find over its view and callsui.find_bar.
Fixed
- Notifications no longer pause the window on Windows:
platform.notify_async(and soui.announce) returns at once. A notification thread of the toolkit shows the toast, anddoneruns from the window loop when it answers, as on Linux. A replace,notify_closeand the click and button events work as before. On an offscreen windownotify_asyncnow returns false, anddonedoes 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), sonoticesof a program withFeature.Accessibilityno 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 withrail_emis 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.outputandcapture.desktopwait 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 nameaccent_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_Configfields, set atengine_newor later inrt.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 settingsrt.jit_cfg;jit_configure(rt, ...)andjit_stat(rt, which)take the runtime;-define:JSRT_TRACE_LAST_OPwritesrt.trace. gt:js/datetime:get_date_fields,set_date_fields,parseandparse_bytestake the time zone, aTimezone_Offset, as their last argument (nil: UTC).
- The hooks are
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.demoStateslists the names andToolkit.demoState {name}enters one. In a tool:cdp.demo_stateandcdp.demo_states; in a script, a timeline ortk cdp:demo <name>, andtk cdp demoslists 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_rightleaves 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, orstitchover 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, andmax_heightbounds 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 withoutrail_emis 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_test262runs it ongt:jswith the native judge;tk gen_js_unicodemakesgt: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_judgeruns test262 on it natively;tools/js_parse_judgejudges its compiler.
Fixed
- The views' frame keeps its zones in the window: the central content and the docked panels of
views_framekeep the width their split gives them; a tool bar inside no longer pushes the dock zones out of the window (a program needed.Fits_Widthon them since 0.297.0).
0.298.02026-11-17 11:07 UTCrelease
Added
fsx.path_join,fsx.safe_file_name,base.read_be16andbase.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_joinis gone: callfsx.path_join(dir, name, sep). A licence file's name is made bysafe_file_nametoo: 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.sizetakesSize_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.ratewrites a size per second ("1.2 MB/s");timefmt.write_sizeandtimefmt.write_ratewrite them into a buffer without allocating, for a column of rows.timefmt.weekdaynames the day ("Monday"),timefmt.iso_datewrites "2026-11-10" (and "2026-11-10 14:32"),timefmt.datetakesyear, andtimefmt.momenttakesweekdays("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}) -> Programopens 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), andhost.host_settle(h)owes them after a change that came with no event: a program drops itsFRAMES_AFTER_INPUT. prefs_page.updates_start,updates_followandupdates_stoprun a program's Updater: the folder fromupdate.base_urlor the repository's latest release (update.latest_release_folder),update.autofor the installed copy only, followed with no call of the program, and the installed copy's manifest written on a chore.updates_followsays 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_endfrees it.
toolbox.Program_Session,toolbox.free_port,cdp.connect_wait,cdp.wait_still: a tool'slive,shotsorbenchstarts 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_nametakes atext(the box of that name whose text holds it), andcdp.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.quoteis removed: usejson.quoteofgt:json.toolbox.build_commands: a program'sbuild,testandcheckcommands from itsProjectand aBuild_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 checkfor this system, for Windows and macOS, of its tool, the tests, a release build without a console on Windows, then its console launcher.testtakes test names in every program.program_build,program_testandprogram_checkare the same steps for a tool's other commands.write_if_changedis now public: the one writer of a generated file, underwrite_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 demosbuilds the same zips locally. instance.runningandinstance.quit, and a default wait. A program asks whether its copy runs, or asks it to quit, with one call each, in place of asendofMESSAGE_PINGorMESSAGE_QUITit wrote itself.Instance_Options.wait_ms0 now waitsinstance.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.segmentedasks 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_widthgives a dropdown's own width. ui.box_findfinds 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.finduses it).gt:filmandtk 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 filmmakes 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_watchgives the window the system's title bar or the program's own at once whenwindow.system_titlechanges (the program's where the system has none).ui.Box_Flag.Fits_Widthmarks 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_EMandui.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 ownleast), 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 itsgapbetween its children, as CSS'sgap: a stack of cards takesgap = {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_FROMENTis the imprint's seller,site.meta_default(name, url, repository, tagline, theme, accent, card)a site'sMetawith the vendor's fields filled, andsite.NETWORK_UPDATES_ONLYthe privacy sentence of a program that only connects for its updates.desktop.identity_of(vendor, title, slug)derives anIdentity'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 bydraw(pixels, size, user):write_logodraws each size atdraw_size(0:master) or more and shrinks it byLOGO_SHRINK_STEPat most per step.logo_pictureandlogo_shrinkare public.
prefs_page.licence_initneeds the logo and the vendor:Licence_Options.logoand.vendorare 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_sizeas 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:capturewaits 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_graphstays where it was let go. The frame of the release drew the moved nodes back at their old place, before the program appliedGraph_Moved: they jumped there and back, and the widgets in them glided both ways. - The font picker and
ui.dropdownfollow the rounding setting. Their buttons had square corners whateverappearance.roundingsaid; 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
choicesand 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'sROADMAP.mdmay end with a## Maybesection: 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.tabandui.palette_run_set_text. ui.act_command: a program's own button of a command states it withui.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_Optionstakes the program'slogoand itsvendorfor 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_emkeeps a column that wide instead, built withView.railset 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_rowandui.selection_rows_end, builds the rows ofui.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-motionstops 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.
- The template's hero takes the new placeholder
- 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_closeof the first window hands the renderer to another open window, which becomesShared.main: a program started from the tray can close and open its windows freely (a Wayland overlay made again on another output).render.surface_adoptmakes 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_startgives its programs the session's folder asHOME(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: withTOOLKIT_RENDER_FAULTS, refuses Direct3D 11'sCreateDevicecall 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_noticeswrites 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_startalso gives its programs aHOMEof 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_windowsopens offscreen windows when the owner window is offscreen (they build and draw no picture:Host.no_picture), andsession.view_windowgives 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_shownandui.act_gofind 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 aconfig.Def) opens the command's form in the palette, each argument with its control; Enter on the last gives the choice withPalette_Choice.arguments. A closed list the program fills:Palette_Commands_Options.choices.prefs_page.palette_forms_usefor a program without the settings source;ui.palette_command_arguments,ui.palette_command_choices. ui.color_picker'stext: false leaves out the format switch and the text field, for a caller whose own field is the colour's text.ui.font_families_readandui.font_families_askare 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, sosession.advancemoves its delays (a tooltip) too. ui.palette_chosenmakes 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.shiftandPalette_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.lowernow 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.xandws://[::1]connect over a TCP connection of the package's own, sogt:cdpdrives a program from a shell without curl again; since 0.287.0cdp.connectfailed there (ws_connectanswered.No_Client) and a program's live test stopped at "the window serves the DevTools protocol". http.requestreuses 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 mostPOOL_IDLE; Windows: one WinHTTP session). Five requests in a row now open one connection, not five.session.advanceon a view's window: it looped for ever, because that window's clock never moved. It now advances the application's clock.ui.view_closeof 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.Projecttakescrates(the Cargo manifests of the program's own Rust libraries) andworks(Project_Work: a name, a licence and the licence's file or text);third_party_noticesgives 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 metadatais 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 itsnoticescommand 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 screenshotstakes four pictures of it. ui.number'sparse(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_openopens a font picker's list from elsewhere, as a click does.
Changed
- The glow in percent: the settings page shows
appearance.glowfrom 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.hotkeysis gone (aKeyssetting records keys) anddiffers_from_defaulttakes nokeysargument.setting_linedraws one setting's line out of the page,control_openopens 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.unitis now aconfig.Unit(it was a text) andDef.bytesis gone: a size isvalue_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_recordedcounts 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.destroygives back the ranges of its pictures, which keep their recording.picture_release(pic)andpicture_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_edgeopens 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.
noticestakes the licence files one folder down when a crate has none at its root (libwebp-sys keeps libwebp's COPYING and PATENTS invendor/), 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 carryContent-Encodingnor the encodedContent-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 acardor alist_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 replacesparent_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.keysis 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_textreads/between two keys as it reads a comma. - A card can ask for no edge:
Plate_Look.borderand theborderofmachined_plate,machined_plate_corners,machined_plate_frameandmachined_plate_frame_cornersare aMaybe(Color): nil is the finish's edge, a colour of alpha 0 (Color{}included) is none. Migration: a look that leftborderzero for the finish's edge leaves it unset; a call that passedColor{}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) andbright text(a title, what is selected), andui.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.compressedasks for gzip or deflate and gives the body decoded (max_bytescounts decoded bytes), for a request and an event stream;Request.connect_timeoutbounds 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'sextratakesSheet_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.cardwith its own look:ui.card(title, icon, id, o)andui.list_card(id, o)takeCard_Options(a radius, and aPlate_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;idsets the box of a card without a title. A.Platebox takes a look throughBox.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_movetakeskinds, 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.gettakes apreparethat 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_dirgives 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_dirgives~/Library/Logs/<program>, and the setup's install folder is~/Applications/<name>.app. - Event streams and WebSockets in
gt:http.eventsreads a server's event stream (Server-Sent Events) and calls the program for each event;ws_connect,ws_send,ws_recvandws_closehold a WebSocket overws://orwss://. 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 thestyleattribute, and follows a gradient'shrefto the gradient whose stops it shares, as Inkscape writes them. - A cache of decoded pictures.
gt:pictureskeeps 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:secretsseals a password or a token for the user's account:sealgives a field to keep in the program's file,opengives the secret back,forgetremoves it. Windows uses DPAPI, Linux the Secret Service. When no store is there,sealsays 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, whereform_encodewrites a form's+. The crash bar's issue link uses it. - One spacing scale.
ui.SPACE_1..ui.SPACE_6and 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'spadandedge. 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\Papieron Windows and~/.local/opt/FromentSoftware/Papieron 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.toggletakeswrapfor a long label, ascheckboxdoes. - 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_decodeand theWS_*opcodes are no longer public: the client's WebSocket isgt: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_runandIdentity.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.displayshows 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_rowtakes 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)becomesstat_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.lightenandui.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=falselets a program that buildsnative/webpinto its own Rust library usegt: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_makemakes a mark or a logo from a PNG's bytes. - A program's folders under its vendor's.
platform.USER_DIR_SEPARATORwrites a program's folder as its vendor's then its own (FromentSoftware/Papier:%APPDATA%\FromentSoftware\Papier,~/.config/FromentSoftware/Papier), andplatform.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 settingskeys.customandkeys.aliases(prefs_page.Standard_Set.Keys, inSTANDARD_ALL). For a program:ui.Command.id(each command's name for good, also the palette's memory keycommand:<id>),ui.command_ids_check,ui.Keymapwithkeymap_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, andprefs_page.Standard_Targets.keymapforstandard_watch.Palette_Commands_Options.names,.keys,.firstand.alternatesare removed: the ids, the keymap and the aliases replace them, andPalette_Commands_Options.shiftis 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.dllbeside it on Windows, no system libwebp on Linux; a program withtoolbox.Feature.Webpbuilds libwebp intogt_native(tk build_native, partwebp) and builds with-define:IMAGE_WEBP=true.tk build_webpanddesktop.TOOLKIT_FILESare 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.eventleaves them,.Zoomedandterm.ZOOM_STEPare gone), it steps by the interface's zoom step, and each shell keeps its zoom throughView.zoneandterm.build'szoom_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_openreturns 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 bytk build_native -features:text,mermaid,a11ywith one copy of Rust's standard library;build_text,build_mermaidandbuild_a11yare gone, andtoolbox.build_nativebuilds 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_KEYSandZOOM_RESET_KEYShold 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 withcli.Exit:.Done,.Failedor.Usage;toolbox.done(why)andtoolbox.ended(ok)give it, and onlycli.exit(andtool_main) turns it into the process's exit code.--statusends with.Donefor an install there whole and.Failedotherwise.EXIT_DONE,EXIT_FAILED,EXIT_USAGE,cli.EXIT_OK,cli.EXIT_USAGEandsetup.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 fileexe, found by its full path (never by its name), each with its start time (Process_Ref). On Windows,process_start_timeandsignal_process(Terminate,Kill: TerminateProcess) work now too.instance.MESSAGE_PINGandinstance.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 mostsetup.QUIT_WAIT(exit code 0 ended or not running, 1 still running).--statussaysquit: yeswhen 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_exactandexpect_opaquecheck 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(selectedon 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 -timesfor the toolkit) gives the versions of before their tag's time. - What's new, in every program.
Page_Options.changelogadds 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.announcetakesstays). - Text that changes without a blink.
ui.morph_labelshows 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.Webpbuildsgt_webp.dlland 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_webpbuilds the toolkit's own libwebp from its sources (native/webp: libwebp and sharpyuv, compiled with MSVC) intobuild/webp/gt_webp.dll;gt:imageloads 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_slidertakes an optionaldefaultrange: a double click on its track sets both ends again. - A slider and a number come back to their default.
ui.sliderandui.numbertake an optionaldefault: 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 partPart.File_Managerthatinstall,removeandstatushandle like the others. On Windows, Win+E and the folders and drives opened from the shell run the program (keys in the user'sSoftware\Classes, removed with the system's own verbs back). On Linux, the program is the default ofinode/directoryinmimeapps.list, and removal gives the former default back.config_dir(<prefix>CONFIG_DIR) points the tests at a scratch$XDG_CONFIG_HOME;mimeapps_defaultandmimeapps_with_defaultread and edit amimeapps.listtext.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, andarchive.open_asopens 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)afterview_open, and reads it withui.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_duesays 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_markandtrace_noteprint 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_Fontswithhost.worker_fontsgives 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_fontis 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.
nextstill 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.Rowsregistersappearance.rows.zebra(alternating rows) andappearance.rows.rules(a line under each row), with the program's defaults fromStandard_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) withprefs_page.placement_restorebefore the window shows,placement_trackat each frame andplacement_keepat 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_placementwithmaximizedon an offscreen window makes it maximized at once, as on Linux;get_placementsaid 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_dirandplatform.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 overcore:encoding/jsonvalues 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_formatnames itGif. 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 buildmakes 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, elseruntime-<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, elseGetTempPathW), never%LOCALAPPDATA%. ui.paste_request/ui.paste_answerpaste 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).decodegives 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.pasteand.paste_decodeset 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_menuandedit_pastetake the samepastekinds anddecodeflag.- The toolkit reads an image only when the clipboard holds no files and no text.
Removed
desktop.xdg_desktop_diranddesktop.user_dirs_desktop:platform.known_folder_path(.Desktop)gives the desktop folder.$XDG_DESKTOP_DIRof 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_pathis 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_askedhook 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
hosttests 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.toggleis 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.detailsgives each command a detail shown after its title ("Session · Fix the build"), part ofversion, 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}})beforescroll_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_revealbrings 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'shold).
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_keysreads its keys andui.shortcuts_sheet_openlistsui.palette_command()after the program's commands. A menu line readsui.palette_command()at its build. prefs_page.palette_settings_add(&p, &s, &prefs, &page, options, open, user)withoptions: 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_openis unchanged for a program.ui.choice_memory_closekeeps 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_answerthen returns false).ui.palette_answer_free(&a)frees an answer never given, instead ofvirtual.arena_destroy(&a.arena). Item_Selection.version(a list's, aVirtual_List's, aTable'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), aui.Flow_Palettesource (a chooser;c.indexis the kind,c.idits name);ui.flow_palette_items(g, cat, from, allocator)gives its items.src.read == nilto know whether a source is added →ui.palette_has(&p, &src);ui.palette_addis 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.validandp.ranked.textin a test →ui.palette_ranked_for(&p, text).
- A table's line for the palette's command (Ctrl+K, Ctrl+Shift+P) → none:
- 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.tabsand 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 byui.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 comparesversiononly (a change ofdisabledneeds 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), andui.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.memoryandui.choice_notefor each choice →ui.palette_memory_open(&p, s, path): the palette owns itsChoice_Memoryand notes each choice, the key<source>:<id>(command:<label or name>,setting:<name>).prefs_page.palette_commands(&prefs, o)andprefs_page.showafter the choice →prefs_page.palette_settings_add(&p, &settings, &prefs, &page, o, open, user).ui.views_commands_updateandui.views_command_runfor the palette → nothing: the moves source follows the views of the window the palette is over.View_Commands.serialgoes.Palette_Options.recent_titleand.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 eachPalette_Questiononce withui.palette_answer(q, &answer)(aPalette_Answerbuilt in its own arena, taken without a copy),ui.palette_answer_errororui.palette_question_drop. Command_Palette.rankingsstill counts the rankings;.asksand.droppedcount the questions and what was dropped;palette_row_count,palette_row,palette_selected,palette_busyandui.rank_matched()are for tests.Search_Band_Options.busyadds "…" 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_linesays 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_lineandui.splitter_line_widthgive 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_foldergives 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]::procgivespkg.procand 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_launcherruns<launcher> --version, the form thatgt:cligives every program, instead ofversion, which a program that reads its line withgt:clidoes 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 = .Windowmarks the palette, the keyboard shortcuts, the settings, close and quit.command_pressedtakes 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 withui.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_keyslists 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 withmultiselects 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 fromitem_selection_click,item_selection_moveanditem_selection_key. The marks (list_is_marked,list_mark_count,marks) are replaced bylist_is_selected,list_selected_count,list_selected_idsandselected_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_pressedno 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, andui.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_editand 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 atip, a tool with a command shows the command's tooltip.menu_search = falseopens 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_alwaysshows 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, innew_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,
movedat 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)andui.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 getsmovedtoo. - 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_fracandView_Dock_Options.extent_frac/extent_em(per edge, also forviews_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)andui.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 aui.Font_Source,ui.font_system_sourcefor the system's; docs/font-picker.md). gt:font names the family of any face withfont.family_of(an embedded or file face reads itsnametable), andfont.system_familiesnow returnsfont.Familyvalues (name,monospace): read.namewhere 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_Commandswithui.views_commands_updatekeeps 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 ahostprogram (ui.views_set_windows);session.view_windows(s)the one of the tests, withsession.view_window,session.window_shownandsession.system_close.View_Options.movedis 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. Thedockingexample 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), andui.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)andui.views_command_rungive the palette the same acts ("Dock Files to the right", "Float Files"...), in the language in use. Thedockingandpanesexamples 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_Labelshas 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:
paragraphandrich_paragraphselect and copy without a flag (selectable = falsefor a control's part, as a list row's lit name), a diff's lines always (View_Options.selectableis 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_escapegives the same rule to a program that reads Escape itself, andui.item_selection_rekeykeeps 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 wasscrolling.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_arrowsand "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_painttakes the bar's parts and its state (ui.Scrollbar_Parts,ui.Scrollbar_Look);Text_Edit_Draw.bar_hotandbar_heldarebar_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_titleoff), 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.backdropis nowproc(v: ^ui.View, user: rawptr), so a program paints its scrim only whenv.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 withhost.view_windowsits ground, its frames after input, partial redraw and the program'sinputhook are its owner's (the hook'sh.ownersays 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,donecalled 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)andui.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, asview_titlegives a title.ui.focus_next_field()gives the keyboard to the next field built (anumber'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..Foldkeeps 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 itstitle, 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_itemis gone;ui.toolbar_grouptakes atitle; 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 becomesui.confirm_open(id, o)once (its options are cloned) andui.confirm_answer(id);ui.prompt(id, &open, &field, o)becomesui.prompt_open(id, &field, o)andui.prompt_answer(id);ui.palette_open(&p)andui.palette(&p, commands, disabled, o)becomeui.palette_set(&p, commands, disabled, o)when they change,ui.palette_open(&p)andui.palette_chosen(&p) -> (index, mods, ok)(Command_Palette.openand.sizego:ui.palette_is_open(&p), the views keep the size);sheet.open = trueandui.shortcuts_sheet(&sheet, id, commands)becomeui.shortcuts_sheet_open(&sheet, commands);setup.dialog(&d, cfg, em, logo)becomessetup.open(&d, cfg, logo)in a build andsetup.update(&d, cfg)each frame (Setup_Options.closeandDialog.sizego; a screen of the program's own callssetup.start);prefs_page.install_frame(&in)loses itsem. 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'sui.Statehas its views, with nothing to set up (ui.state_views(&state), orui.views()for the window being built); a program that keeps the user's choices in a file, or whose windows share their views, owns oneui.Views, reads its file withui.views_init(&vs, {path = ...}), gives it to each window withui.set_views(&state, &vs)and ends it withui.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 withVIEW_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 }becomesui.view_register(ui.views(), id, build, {title, width_em, resizable = true})andui.view_open(ui.views(), id, &data), the body inbuild :: proc(v: ^ui.View, data: ^T);ui.dialog_headergoes (View_Options.title,icon,ui.view_title,ui.view_header_tools);open = falsein the body isui.view_end(v, code);ui.modal,Modal_Options,ui.dialog_header,Dialog_Header_Optionsandui.modal_cornerare no longer public. - The family settings apply live, in every program:
prefs_page.standard_watchnow appliesappearance.text.ui_font,mono_fontandprose_fontitself, 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, andui.Family_Facewithfamily_face_setandfamily_face_destroyfor a face of a program's own.Standard_Targets.facesgives the program's own faces,Standard_Targets.font_sourcethe families' source;Page_Options.default_fonts,Default_FontsandPage_Options.font_sourceare 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 whenView_Options.proseis 0.
Fixed
- On Windows, the paths of the log and of a crash report have backslashes only:
log.pathandcrash.last_reportgaveC:\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.activeandfocusedalso follow the compositor'sactivatedstate 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 neveractive, 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_offscreentakeshalf_floatto draw a frame in that format,render.read_pixels_floatreads its values as they are stored,render.frame_is_halfsays which format a frame is in, and the test sessions takehalf_floatwithsession.capture_floatandsession.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_roomsays 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_rimmedsays whether a box gets that line;ui.paint_rect_cornerstakesrim = falseto 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_emat least), centred, and no rect, remembered or resized by the user, makes it narrower than what is in it on one line. Aform_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_tabasked for: the next one of that kind that opens withinui.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_labeland the words a program givesViews_Options.labelsare 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)andui.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.hideandsession.showin 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/sessionthat 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 tocheck_now, never a version on offer, its download or a version in place.Status.installsays that a result is an install's; a failed install'sresultis its reason alone, andstatus_wordssays it on the Updates page ("Version 0.16.0 is available. The update failed: …").
Changed
prefs_page.update_badgereturns 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 aspacer(fill())that asks for the whole row keeps the name whole while the row holds it. With room,label … spacer(fill()) … buttonslays 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_cardstakes 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, thehost_paintpath), andplatform.wait_slotends 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 (orpath_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 itwants, and the program answers withpath_bar_childrenorpath_bar_failed.ui.choice_rowlights 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.checkreadsROADMAP.mdbesideCHANGELOG.md(# Roadmap, then## Now,## Nextand## 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_deepturns it on at first, andFile_Dialog.actgives 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_minutesis 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_shownsays whether it is open.
0.256.02026-11-14 08:58 UTCrelease
Added
ui.Table: groups and a fuzzy filter:table_data_row'sgroupkeeps the rows of a lower group first in every sort (a file manager's folders), andTable_Layout.fuzzyfilters by the query's letters in order, the cells lighting the letters matched.ui.code_runs_ofcolours a text with spans kept from an earliersyntax.spans;platform.file_rootslists 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_memorykeeps 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_pushkeeps 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_openandclip_inside_closeclip what a rounded frame holds to its inside (clip_inside_pushfrom 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 istk_host: as the toolkit's other packages with a common name, so that a program with its ownhostpackage (Wren's loop and tasks) can useprefs_page, which imports it; Odin wants one name per package in a program. A program imports it asimport host "gt:host"(wasimport "gt:host"); nothing else changes.
0.254.02026-11-14 03:46 UTCrelease
Added
- File descriptors over D-Bus (gt:dbus):
dbus.call_with_fdspasses file descriptors with a call. The connection must ask for them:connect_bus(bus, unix_fds = true);conn_unix_fdssays 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 isUnsupported. The call blocks: run it on a worker.print_fitlays the picture out andprint_pdfmakes 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'sstroke-dasharray, with an offset. A length drawn of 0 is a round dot. - Pictures read from files, combined, cut and trimmed (gt:image):
image.decodegives the RGBA8 picture of a PNG, JPEG (baseline or progressive), WebP or BMP file.image.file_formatreads the format from the file's first bytes, not from its name.image.combineputs several pictures in one, side by side or stacked, with a gap and a background; each is centred across.image.cut_outremoves a band of columns or rows and joins the two sides.image.trim_boundsgives the part of a picture left once its edges of one colour are trimmed (with a tolerance).image.edge_meangives 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 aui.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 ownpriority(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) givescommittedand 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_allselects aText_Edit's whole text, asline_edit_select_alldoes aLine_Edit's: for a text put in a field to be typed over. - Keys as a node's parameter (gt:flowgraph):
flowgraph.Param_Type.Hotkeyholds keys asplatform.hotkey_textwrites them ("Ctrl+Alt+E"), kept in the file as a text; "" is none.ui.node_inspectorrecords them with aui.hotkey_fieldand a button that clears them. Use it for a shortcut of a workflow's own. - The pointer in still pictures (gt:capture):
capture.set_cursorasks for the pointer in a picture of an output, a window or the desktop;capture.cursor_supportsays 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_supportis false there.capture.patch_clipis 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,
longPathAwareand 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.actsays 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), andupdate.set_channelfollows 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_sourcereads 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_infonames 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.Installholds the install: the offer at a start (the setup's dialog), the user's answer (the hidden settinginstall.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.pagedraws it;setup.Factshasautostartandon_path; aPage_Infohasuserandtags.- 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), asprefs_page.install_choicegives it;prefs_page.choice_aftersays what each event leaves. setup.open_installedno longer starts the installed copy: it saysLaunched, 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.
- An uninstall from the page answers "standalone": the next start offers no install. The offer obeys
ui.toolbarandui.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_marksandi18n.parse_decimalwrite 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: withMeta.shop,build_changelogwrites 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.selleris aSeller(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.platformandShop.network(HTML): the systems the program runs on and what it connects to, for the privacy policy. NewShop.repository: the source, in the footer and the imprint. Shop.refund_daysis removed: Paddle handles refunds under its policy.Shop.code_licenceis the licence's whole name ("MIT"→"MIT License");Meta.licencereads "MIT License" in the footer.
tk_site: every page a folder, one nav and one footer for every site: the changelog ischangelog/, the classic pagesclassic/features/,classic/screenshots/andclassic/changelog/, and every link names the folder by the shortest way (relative_links), neverindex.html; the feed,sitemap.xmlandllms.txtdo 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 itsMeta(with_frame; newMeta.publisher_logo,licence,footer_note,shop;Changelog_Options.meta).og:image:widthandheightare 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'sbuild_native(through the newbuild_windows) writes the program's resource from the Project, andodin_commandlinks it. The resource has the icon (icon, by defaultassets/<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.installwrites 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" giveFromentSoftware.OpencodeNative). The build getsGT_AUMIDfrom the Project's publisher and title (project_aumid; none without a publisher), and gt:desktop'sIdentity.aumidis 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#loadof the launcher and its launcher mark.Launcher.out→launcher_path(p),Launcher.mark→launcher_mark(p);version_headerandwrite_version_headerare removed.
- The AppUserModelID is derived, never written:
--install,--uninstall,--setupand--statusare the same in every program (docs/setup.md).setup.command_oftakes them out of the arguments andsetup.command_runruns them without a window;setup.command_alonesays which ones run without a window;setup.COMMAND_OPTIONSlists them in a program's help.--statussays what is installed (where, its version, the menu entry, the start with the session, the PATH) and whether the program runs (running: true, fromSetup_Options.running), with the exit code 0 installed, 2 to repair, 1 not installed.desktop.parse_clino longer takes--installand--uninstallas shorthands of its flag (they installed the integration alone): a program passes its arguments tosetup.command_offirst.
ui.mark_railisui.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 withScroll_Marks_Options.now_ms,offset_minutesandhours12) 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.momentsays 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(withoutno_filterandfilter_w),mark_rail_*→scroll_marks_*,mark_rail_dot→scroll_marks_at.scroll_markstakes 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.segmentedmakes 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_emat 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.confirmandui.promptare built ofdialog_bodyanddialog_buttons.dialog_buttonsis a wrapping row with its own gap: a program removes the spacers it put between buttons.ui.flowtakes analignfor 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
flowstill 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.wrapis removed: every button wraps.- A popover's
widthis 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.
- A width or a height in pixels given to a button is a least: it grows to its words on one line.
- Keys are named in the language in use everywhere:
platform.key_textgives 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.languageapplies at once:prefs_page.language_startwatches 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.useof the language already in use changes nothing.- Standard settings whose defaults need no override: a program that set them through
Standard_Defaults.valuesor followed the system itself drops that code.appearance.text.subpixelisautoby 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 byprefs_page.standard_register.off,rgbandbgrstay. A program that calledfont.system_subpixel_textwhile the setting was at its default drops that call.appearance.text.grid_fit'sdefaultisauto("Auto", "On", "Off"):font.Grid_Fit.Default→font.Grid_Fit.Auto. A settings file that holdsdefaultfalls back toauto.rendering.partial_redrawis on: each frame redraws only what changed; a frame that cannot (a backdrop, a plane) is drawn whole.scrolling.smoothison: a notch of the wheel glides even when the system asks for fewer animations.followstays a choice.
Removed
Intent.Canceland its redcancel_button: a Cancel is a neutral button, inui.confirm,ui.promptand the setup dialog too; giving up is never coloured as a danger.Confirm_Options.act_intentgives the act's colour (nil: Danger; withenter_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_SETTINGCHANGEon Windows, GNOME'senable-animationson Linux, its first read on a thread); it was asked at every build, a file read per frame on Linux.crash.end_sessionwrites 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.launchallows the new process the foreground (AllowSetForegroundWindow), where it opened behind the other windows; a program that started its new copy withos.process_startcallssetup.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
HalfandUnorm8. - 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 anImage, by the libwebp thatwebp_encodealready loads at run time;okis 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_Priceis removed, andShop_Pricewith it: setedition,price_idandbuy_labelon theShopitself (prices = {{edition = "standard", price_id = "pri_…", label = "Buy the licence"}}→edition = "standard", price_id = "pri_…", buy_label = "Buy the licence"; an emptybuy_labelsays "Buy the licence"). AShopis now a constant whole: noSHOP_PRICESarray and noshop.prices = …before the build.Shop.iconis new: the program's icon from a template page ("../img/logo.png"), shown in the hero and the bar; empty shows none.Shop.price_noteis 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 €."→price_note = "".product_titleis no longer the pricing page's heading (the program's name is): it stays what Paddle sells, named by the legal pages.shop_openalso needsthanks, as the page's script did.- The blocks' markup changed: the buy block is
div.shop-offer#buywith onebutton.shop-buy(data-edition,data-price,data-label) and a hidden#buy-notefor errors; the thank-you block isdiv.shop-thanks#licence-thankswithdata-state(waiting,ready,failed) and no edition row. A program that keeps its own pages putsLICENCE_CSSin its stylesheet andclass="shop-page"on their body.
Fixed
site.Shop.price_noteis HTML, as its comment said and aspriceis: an entity such as45 €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_ofandtakes_directionwork on its text. - Markdown tables and fences:
syntax.guesstakes 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.fenceis 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_DIRon Linux,%TEMP%on Windows.desktop.xdg_rootsis public: the XDG data and configuration folders and the desktop's names, read once.timefmt.sizesays 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 itslicence.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_Infowithbuildis a page with no preference, built by the program (a server's state, a list);headingstarts a group of pages in the sidebar.Standard_Defaults.valuesgives the program's own default for any standard setting (its rounding, its partial redraw). A reset comes back to it, andstandard_applyapplies 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,--headlessand--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_bandandui.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 optionalcount. Its top corners are those of the box it begins (a dialog, a menu, a popover);owner_keysgives 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_focusedkeeps 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_noterecords a choice;ui.choice_bonusgives the same raise to a list ranked withui.rank.- Languages: the toolkit and a program in their user's language.
i18n.loadandi18n.useread the toolkit's catalogue and the program's;prefs_page.language_startfollows the Language setting (System: the system's, read byplatform.system_language), now a choice of English and French.config.Def.choice_labelssays how each choice of a setting reads ("Français"). Thei18n <language>command of a project's tool writes a catalogue from the code'strcalls, and-checksays 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 withi18n.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 cichecks every tool: each folder oftools/is checked for this system and, from Linux, for Windows.tools/text_benchcompiles again.tools/colrboard,colrcompare,slugsmallandtextcomparewrite their pictures withgt:pngand need no STB library.tools/render_probe,resize_probeandshadersare Windows programs.- Screenshots and site:
tk screenshotsdraws the showcase's scenes with no window, in the themes and finishes that show them (machined dark and light, edged, glass, gradient), intodocs/screenshots/showcase_*.webpandsite/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_buildpublishes the pictures in WebP at their own width and at 360, 720 and 1100 pixels (site.build_images), each<img>with itssrcset. It needscwebp(nix develop, Debian'swebp; fetched and pinned on Windows). window.system_titleno longer says it takes effect at the next start: programs switch the title bar at once.- Test sessions: the
deadlineparameter ofsession.wait_idle,wait_until,wait_box,wait_textandwait_goneisbound, andsession.DEFAULT_DEADLINEissession.DEFAULT_BOUND.session.findandsession.gettakewithin: a box looked for under another one (a settings row whose parts have the names of every other row's).ui.box_text(andsession.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)andui.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 parametero).
gt:signingreads and writes the Ed25519 keys of licences and updates:licence.key_decode,update.public_key_decodeandupdate.seed_decode→signing.key_decode;licence.key_encodeandupdate.seed_encode→signing.key_encode;licence.public_key_ofandupdate.public_key_of→signing.public_key_of.- A port of a flow graph is one value,
flowgraph.Port_Ref:{node, port, side}withflowgraph.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, inGraph_Port, the events andflow_palette'sfrom.
- 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 anupdate.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_floatandget_string(byRef) are gone; read withbool_of,int_of,float_ofandstring_of.set_bool,set_intandset_stringtake the name, and the newset_floatsets a Float without formatting it. They return theSet_Errorofset_from_string, which stays for text a user typed.config.export(p, format, all)withconfig.Export_Format(Json,Toml,Ini,Own) replaces the fourexport_*. 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 forToml,IniandOwn.prefs_page.export_textis gone: callconfig.export.prefs_page.Export_Format→config.Export_Format.
- Names: one word per thing across the toolkit. A struct of options is
<Stem>_Optionsand its parameter iso;_destroyfrees what a value owns;_makereturns a new value,_initmakes one in place,_startand_stopare 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 ito: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 boxradius = 0: it fills the corners ofbox_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:baseis the packagegt_base, so a program with abasepackage of its own builds; import it asimport base "gt:base".
- Option structs:
announceis the one call that says something:toast,toast_actionandtoast_titledare 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 anaction, or within_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 stillgeneral.messages).
- Parameters nobody gave are gone:
tabshas noright_clickedandmiddle_clicked;segmentednoseparator(the words of.Textare separated by a slash);radionowrap;tilenoclickable;title_stripnoclosable;history_find_tagnowithin(HISTORY_TAG_LOOKBACK);history_statsnobudget(andHistory_Stats.overis gone);qr_codenoecc(Medium). - Every value widget returns whether its value changed:
checkbox,radio,toggle,sliderandrange_sliderreturnchanged: boolin place of aSignal, asnumber,dropdown,segmentedandtabsdo. 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_clickedorsig.box.key→ui.signal(ui.prev_box(id)).right_clickedorui.prev_box(id).key, right after the widget.number(..., track = true)→number(..., slider = true); itsformatandtipare 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)replacesmodalandmodal_sized, withwidth_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) andtop(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 keptsizeis in ems now, not logical pixels (Command_Palette.sizeand the Setup dialog'sDialog.sizetoo).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 bymenu_open(id, at, anchor, from_keyboard, search, nested)whereatis a point or a rect (Menu_At), and built bymenu(id, width), nested or not.searchis on by default: a menu of a few fixed choices sayssearch = false. A menu row and a command saydisabled, as a button does. How a program moves:ctx_menu(key, w)andmenu_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)andmenu_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_buttonandedit_menutake 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_Fieldisui.Line_Edit,ui.Text_Areaisui.Text_Edit, each with its procedures.line_edit(id, f, o: Line_Edit_Options)andtext_edit(id, a, o: Text_Edit_Options)take their options in a struct. A line edit'skind(Line_Edit_Kind:.Plain,.Secret,.Read_Only) replacessecretandread_only.Field_SnapshotandText_Snapshotare oneEdit_Snapshot, and oneEdit_Kindserves 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_historyis 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(nocross: 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 forline_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_keytakes the samekind.
- One
ui.button:button(id, text, icon, o: Button_Options) -> Signalreplacesbutton,button_icon,icon_buttonandhint_action;nav_itemis gone (the settings page's sidebar lines are buttons).idis the id alone ("add" or "###add"). The options are fields ofButton_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 fromo.width,o.heightornext, 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, {...}).hueandsolidare gone.icon_button(id, glyph, tip = t, ...)→button(id, icon = glyph, o = {tip = t, ...}): a glyph alone is a ghost unlessfacesays otherwise.nameis gone: callui.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 glyphicon.
- 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}, andui.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.versionand bumps it when it changes. ui.palette(p, commands, enabled, opts)→ui.palette(p, commands, disabled, o)withdisabled[i] = !can(i);ui.flow_palettereturnsdisabledtoo.ui.shortcuts_sheet(id, commands, &open, title, width_em)→ui.shortcuts_sheet(&app.sheet, id, commands, title, version)withapp.sheet.open(aui.Shortcuts_Sheet), andui.shortcuts_sheet_destroy(&app.sheet)at the end.
- A command has any number of keys:
ui.Command.keysis a[]Chord, not[2]Chord(Zoom in: Ctrl+=, Ctrl+Num +, Ctrl+Shift+=). Writekeys = {{.K, {.Ctrl}}}forkeys = {{.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_boardandtools/textcomparemeasure the emoji and the text.ui.chips,ui.ratingandui.strip_grid: no program used them. Thefidgetexample keepschipsandratingas its own widgets (examples/fidget/widgets.odin), which a program can copy.strip_gridandSTRIP_FADE_EMare gone.
Fixed
ui.taskno 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.clickclicks 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); withchange, what it sets counts as the user's change (an import).- Themes of your own in every program:
prefs_page.Themes_FileandOptions.themes_fileshow 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=falseleaves Roboto and Inconsolata out of the executable (244 KB), for a program that loads its fonts itself;font.FALLBACK_UI_DATAandfont.FALLBACK_MONO_DATAare then empty. prefs_page.standard_watchandstandard_apply: one call applies every standard setting to the toolkit (feel, zoom, density, rounding, motion, scrolling, toasts; the renderer's and the fonts' withStandard_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_makemakesnode_graph's nodes and links of a graph, andflow_palettethe add palette of its catalog.- Common settings for every program:
prefs_page.standard_registerregisters, 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.DATAis a font of the program's icons instead of the whole one (whatsnew: 10 KB instead of 917 KB).toolbox.lucide_subsetwrites it from the icons the program's sources and the toolkit's name, withtoolbox.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_pagesfills 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 fileproducts/<program>.jsonc(product, editions, prices, years of updates, mail templates);products/example.jsoncis the template.toolbox.licence_commands: thelicenceandpaddlecommands of a project's tool.licence keygenmakes the signing key pair outside any git work tree,licence issuesigns a licence by hand,licence verifychecks one,licence secretsdecrypts the licence Worker's secrets with sops into a file git ignores, andpaddlemakes 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. ItsStorekeeps 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_dialoggives the Open dialog of a licence file forui.file_dialog.
Changed
- Toasts are built at the end of every build: a program that never called
ui.toasts_buildshowed none, so a message said in its window (ui.announce) went nowhere.ui.toasts_buildis no longer public: remove its call. ui.dotwith 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.filereplacesOptions.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) givesodin_commandits defines,build_nativeits steps (the native libraries, the Lucide subset) and the notices their crates.build_nativereplacesbuild_native_text, andfeaturesreplacesProject.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:undostack.Text_Field.historyandText_Area.history(ui.Edit_History) replace theirundoandredoarrays;field_undo,area_undoand the keys work as before. ui.set_animationsandui.set_smooth_scroll: the user's word on motion goes over the system's;Build_Params.smooth_scrollis gone, set it withui.set_smooth_scroll.- The devtools endpoint is left out of release builds:
devtools.start_from_envreturns nil and none of the server is linked (350 KB less) unless the build has-define:TOOLKIT_DEVTOOLS=true; a-debugbuild 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 builddoes for the examples.
Fixed
fsx.make_dirssays whether the folder is there afterwards (one already there included), andtoolbox.build_c_libandrelease.package_use it: a second build of a C library no longer fails on its existing folder.update keygenwrites 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 withtoolbox.CRASH_LINKER_FLAGSand callstoolbox.crash_publish_symbolsafter each link to keep the map named by its build.gt:log: a program's log.tk_log.installgives acontext.loggerthat writescore:log's lines to<program>.login 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 throughtk_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 thatcrash.report_parsereads.crash.begin_sessionandcrash.end_sessionfind a session that was killed without a report, andcrash.last_reporttells 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_editopens the same menu as aui.line_edit's (Undo, Redo, Cut, Copy, Paste, Delete, Select all, their keys and icons, a search);menu = falseleaves it to the program.ui.field_menutakes aui.Edit_Target: aText_Fieldor aText_Area. - Export of the preferences:
config.export_json,config.export_tomlandconfig.export_iniwrite the user's changes, or every value withall = true, as a flat JSON object, TOML tables per group, or INI sections per group.config.export_ownwrites our own format, whichconfig.load_filereads back; it replacesconfig.serialize_user. Floats are written in the fewest digits that read back as the same value. - Advanced preferences:
Def.advancedmarks 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.hiddenstays for the program's state, which is no setting. ui.modal_sizedfits its content: apreferredheight 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 arePrompt_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: aface(raised, ghost, toggled),quiet(a secondary act),lit,wrap(its words on more lines),left(its content at its left),icon_color, a freeheightand atip; 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 withslider = true), a step, a format, a unit,disabledand 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 withui.feeland set withui.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.gammais inappearance, thenappearance.text).config.path_of(name)gives them,config.title_register(prefs, path, title, order)gives a group its heading and its place,config.group_titlereads it (else it is made from the last segment), andconfig.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) andtasks.Job(asks that merge);ui.task(s, work, done, data, lost)runsworkon the program's chores anddoneat the next build, and never touches a State destroyed meanwhile ([docs/tasks.md](docs/tasks.md)).toolbox.odin_check,toolbox.check_env:odin checkof a package for another system, Windows from Linux too (an Odin root whose wgpu has an empty Windows library).tk cion Linux checks every package ofsrc/for Windows, andrun_tests -check:windows_amd64checks every test package and program with its own defines: Windows code that does not compile fails the Linux job.toolbox.Logo.files:write_logoalso writes the logo at a size anywhere, such as the site's logo.toolbox.check_scopes: finds eachif !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_holdsandtoolbox.write_stampare 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 waylandruns 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_commandandtoolbox.notices_commandeach 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_darwinandproject_versionbuild, check and read the program from it.toolbox.tool_main: a project's tool is a list oftoolbox.Commands. It says the help, refuses an unknown command or a line a command does not take with exit code 2, joins the-name:valueflags that PowerShell splits, and works from the project's root, found by its mark.tkand 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_shifttimes as far (ten by default), as its wheel already did. - One dialog header, with its close button:
ui.dialog_header(id, title, opts) -> booltakes aui.Dialog_Header(its icon,close) and a block for its own controls; withclose, 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_beginandui.dialog_header_endare itsifform;ui.modal_cornerbuilds 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_msand then everyFeel.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_ofno longer repeats the groups, which a settings page shows as headings (network.http.max_connectionsreads "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/ ... andface = .Ghostreplace pushingaccent_button,danger_button,warn_buttonorghost_buttonaround a button. The tags stay the theme's names of those colours, derived from the intent (intent_tag). ui.buttonandui.icon_buttontake anintent(their colour), aface(Button_Face: raised, ghost, toggled),disabled,lit(drawn as under the pointer while its menu is open) and atip(a tooltip, read as their description);ui.icon_buttonalso anicon_fontand anamefor a screen reader (else its tip). A toggled button is held down and read as pressed.ui.range_sliderworks 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 astepand aformatof each value (it was always "%.0f-%.0f").gt:lucidenames every icon of the font (1876, were about 150 added by hand):lucide.odinis generated fromlucide.ttfbytk gen_lucide, each name the font's own. Two constants take the font's name:TRIANGLE_ALERTisALERT_TRIANGLE,SEND_HORIZONTALisSEND_HORIZONAL.tk releaseandrelease.shiptakepatch,minor,majoror 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.generategetsuser: the pages that a site check makes can depend on the project's own data.changelog.Options.user:Options.versionandOptions.set_versionget it as their last argument, so a project's tool can pass its project to them.release.Configholds atoolbox.Project: its name, repository, changelog, version line and program are the project's (Config{project = p, ...}).version_ofandversion_setare nowtoolbox.version_ofandtoolbox.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 isui.dialog_headerwithclose.- The constants
ui.Feelreplaces, andui.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 inplatformWHEEL_LINES_DEFAULT,TOUCH_FLING_STOP_SPEED,KEY_REPEAT_DEFAULT_RATE,KEY_REPEAT_DEFAULT_DELAY_MS; set the field ofui.Feelinstead (menu_item_emfor the menu's item height).ui.hovered_for(sig)takes no delay: every tooltip waitsFeel.tooltip_delay_ms.platform.touch_flingtakes no stop speed: it is the thread'sinput_defaults().fling_stop_speed. Def.category, thecategoryargument ofconfig.registerandconfig.category_title: a preference's name is the one source of its group. Useconfig.path_ofandconfig.group_title; a title registered withconfig.title_registerreplaces a category with words of its own.ui.stepper,ui.slider_field,ui.Slider_Field,ui.slider_field_destroy:ui.numberdoes what both did, and more (ui.number(id, &v, lo = 0, hi = 99); withslider = truefor 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): atasks.Jobonui.chores()does it, its result posted withui.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.buttonandui.icon_buttonkeep the text alignment they are given: anextor a style withtext_alignis 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 widertext_padwidens 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:captureopens 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_headerandui.choice_row:ui.dialog_headerputs a dialog's title and icon in a strip across its top, darker than its body.ui.choice_rowis 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.confirmshows its title in the header.ui.dialog_bodyandui.dialog_buttons: a dialog's body with its margins, and its row of buttons at its right end: withui.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_codedraws 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_icondoes: a Lucide glyph beside the words, in the soft colours of what the button does.ui.Empty_State.actionsis now a list ofui.Empty_Action(text,icon,intent).setup.Config.buttonis nowproc(id, label, glyph: string, intent: ui.Intent, em: f32, user: rawptr) -> bool;setup.Button_Kindis 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_graphdraws 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 forse-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_keyandfield_menutakeread_onlytoo.
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:noticeskeeps a log of what the user missed, andui.badgeshows 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.badgedraws 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.announcesays 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 preferencegeneral.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_drawtook 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^Colorincustom_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:imagewrites JPEG and WebP files:jpeg_encode(written in Odin, its colours not subsampled so a screenshot's text stays sharp) andwebp_encode(lossy or lossless, by libwebp loaded when first asked;webp_availablesays 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.supersays 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_BACKENDisnativeeverywhere but Windows (dwritethere), 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_origingives where the cells start (View.origin);Mouse_Input.padis nowpad_loandpad_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'sborderdefaults to the relief's own edge (a zero colour); a program's own relief takes the same colours fromrelief_shade_forandrelief_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 (radiusmax(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_placeplaces 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.ranktakes aversionof 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 avlist, 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_baris removed.
0.226.02026-11-12 18:23 UTCrelease
Added
gt:syntaxknows 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_filefindsDockerfileandMakefileby their whole name, andguessfinds 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.sliderfollows the wheel, not onlyui.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_dirfollows%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, withstateandcachefolders of their own). It replacesplatform.config_dir,desktop.xdg_data_home,desktop.xdg_config_homeanddesktop.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,QueryPointeron X11 andGetCursorPoson Windows;capture.pointer_from_bufferturns 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'scan_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_Wheelgets 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(andhue_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, andbutton_icon(..., intent = .Danger);button_icon(..., hue = ...)is soft unlesssolid.
Changed
- The intents' buttons are soft:
accent_button,danger_buttonandwarn_button, and the newsuccess_button,info_buttonandcancel_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), andhostwaits 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_mssays 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 inink_onof 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_paintdraws 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_iconwithwidth = 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_icontakes a width and an icon font:width = fill()shares the row asflex: 1does (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_fontdraws the glyph in another font thanState.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_devicecan 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.ordersays which). ui.slider_fieldfollows 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_opensearches by default (search = true): typing in an open context menu filters its items, as the menus that asked for it did. Passsearch = falsefor a menu of a few fixed choices.State.menu_icon_font: the font of the menus' icons when it is noticon_font(a program whose menus use Lucide setslucide_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_cornersandui.machined_plate_frame_cornerstake 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_failedtells a failed write once,user_writer_stopwrites 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'sshortcutproperty on Linux for the panels that show it. - prefs_page: the standard settings:
standard_registergives 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 areshortcuts.status_textandproblem_text).back_barandescape_leavesshow the settings in place of a program's main view, anddesktop.applymakes 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_regionlets 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_encodergives cwebp (the system's; libwebp's own build on Windows, fetched once and pinned),toolbox.webp_encodewrites a picture as WebP andtoolbox.image_widthreads a PNG's or a WebP's width.site.build_imagespublishes a WebP of the site as it is, with its narrower copies made from it, and takes its encoder inImages_Options.encoder(qualityis gone).
0.208.02026-11-12 13:53 UTCrelease
Added
- A site's pictures in WebP:
site.build_imagesturns the PNG screenshots of a built site into WebP at their own width and at narrower ones (cwebp), gives each<img>asrcsetof 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.dataand.mime: PNG, JPEG, BMP, or a Windows DIB asimage/x-dib), whichplatform.clipboard_image_decodeturns 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:h264encodes with NVENC: on a system with NVIDIA's driver (520 or later), Linux or Windows,opentakes the GPU's encoder through NVENC first (Backend.Nvenc, one ofHARDWARE_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.titlegives 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;availablesays 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.multipartandhttp.form_urlencodedbuild the bodies of forms, a file upload included.gt:capturestreams, for screen recorders:capture.stream_openkeeps the capture of an output, a window or a region of the desktop open, andstream_nextgives a frame each time it changed, at most at the rate asked, with its timestamp, the pointer drawn in where the system can (Wayland'sext_image_copy_capture_v1andzwlr_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_extrawrites keys of the program's own into its.desktopfile, such as the protocols KWin gives it (X-KDE-Wayland-Interfaces). - Restore a whole page of settings: a settings page built by
gt:prefs_pageshows 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: thetEXtchunks 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/thumbnailsand the thumbnailers of the desktop (made on a miss, kept in the cache, failures remembered), on Windows the shell's (IShellItemImageFactory).thumbnail_cachedreads the cache only;thumbnail_storekeeps 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:captureasked 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:qrreads QR Codes too:decode_rgbaanddecode_grayfind a code in a picture (any scale, turned by quarter turns, dark on light or light on dark) and return its data;decode_modulesreads 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 laterpoll_eventsas aClipboard_Dataevent (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_editand a menu's search ask the window's clipboard withplatform.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_pasteandui.field_menutake the key of the field's widget (owner).ui.window_clipboard_getis removed: leaveBuild_Params.clipboard_getnil to paste from the window's clipboard; a program's ownclipboard_getis read at the request and its text given in the next build. A program that reads the window's events before the ui passes theClipboard_Dataevents on tobegin_build.
Fixed
- Shift+Insert pastes in a multi-line text too: a
ui.text_areatook 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_keyfor 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 bysyntax, and inline emphasis, code and links, each block a selectableui.rich_paragraph. ADocthe 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; aConfiggives 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 newdiff_added/diff_removed/diffcolours 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.captureon 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 withcore:simd, the same bytes as the scalar loops.
Changed
ui.rankfolds a list once: acache(aui.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 nowui.rank_palette(the default) andui.rank_fuzzy, in the place ofpalette_matchandfuzzy_match; a program's own matcher gets the query folded and folds its texts in the cache.palette_entry_cachedtakes the first of its three slots.- The fuzzy matching folds once:
ui.fuzzy_needle,ui.fuzzy_textandui.palette_entryfold a query and a text once, andfuzzy_find,fuzzy_score,fuzzy_words,fuzzy_typosandpalette_matchtake them as well as strings, with the same results. Aui.Fuzzy_Cachekeeps 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 linecli.checkaccepted by the same table of options, once: each option given, in order, with its value (a separate value joined to it).cli.valuegives the last value of an option,cli.valuesevery value of a repeated one,cli.haswhether it was given.ui.rank: filters a list the way the palette does: each item matched against the query (palette_match,fuzzy_matchor 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") andlocal_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>valuelines, 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. AWriterdoes the same for a file the program formats itself.fsx.write_atomicandfsx.write_partstakeprivate: on POSIX the file is readable by its user only from its creation.
Changed
- Preferences can be written off the interface thread:
config.serialize_userbuilds the text of the user's file on the loop andconfig.write_user_filewrites it on any thread, so a slow disk does not stop the interface;config.save_userdoes both at once, as before.Prefs.user_versionreplacesPrefs.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
vlistmakes 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.vlisttakes anids_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_clickedtells the app that the click came and where.platform.show_system_menustill opens the system's menu, andplatform.system_menu_availabletells 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 bytype_to_fieldgets 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_statedrew 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_clipboardandset_clipboardgiven 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: itsbg(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 withenter_confirms) and its button says "(Enter)"; it answers.Confirmedor.Cancelled. Its own words are inConfirm_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
searchis edited with a field's keys (ui.field_key, whichline_edituses 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'smatch_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_radiusgives a custom draw the corners a box is drawn with.
0.196.12026-11-11 23:48 UTCrelease
Changed
flateandpng.decodeare faster:flate.deflatetakes a quarter to a third less time andflate.inflategives 1.3 to 2 times its rate, for the same bytes.png.decodeof an 8-bit RGBA picture takes less than half its time.render.readback_pollof 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_pollof 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.encodeandflate.deflateare faster:.Smallwrites a 1400 x 925 screenshot in about 30 ms where it took about 95 ms, andflate.deflatetakes 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.highlightin the cells, in the theme'smatchonmatch_bg;table_applysets 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 inTable_Menu_Labels.
Fixed
- A table read again stays where it was scrolled:
table_applybrought 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.windowednames it, and the program opens the window and builds the panel there;dock_addbrings it back when the window closes.
0.191.12026-11-11 20:50 UTCrelease
Fixed
- A
strip_gridline 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), afill()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'sset_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_Optionsbuilds 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.unsortedmarks 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.checkanswers--helpwith the help made from the table and--versionwith 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_cellwithbg), 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
destroywaited for them, used or not: every test session paid them, and on WARP the slowest CI packages spent most of their time there (subpixel_slugandscenarios: 48 s to 30 s on a GPU). A window's renderer still pre-warms: its start hides the compiles.TOOLKIT_WGPU_PREWARMis 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.runkeeps its name inbuild/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_fragmentwith 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.notesandrelease.shipfind a changelog namedCHANGELOG.mdwithout 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 inchangelog.d/, as the toolkit's own.release.shipnow 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_releaseandrelease.changelog_sectionare gone:changelog.assembleandchangelog.sectionreplace 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_peekorcommand_pressedwhile 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_applyto 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,noneintable_sort_text), not the table's first sort;Table_Layout.default_sortanddefault_descendingare gone.Table.order(the rows shown) isTable.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 darkGTK_THEMEor 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.previewfits 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 withset_integrated_titleat any time;ui.window_buttonsdraws nothing while the title bar is the system's. The test sessions takeintegrated_title. - The edged finish and the Console theme:
Finish.Edgeddraws 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) andrelief_face.
Fixed
- A renderer that ends waits for the GPU:
render.destroylets 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 askedfont.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_facesis nowset_family(it serves every widget, not rich text alone), andState.rich_facesisfamilies. fsx.read_allnever 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
matchcolour on itsmatch_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.tagsandui.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_commandsgives 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_commandsgives one command per preference the pages show (its title, underSettings · <page>), andprefs_page.showopens 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,separatorbetween 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.rectanddraw.rect_cornerstake thebackdropa 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.previewandui.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.guessfinds Odin written asproc 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 byhostfor 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 forrich_paragraph) andui.code_highlight(atext_edit's highlight) colour tk_syntax's classes with the theme's new entriescode_keyword,code_string,code_comment,code_funcandcode_type. APalettecarries 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 whosesignsand 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 callsui.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_sizedwith its corner's grip,PALETTE_WIDTH_EMbyPALETTE_HEIGHT_EMat first, its size the program's to keep; a command'siconbefore its label. A table narrower than its columns scrolls sideways (table_min_width,table_scroll_sync;table_builddoes it);Size.leastis 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_editopens 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_itemtakesicon_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_mermaidmoves them half that padding in.
0.169.02026-11-10 23:14 UTCrelease
Fixed
- A Mermaid gantt chart in
dateFormat Xorx(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_mermaidgives it the chart with its dates written asYYYY-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_ofandsyntax.language_of_filefold a file's extension by ASCII (ascii.lower), as the toolkit's rule wants for names (unicode_casefailed on them). The test of the launcher's activation token builds with-veton 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);findlooks entries up by name.
0.167.02026-11-10 22:35 UTCrelease
Fixed
testkit/unwatchedbuilds with-vetoff Windows: its Windows code and imports are inunwatched_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_envandplatform.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_Languageissyntax.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(wastests/unwatched, the toolkit's own): a test's body on a thread the runner ofcore:testingdoes 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.runnow also does the body'stesting.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_shotspictures 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_KEYbeside 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.leftoversays 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, besideaccent_buttonanddanger_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_fieldtakes 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_fieldno 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.zebraand.rules(every second row shaded, a hairline under each),list_row'stint,table_cell'sborder(a busy cell's outline);animations_onandkeep_animatingfor a program's own motion.
0.158.02026-11-10 19:02 UTCrelease
Added
ui.table_celltakesfg, the colour of its text, besidebg: 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_parsereads "pointer" or "focus".
0.156.02026-11-10 17:13 UTCrelease
Fixed
prefs_page: a slider dragged and let go keeps its value.ui.slidermoves 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 (apaint.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 thosesvg.draw_docdraws; its texts are filled from the outlines of the program's faces.
0.152.02026-11-10 15:55 UTCrelease
Fixed
desktop.watch_starton 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_gofailed 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
setupdialog: 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
svgandmermaidpackages (docs/diagrams.md).svg.parsereads 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) andsvg.draw_docdraws it with the toolkit's paths and fonts, at any scale.mermaid.diagramlays 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=falsefor a program that buildsgt_mermaidinto 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_placementbrings 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.updaterandupdate_prefshow 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_wordssays a state in a sentence.
0.145.12026-11-10 13:28 UTCrelease
Fixed
toolbox.update_command keygenwrites 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 inupdate.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: theupdatecommand of a project's tool (keygen, pubkey, the signed manifest of a release, verify), for its product;toolbox.update_manifestfor a release step.
0.144.02026-11-10 13:05 UTCrelease
Added
ui.line_edit'sreveal: 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.icoof its Windows executable (PNG entries, or DIBs below a size), the project's picture (.project/image.png).toolbox.version_headerandwrite_version_header: the C header (VER_MAJOR,VER_MINOR,VER_PATCH,VER_STRING) a Windows executable's.rcincludes 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_recordingsays 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 byhotkey_parseandhotkey_text, registered on Windows (VkKeyScanW), sent on Wayland (its keysymU00F9,keysym_of).platform.Event.char: aKey_Pressof a key Key does not name comes with the character it types with no modifier (Windows, Wayland).ui.key_takegives aplatform.Hotkey.prefs_page:Options.hotkeysnames the preferences that hold a key combination (recorded, not typed);Options.problemshows what the program says under a line.
setup.updateand 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 aninstall_folderthat 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_recordedreads 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), whatevericon_fontthe program sets: with Lucide as its icon font, a check was a letter "V".
0.141.02026-11-10 10:36 UTCrelease
Added
Toolkit.clicktakes CDP'smodifiers(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 saysStartupWMClass=<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 asset_priority;Cpu_Setwithcpu_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.palettekeeps 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_prioritylists 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).releasepackage: 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.segmentedtips: 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_buildand 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_cellandTable_Layoutfor 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 beforepidfd_send_signal, and the nice value is set on every thread (other systems:.Unsupported).dbus.call/call_asyncinteractive: 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'sflush: 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.splitteroptionsfillandline_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_resampleis nowplatform.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.interfaceicon-theme);file_iconreads 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_forgetasks the theme again);file_icon_keyreads 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_terminalquotes a drive's root and shows no dialog when Windows Terminal is missing,$TERMINALmay hold arguments.ui.hlinein 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_pageshows 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_ofgives a key's xkb name. See docs/platform.md.
0.134.02026-11-09 21:28 UTCrelease
Added
checkboxandradiotakewrap: 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 readsPreferred DropEffect= move. Linux also offersx-special/gnome-copied-files(copyorcut, 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.postto the State of the dialog's last frame).setup.dialogis 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.stalelets the program ask for it too. Config.choices: the program's own options of an install, shown as boxes;Config.preparereceives 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 withdesktop.check_install_dir).- Uninstall asks for a second click. A newer installed copy is named as such (
is_downgrade: "Go back to <version>").
- 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 (
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) andConfig.closelet 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:desktophas aDesktop_Shortcutpart there (a copy of the entry inxdg_desktop_dir, executable; another program's file stays). Thesetuppackage 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 byConfig.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>.combeside a program of the Windows subsystem, whichdesktop.installwrites 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
qrandui.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_codedraws 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 asNotification_Click,Notification_ActionandNotification_Closedevents of the window. Linux: org.freedesktop.Notifications (desktop-entry, urgency and image-data hints; an ActivationToken letsraise_windowbring 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(defaultSLUG_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 optionaldone(user)runs when the last reference goes;winrt.typed_event_handler_iidandSIG_INSPECTABLEgive the IDs ofTypedEventHandler<S, T>. A program that passes a callback of its own toevent_handler_makechanges its signature toproc(user, sender, args: rawptr)(Papier's clipboard history does).platform.tray_notifyon Linux shows its notification through the code ofnotify: 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_textreads 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
winrtand 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),awaitfor anIAsyncOperation<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 aHotkeyevent with its id. Windows:RegisterHotKey; Linux has none (the compositor binds shortcuts to commands). See docs/platform.md.prefs_page: a page ofOptions.pageswith no preference in the registry is not shown (a program that registers some preferences on one system only).platform.uri_list_to_pathson Windows:file:///C:/xreads asC:/x, not/C:/x.
0.123.02026-11-09 16:05 UTCrelease
Fixed
config.save_usermakes 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_autoworks 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_Memoryholdspartsandnext(swapped, not copied),Damage_Spanis nowDamage_Part,Damage_Auto_Statshasparts(wasspans),ms,px_drawnandpx_window, andDamage_Whole.Offscreenis nowPlane. 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'sresize_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 havesquare_corners(ui.Corners) for this;ui.paint_rect_corners,ui.box_radiiandui.radii_grownare new. ui.theme_showtakes 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 bumpsTheme.serial.
Fixed
Toolkit.metrics:damagecounts the pixels of the served window (from itsui.State), not those of the window the shared renderer drew last.draw.offscreen_beginno 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.minimizebefore the firstshow_window(or while hidden) is asked at the show, once the toplevel's first configure came, asset_maximizedandset_fullscreenare. 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.listremoves associations only for its level and the ones after it (a system list no longer removes what the user added),<desktop>-mimeapps.listgives 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 underapplications/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_expandrefuses anExecline the Desktop Entry specification refuses: a field code in a quoted argument (sh -c "viewer %f"let a file name such asa;rm -rf ~.txtrun as shell code), an unknown code,%F%U%iinside an argument, two file codes. It returnsok;exec_argumentsreturnsExec_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 itsconfigregistry, 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.customgives a preference a control of the program's own;theme_cardsshows the themes as cards in their own colours.Options.changedruns 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 whosehttp://andhttps://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(orHost.partial_redrawinhost) 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_autowithdraw.damage_span_begin/damage_span_endcompares a digest of what each span draws (draw.Damage_Memory,damage_volatile,damage_whole,ui.damage_stats);render.texture_versionandrender.damage_buildingare 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.glowsets its halos. It draws up toMACHINED_OVERFLOW_PXoutside 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_showapplies a theme, a mode (system, dark, light) and a finish, and follows the system;theme_recolormoves a program's own colours to the theme shown;themes_readreads a user's themes.NAMED_PALETTES,palette_namedand thePALETTE_*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). Alsodesktop.exec_arguments,desktop.exec_expandandplatform.launch_detached(Linux).
0.114.22026-11-09 11:26 UTCrelease
Fixed
- A window never shown is in no task bar (Wayland):
open_windowmakes a surface with no role, and the toplevel is made at the firstshow_window. A program that starts hidden in the notification area was listed in the task bars that show every toplevel (ShojiWM).set_maximizedandset_fullscreenasked 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_groupis Linux's only (#+build linux: a file name that ends in_testgives 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 tagbare: 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 underbaredraws 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_testsuses them.
0.112.02026-11-09 09:31 UTCrelease
Added
platform.raise_window(Wayland): asks the focus throughxdg_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):
GetAllof the StatusNotifierItem includesIconPixmap. 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_desktopchecks 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_waitended at once and a window drew frames for ever (60 a second; a core for a hidden one).host_framenow takes the request (its frame answers it), and a hidden window's request ends no wait.tests/linux_desktopchecks that no frame is due at rest.
0.111.02026-11-09 02:43 UTCrelease
Added
desktop: theAutostartpart: the program starts with the user's session (Options.autostart, withautostart_arguments:--hiddenfor 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 underHKCU\...\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_testsbuilds 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_windowno 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 ofwp_fifo_v1that 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 withshow_windowin 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_againcounts the shows after a hide;host_framethen 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 byui.
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
pngpackage: 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 andflate.deflate;.Fast: Sub andflate.deflate_runs),png.decodereads any PNG (every colour type, bit depth, palette,tRNS; 16 bits rounded to 8) as straight RGBA8,png.rgba8_ofconverts anycore:imagepicture.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 ofdevtools,testkit/session's pictures, the CBDT emoji offontand the Windows clipboard use thepngpackage.devtools.png_encodeis removed:png.encode(rgba, w, h, .Fast)writes the same file. The Windows clipboard no longer linksvendor:stb/image, andplatform.png_encodewrites at.Fast(a 1400 x 925 picture in 2 ms rather than 90).
Removed
platform.png_encode_hookandplatform.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_imageread nothing unless the application had set a PNG hook, so an image copied by a screenshot tool, a browser's Copy image orwl-copy --type image/pngdid not paste. It is read now on Wayland and X11 through the toolkit's PNG codec, and an offer ofimage/jpegorimage/bmpalone is read too;clipboard_formatssays.Imagefor them.clipboard_get_filesalso reads GNOME Files'x-special/gnome-copied-fileswhen there is notext/uri-list. The tray's PNG icon is decoded the same way. tk desktop_testsleaves 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 totk. 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_windowsstops 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_fadedraws the mask of apush_maskthat 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.axesreads a face's axes from itsfvartable, andfont.with_variationsmakes 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 infont-weight: 400whose 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 inDOCS_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_pageandversion_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'schangelog/#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 fromdocs/_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_linkschecks a built site's links without a browser;site.checkalso checks the documentation pages at 390 px. Wren's documentation generator moved here; the toolkit's Docs section uses it.
Changed
site.render_markdownreplacesmarkdown_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
toolboxpackage (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_codeandsucceeded(a Windows exit code read as the program's signed 32-bit code),sha256_hexandsha256_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_idandsystem_program.tools/tkuses it; its own copies of these procedures are gone.paintpackage (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) andstroke/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_encodewith PNG or DIB entries (dib_encode).tk make_logoandtk make_icondraw with it on Windows and Linux; GDI+ and tools/tk/gdiplus_windows.odin are gone.desktoppackage (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'sIdentity; every place is an injectable root. Moved from Wren and made generic.processpackage (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 ofdocs/as a "Docs" section of the website, with its own Markdown to HTML converter (tools/tk/site_docs.odin). The Pages workflow runs it.cdpandsitepackages (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_checkchecks 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_shotsreads 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 oftools/tk, on Windows and Linux:build(an example;build.batand./build.share 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_texton 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(packagetk_update): signed updates of a program, from Wren and opencode native. AProduct(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).placeputs 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_leftoverscleans up at the next start, andmanifest_of,manifest_bytesandsignare 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 releasepublishes 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_systemandfont.has_system_familygive "Courier New" the installed font the configuration binds to it (Liberation Mono, by 30-metric-aliases.conf), andmonospace,serif,sans-serifand 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 (withGH_TOKENorGITHUB_TOKENwhen 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 inrun_tests(tk_tool).
0.98.22026-11-08 06:25 UTCrelease
Fixed
platform.custom_cursor_infoon 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_FRAMESframes in a row that used less than1/render.SHRINK_RATIOof 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 toui.lazy_begin(sweep = ...)(waslazy_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_progresssays how far it is, andfind_countwhilefind_pendingis 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.luminanceandui.contrast(WCAG's ratio),ui.to_oklch/ui.from_oklchfor linear colours, andui.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), eachui.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 byui.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, hooksstillandafter_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.Reorderandui.reorder_frameare 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^Reorderand 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.heldis 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. Writeui.dock_held(&app.dock)whereapp.dock.heldwas 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_initunder_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
.Selectablelabel in it selected nothing, showed no text cursor, and a label made.Clickableto get the press counted as a button. The panel is now.Press_Stop(newBox_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_polygontakes several contours: a point pastrender.POLYGON_BREAKends 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), withpath_containsfor hit tests,path_bounds,bezier_cubic_at,bezier_quad_atanddraw.bezier.draw.line,draw.polyline: a line of any angle, with round ends and antialiased edges.
Changed
render.release_targetstakes 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.clickedstays true for Enter, Space and a screen reader too.platform.cancel_close: takes back a Close the app answered by staying open:is_closedno 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_framecalls 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, theui.Stateit 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.pressedstays true for Enter, Space and a screen reader too.ui.sliderand the colour pickers read it: Enter on them no longer set the value from wherever the pointer was.
Changed
ui.Reorderholds the press that drags (held) in place ofactive: a release and a press read in one frame end the drag, as does the box held going away. Readreorder_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.
openturns false one build later than it did. ui.Autoscrollsays where a session is in one field,phase(Autoscroll_Phase:Off,Holding,Latched), in place ofactive,heldandlatched; every end zeroes it, with the box it scrolls (box).State.auto_boxandState.auto_pressedare gone.draw.open_plane_frame:ok = falsefor a plane being recorded, which draws nothing (Open_Plane.modereplaceshit).- A capture of a frame WebGPU could not get (a hidden window's surface) says
Failed: it stayedPending. - 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 ofDOMhave one client: another'sPage.startScreencast, itsToolkit.*Recording,DOM.undo/redo/requestChildNodesand 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: anOwnersays where it is (None,Claimed,Serving,Closing) inOwner.state, which replacesOwner.closing. A secondowner_startanswers 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.configlayers:Entry.lockedis gone,is_lockedreads the layer, and an observer sees a policy value locked..Defaultno longer goes over a layer,resetunder a policy changes nothing,load_filewants the tag of the layer it reads (POLICY_MAGICfor.Policy),registeranswers how many waiting values it refused, a user's value that its definition refuses stays in the profile, anddirtycounts a change under a higher layer and no longer a file just read.restoresurvives an observer that registers.- A dialog gives the focus back: what had the focus when
ui.modalopened has it again when it closes, unless something else took it meanwhile.
Removed
render.Pacer.latency:Present_State.max_latencysays 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:advancein a build ends the test (it hung to the test's limit),draw_contexton an attached session says so,Session.damageis the next frame's only, and the guard against two tests at once is atomic.ui.a11y_treeis 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_destroyleaves 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.shownis 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_arealasts one build, whethertoasts_buildran or not. - Docks: two requests in one frame are both done, and the stack's menu of a closed panel closes.
vlist:vlist_scroll_toon 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.listandvlist: rows gone from under the active row saychanged; no row is nothing to reveal (revealstayed armed); a row selected before the first build comes into view with no other frame asked for.ui.text_edit_caret_rectsaysfalseonce 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_editis solid after an arrow key, as atext_edit's is: it could stay in the off half of its blink. - Undo in
line_editandtext_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 ofmodal_sized), sets arange_sliderfrom the pointer, or moves the caret of aline_editor atext_editto 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 saystoggled. 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.platformon 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,
XdndSelectionis 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'sclipboard_changedreads the system's clipboard with an offscreen window open. platformon 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.platformon 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_placementrestores a maximized window on every backend and applies at once on a shown Windows window, an offscreenset_fullscreen(false)leaves another state alone,toggle_maximizeleaves 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_stateisOffuntil 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
filteris the user's choice, a lost bus isFailedand notCancelled.idle_inhibitends 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, soNotify_Clickcan 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 saysDrop_Leave, no event of kindNone. A drag script is used up howeverdrag_startends.drop_injectof anything butDrop_Enterneeds a drag over the window. platformon Linux:set_cursorto 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'sscaleis 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 noMouse_Leaveunder a press, as a capture on Windows; a key held when the focus goes makes itsKey_Release.Activatecomes once for a change, and a window is neitherfocusednoractiveuntil 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), andw.eventsmay then move.platform:wait_eventsees 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; afterinput_pending, what it kept.platformon 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 everyopen_window, and a server that goes away closes its windows (Display_Link) instead of leaving a loop that never hears of it.platformon 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 saysrepeat. On X11 and Wayland a key keeps its name whatever it types: Shift+1 isN1, Shift+Tab isTab, the keypad without Num Lock isHome,Left...- Focus keys: an arrow and a Tab read in one frame both move the focus, and
ui.focus_stepsays its direction (ui.tab_direction): a rich paragraph entered backward that way starts at its last link. Signal.modsfollowsKey_ReleaseandMouse_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 ofend_build;end_buildends the build that is open, whateveruseselected since, and asserts that there is one;ui.destroyin the middle of a build leaves none open on the thread.end_buildalso 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_boxends a drag, and a press on a button between two presses on a text breaks their double click. ui.nextandui.a11ybefore what builds nothing (a closedmodal,modal_sized,ctx_menuormenu_nested, a skippedlazy_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.
splitterandpane_splitsayfinishedwhen their box is back. ui.set_post_wake: the app's wake is called with aniluser too, and anilwake 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_configureruns 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_outlineandslug_glyphsanswer 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, andvblank_gridsays unknown once the compositor stops answering (Direct3D 11 too).gpu_msstarts over with a new device. draw: a mask layer with no target of its own draws nothing (its drawing landed in the content);Open_Layersays what it is and what a mask draws in withLayer_KindandMask_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 secondend_framedoes nothing (it drew the frame twice).render.canvas_read_readyandcanvas_read_finishon 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_opaqueon a source texture no longer outlives it. - A texture a recovery could not make again:
Texture_Kind.Failed, it draws nothing,texture_sizesays{0, 0}anddestroy_texturefrees its slot. A frame crashed on one (Direct3D 11), and its slot was lost. render.set_fixed_surfacesurvives 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_pollsaysFailedfor a read-back whose frame did not run, which stayedPendingfor 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_glyphsandcolor_enginereach 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_begintries again, where it drew into nothing and the next clear crashed. A swap chain thatResizeBuffersfinds 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_destroyof 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, andsurface_destroyfrees 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.deadandState.generationare gone: an unloaded slot isFont_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.devtoolsinput and recordings: twoToolkit.clickof one batch are two clicks; a drag cut byToolkit.stopRecordinggets itsup, a second button no longer breaks a recorded drag, and a right drag replays as one (downandupoftools/cdp.mjstake--button right).CSS.setStyleTextsdoes 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.devtoolsconnections: a connection that sends no request is closed after 5 seconds, an upgrade needsUpgrade: websocketand version 13, and a frame RFC 6455 does not allow ends the connection instead of being glued to the message under way.instanceon Linux:acquireandsendnever 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_usergoes throughfsx.write_atomic, flushed: a save that fails never removes the profile, and leaves no temporary file.fsx:write_atomicwrites through a temporary file of its own,<path>.<pid>.<thread>.tmp, so two writers can no longer tear a file;replacewithdurableanswers false when the directory could not be synced;read_allno longer returns a replaced file cut to the old size.dbus: connecting cannot hang the window's thread.connect, the SASL answer andHelloeach have a limit of 5 seconds, and a signal no longer fails the authentication.dbus: a lost bus closes its socket.conn_fdanswers -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 thecall_asynchandlers that wait at the nextdispatch, andplatformfalls back as with no bus. A handler of an expired call that calls no longer panics, serial 0 is never used, andconn_closefrom 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_finishsaidTruncated, and a later push went on from where it stopped), and nothing is written afterdeflate_finish(it wrote past the end of the stream).ui.find: a sweep left waiting when its page went away keptneeds_frametrue 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 atend_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_skipnever 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.startScreencaston a window served with noui.Stateis 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_textsays what the system does,render.text_subpixel_supportedwhat 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.Backand.Forwardon Windows, X11 and Wayland,ui.mouse_pressed(.Back), andbackandforwardover 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_hzabove 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.modalstays 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_frameplanned with none), andCadence.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_frameno longer sleeps through a frame's slot: input is taken as it arrives (time-stamped, kept for the nextpoll_events), a key or a button ends the wait, a pointer that moves and the wheel do not.wait_handlehasuntil_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_framewaits for the frame's slot, after the swap chain and only what is left of it:Frame_Decision.wait_nswas 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_endcomes 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_textandui.num_step_deltado it on a string and a key press.ui.color_picker: a colour picker for aui.Color_Pickthe 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()andoklch()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_pickertakeshorizontal;sat_val_picker,hue_pickerandalpha_pickertake 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'spane_strip background(by default the bars' surface) and the theme'shover_fillover it, and its chevron is larger (PANE_CHEVRON_EM1.4, alsopane_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 sizenextgives 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 toTOOLTIP_MAX_WIDTH_EMand wraps past it, andtooltipgoes 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). Testsdocking 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)andui.wheel_consumed(): the wheel over an open menu is the menu's:menu_atsays 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_consumedsays 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 (testkeyboard menu_takes_the_wheel_over_it).
0.75.02026-11-04 05:02 UTCrelease
Changed
- Slug glyph data built in half the time:
slug_buildsorts the curves of an axis once (oneu64key 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 (testslug 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_preparemakes 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 longerbase'sascii_*: a package namedbase, whichfont,devtools,platformandconfignow 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_upperandequal_foldof Odin dev-2026-11 fold by Unicode (the Kelvin sign U+212A iskto them, the long s U+017Fs), where names and protocols want ASCII. New inbase(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\u017Ftno 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\u017Fno 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. Linttests/unicode_case(a step ofrun_tests): a call ofstrings.to_lower/to_upper/equal_foldorunicode.to_lower/to_upperin the toolkit's sources fails unlesstools/unicode_case_allowed.txtlists 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'sui.Dock, flat data: a tree of nodes in one#soaarray (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'su32ids) 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_endbuild 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 arepane_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 entriesdock_previewanddock_marker. Exampleexamples/docking; teststests/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.usekeeps the caller's state on purpose),core:compress/deflatechecksflate's streams in the tests anddocs/flate.mdcompares both (flatestays for streams anddeflate_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. Testsmenu_taller_than_the_window_scrolls,menu_near_the_bottom_flips_or_shifts
Changed
- Menus are dense:
MENU_ITEM_EMis 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 atDENSITY_COMPACT, 34 px atDENSITY_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. Testmenu_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 aPaneper split (sizes per orientation, folded, place) and saves it throughPane_Options.on_save;pane_format/pane_parsemake it a line of text;menu_move_tolists "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/panesuses them. Teststests/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_rectsgives where they are;draw.trianglefills 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'sgt_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 ofwhenblocks and the procedures'@(static)ones too) is intools/globals_allowed.txtwith 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)isthread). It reads the sources next to it, not from the working directory;-define:GLOBALS_WRITE=truerewrites 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 ascanvas_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 andframe_end'svsync; both backends take it from there (wgpu'sImmediateorFifo).render/present_test.odin: tearing only where allowed and never with a wait, the interval clamped to DXGI's limit,vsync = falseat once.platform.file_dialog_call(Windows): what the Common Item Dialog is told for aFile_Dialog(options set and cleared, the type list and the line selected, file name, default extension, the GUID ofremember_id, the folder and whether it is forced), computed apart from the dialog;DIALOG_OPEN,DIALOG_SAVE,DIALOG_FOLDERname the kinds ofdialog_test_hook.tests/dialogschecks 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_runuses them. Every lock of the toolkit, what it guards and what was measured: docs/locks.md;tools/text_bench -threadstimes the locked paths.
Changed
ui.set_window_button_namestranslates the caption buttons of the current State only (each window'sui.Statehas its own names, English by default): call it after eachui.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_enableanddrag_startno longer callOleInitializeeach 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
uiproc on a thread with no State (noinit,useorbegin_buildthere) stops at once withui.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.odinchecks it on made-up timestamps;tests/gpufxchecksset_gpu_timing: off nothing is measured, on each submit is timed andgpu_resultnames 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/shadersbuilds 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 ownsPRIMARY.
Fixed
- render, flate: no global raced on. A second window's swap chain is sized by an argument of
create_swapchaininstead 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_tickasks 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:ci1from PowerShell selected no step: PowerShell 7 hands a-name:valuetyped after--to the program as-name:andvalue(odin passes on what it gets; from cmd or bash the flag arrives whole).tools/cmdlinejoins them again, forrun_tests,changelogandtk; the docs sayodin runagain 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
donelike the rest (the caret moved at once, the Backspace presses went out before thedone). The composition isplatform.Ime_Compose(ime_compose_preedit/_commit/_delete/_done/_reset, pure), the caret's rectangle in the compositor's unitsime_cursor_rect_logical(at least one unit high);tests/imefeeds them the protocol's events. - Tray menus (Windows): the default item of a menu is shown in bold (
AppendMenuWignoredMF_DEFAULT: it is set withSetMenuDefaultItem).platform.tray_menu_buildmakes the native menu of a model without showing it;tests/trayreads it back withGetMenuItemInfoW(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 (whatbegin_buildselects 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 nextrender.init/init_window/init_offscreenthat 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_devicelets 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_TRACEsays 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.statesays 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_msandwake_dueincluded.Build_Params.time_msstays for one build.testkit/session: an@(test)procedure makes an application with no window of the system on the offscreen renderer, sends input throughplatform.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);attachdrives an application that makes its own frames.
Changed
tools/changelogis an Odin program, tested bytests/changelog, in place oftools/changelog.ps1andtools/changelog_test.ps1;-Migrate(for an "## Unreleased" this repository does not have) is gone.- The tests are Odin:
odin run tools/run_testsruns 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 oftools/test_windowless.ps1,tools/test_backends.ps1and the test part oftools/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.mjsistests/examples/whatsnew_test.odin, in the test's process. Guide:docs/testing.md. tests/examples:examples/fidgetandexamples/todoare 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.ps1are gone, so is fidget's--state_title); the examples haveopenandclose, 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_setgives the screenmonitor_sizeanddisplay_infoanswer for them (no more{0, 0}),platform.set_offscreen_activetheir 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_editandtext_editwakes 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_clipboardgave nothing andset_clipboarddid nothing, whileclipboard_setkept 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 whateverBuild_Params.time_mssaid; 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_colorandfont.color_glyph_rgbawork there. - Fractional scaling on Wayland:
wp_fractional_scale_v1withwp_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_v1is missing, and the cursor is sent again on each pointer enter.platform.cursor_on_screensays what shows. tools/doc_check.mjs, run by the CI: the files, flags, defines and package names the documentation cites must exist.tools/release.ps1retakes 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 ofexamples/whatsnewin every palette, with no window;--palette=<name>on that example.
Fixed
- Command line arguments keep every character on Windows:
os.argscame through the C runtime's ANSI code page ("Łódź" became "L\xf3dz", "Привет" "??????"), in paths and passwords too. Any program that importsplatformnow 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 strongerfind_matchandfind_currentbackgrounds: 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_heightandrich_paragraph(line_height = ...): every line of a paragraph the same height, on a baseline from its base font, whatever other faces it holds (CSSline-height). Inline code no longer has to push a line apart.
0.59.02026-11-01 09:03 UTCrelease
Added
draw.image_coveranddraw.cover_src: an image that fills a box cropped rather than distorted (CSSobject-fit: cover).examples/effectsuses 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_revealshows one for a moment when something else scrolls it (the keyboard);ui.scrollbar_opacitysays how much it shows. Off by default.
Changed
tools/screenshots.mjsreplacestools/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 refreshessite/img.fidget,todo,transformsandeffectsanswer toTOOLKIT_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.undoandDOM.redogo over the edits of styles, texts, removed boxes andaria-label, from mark to mark.devtools:aria-labelcan 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_dragandText_Edit_Draw.bar_hotare aui.Text_Scrollbar, not a number.Field_SnapshotandText_Snapshotare 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, fromui.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;--benchofeffectsandtransformskeeps the ordinary swap chain its published figures are of).examples/hello, which a new program copies, has the three lines anddocs/getting-started.mdexplains them;tests/resize_probechecks 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_rawandrender.capture_raw_finish: the two halves ofcapture_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.verifycompares 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=trueruns that proof on a program that marks nothing.draw.destroyleaves the context empty:draw.initon 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: aversiongiven again for shorter runs, or two contents with one hash, lays the runs out again instead of indexing past them.ui.destroyafterplatform.destroy_windowno longer writes to the freed window, and a post no longer wakes it: the State forgets a window when it is destroyed..Hot_Withinsees as far up the tree ashot_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_startcannot 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_pathandreveal_in_folderleave no zombie process. - Linux, Wayland: only a window made a drop target with
drop_target_enabletakes a drop, as its answer indrop_set_effectsays;drag_startshows 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_rectandclient_originread 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_changedsees any program taking the clipboard, through XFIXES. - Linux, X11:
display_infogives 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_startshows its picture (Drag_Image), carries the formats of the app's own (Drag_Data.custom) and followsXdndProxy. - 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 byToolkit.axActionis recorded, as apressline 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.getDocumentandDOM.requestChildNodesrespect 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_endreports the lost device. render.kept_targets_bytescounts asrender.targets_bytesdoes: a kept snapshot is 4 bytes a texel, and mip chains count.render.capture_cancelon WebGPU no longer lets the map it cancelled write on the next capture, and a capture being mapped survivessurface_use.draw.destroygives 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_profileno 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_beginare drawn as before. damage_scrollredraws where the content was and is: no backend moves pixels by a block copy.render.damage_verify_differencescounts the framesrender.damage.verifyfound different, and the check now runs on Direct3D 11 and draws Slug text and application shaders on WebGPU.
- 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
- 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.allocatoraround a build freed them from another one). ui.fuzzy_scoreno longer panics on a text with invalid UTF-8 that matches the needle, and its ranges stay in the text.rich_paragraph:rich_set_facesapplies to paragraphs already laid out, and the layout cache no longer depends on the padding bytes of a run's style.ui.postthrough a window: afterui.destroyevery 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_Settingsare 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 getscancelled), then to the dialog on top, not to the outermost one. The dialog closes at the end of its block.ui.list_selectbefore 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_textduring 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_changedtells a change once (it said true at every call while another program owned the clipboard),clipboard_formatssays what the owner offers,set_clipboardoffers its text under the text targets, and file lists are percent-encoded URIs. - Linux:
wait_handlewith 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_placementreturns screen coordinates: with a taskbar on the left or top a saved window no longer moves at each restore. - Linux, X11:
is_minimized,is_maximizedandis_fullscreenfollow 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_starttalks 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 followdrop_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_startreturns 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:
wakewakes 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_handleno 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 makeconnect_busfail 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, andacceptfailing for good no longer takes a core.devtools:infandnanare no longer taken as a CSS length, opacity or colour channel of an edited style.devtools: twoPage.captureScreenshotat once each get their ownclip: the second used to get the picture of the first.devtools: what cannot be edited (DOM.setAttributesAsText,DOM.setOuterHTML, otherDOM.set*andCSS.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.stopScreencastwhile a frame was being read back no longer leaves the renderer unable to capture:Page.captureScreenshotanswered "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 inspectprints the address; thedevtools://devtoolsOrigin is taken on the WebSocket only.
0.56.22026-10-31 08:56 UTCrelease
Fixed
examples/whatsnewno longer stretches while it is resized: a composition swap chain with a fixed surface, as opencode native, andinner = truefor 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
powon every channel (now a table); the PNG was encoded on the UI thread (nowflate.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, atimeline.jsonand a Chrome trace;play <timeline.json> --timeline <dir>runs it again,--realtimewith its pauses, and fails if a picture differs.tools/timeline.mjsfor scripts.Toolkit.framesandToolkit.pollRecordingfeed 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 --headlessdriven 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.waitForandToolkit.waitIdle: a script says what it waits for (a box there or gone, nothing moving) instead of sleeping a guess;wait-forandidleintools/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 aRENDER_PROBEbuild.ui.build_metricsreads the last build's from the program.- Accessibility actions and audit over devtools:
Toolkit.axActionasks 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) anddevtools.serviceeach 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 (anOriginheader), for anotherHostor without the target's random id is refused. Puppeteer and Playwright attach (docs/devtools.md says what works).tools/cdp.mjsdrives it from the command line; docs/devtools.md.ui.box_textandui.box_currentread 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 pendingnextinstead of replacing it, so a helper styles its box while its caller's width or position stay.ui.merge_modis 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). Likerow(), the item is the block of theif: 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), andui.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 nextpoll_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/hellouses 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.ps1passes 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.dllanddxil.dllnext 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 sheen0): 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 -vetof every package for Linux, the examples built with the native text backend and Vulkan, the tests that need no window.examples/smokeprinted 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'svendor/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)(xpast the dead zone,D= the newAutoscroll_Settings.doubling,F=full_dist,V=max_speed): it doubles everyDpx and reachesmax_speedatfull_dist.exponent(a power curve) is gone.
Fixed
-vetfailed on the Linux code: dbus casts, unused loop variables in the X11 backend, imports used on Windows only.-define:FONT_NATIVE_LINK=falselinkedkernel32.libas 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.columnkeep a cross alignment given bynext:next({cross = .Center}); if row() { ... }centred nothing, the scope's default (.Start) replaced it. An explicitcrossargument other than.Startstill wins.ui.checkbox,ui.radio,ui.togglegiven 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 bynextis kept, the label filling it as before.
0.50.02026-10-28 07:11 UTCrelease
Added
font.glyph_outlineand a neutralfont.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, andcolor_renderablenow 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)andplatform.is_window_visible(window): bring an already-shown window to the front (Win32SetForegroundWindow; 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_requestexpose the toolkit's neutral tree — roles, names, states, bounds, Invoke / Focus — to screen readers when one connects); input-method composition through Waylandzwp_text_input_v3(ime_set_enabled,ime_set_cursor_rect,ime_preedit; committed text arrives as.Textevents, and X11 composes dead keys through libxkbcommon); keeping the screen awake (idle_inhibit/idle_uninhibitthroughorg.freedesktop.ScreenSaver); the recent-files list (add_recent_fileto the freedesktoprecently-used.xbel); and Wayland cursor shapes drawn by the compositor throughwp_cursor_shape_v1. - Linux file dialogs, open-URL and live theme through the XDG portals (
platform):open_file_dialog/save_file_dialog/pick_folder_dialognow useorg.freedesktop.portal.FileChooserfirst (filters, multiple selection, a suggested name; it works under a sandbox), falling back to zenity / kdialog;open_url/open_pathuseorg.freedesktop.portal.OpenURI;dark_mode_preferredreads the appearance portal'scolor-schemeand the newwatch_color_scheme(cb)reports a live light / dark switch (theSettingChangedsignal). - Linux tray icon and notifications (
platform):tray_create/tray_notifyand the rest of the tray API now work on Linux through the StatusNotifierItem specification over D-Bus, with its menu as acom.canonical.dbusmenutree and notifications throughorg.freedesktop.Notifications(clicks, chosen menu items and notification results come back asTray_Events). Same public API as the Windows backend;tray_createreturns 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 Waylandwl_data_sourceoffering text / HTML / PNG /text/uri-list(and reading a foreign owner overwl_data_offer.receive), thezwp_primary_selection_v1primary selection, and an X11SelectionRequestserver withTARGETS/TIMESTAMP/MULTIPLEand INCR for large images;clipboard_get_image/_get_html/_get_filesread 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): Waylandwl_data_deviceand X11 XDND version 5. - D-Bus client (
dbuspackage): 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 ownpoll(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.Portsgives 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 andurl/portmove every address to the run's block so several worktrees test side by side, interning the results.process_statereads 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, andmemory_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[]bytemessage 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, aflocklock file and a Unix socket in$XDG_RUNTIME_DIRon 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. AScopeowns 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 generationalPoolgives fixed-address slots addressed by aHandle(adistinct 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 aRefonce 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 (Win32MonitorFromWindow+GetMonitorInfoW, the Waylandwl_outputmode, 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_folderthrough xdg-open;known_folder_pathfrom 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 Waylandwl_data_device, and HTML / image / files kept by the owner.render/wgpu_surface_linux.odinbuilds the wgpu surface fromSurface_Handles(Wayland / XCB) for the renderer's Linux path. - wgpu is the renderer's Linux backend: on a non-Windows target
renderbuilds the WebGPU backend only (TOOLKIT_RENDERis ignored there andUSE_WGPUis 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 fromplatform.Surface_Handles(Waylandwl_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_windowand the whole window / input API now run on Linux, over Wayland (xdg-shell,wl_seatwith an xkbcommon keymap,wl_outputscale for DPI, zxdg-decoration or a client-side title bar) and X11 (XCB, xkbcommon,Xft.dpi,_NET_WM_STATE, Motif hints), chosen at open fromWAYLAND_DISPLAY/DISPLAY. Every window library is loaded withdlopen(libwayland-client, libxcb, libxkbcommon), so a binary starts on a system missing one and names it; nothing is hard-linked. The sameWindow,Event,Key,Cursor,Placementtypes as the Win32 backend — an application written againstplatformdoes not change. - Text catalogue (
i18n.tr): a new pure-Odin package so an application can be translated without going through its code again.tris a procedure group with three forms —tr(text),tr(context, text)(a translator's context for two meanings of one English word) andtr(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 withdamage_beginand marks changed boxes withdamage_add/damage(anddamage_scrollfor 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 withPresent1dirty 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, orTOOLKIT_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 infillText). It reuses the COLR interpreter for the glyphs it owns and Direct2D otherwise;fgcolors 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.cascadelanguage: 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'sGetGlyphs/GetGlyphPlacementslocale 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 distinctFont_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_endcopies the frame target (surface or offscreen, in whole or in part) into a mappable buffer;capture_pollmaps it without waiting (Pendinguntil 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_destroycreate 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
platformAPI made system-neutral:platform.wake_handlenow returns an opaquerawptr(paired with the newplatform.wake_signal) instead of a Win32HANDLE, and the newplatform.native_surface_handleshands a renderer the window's native handles through a neutralSurface_Handles(Windows HWND, Waylandwl_display+wl_surface, or X11 connection + window) sorendercan make a surface on any system without a Win32 type in the signature.render.inittakes a neutral surface, not anHWND: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_editsyntax colouring (ui.Text_Highlight,ui.Text_Span): ahighlightparameter 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,listandvlistget 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.tmprenamed 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) andtemp_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'sbase1andbase2): 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_namedfinds them by name; a test checks that every named palette keeps its text legible on its background and panels and itsdarkflag 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.lib6.4 MB instead of 33 MB) thetexttests 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 ofcore:testingtakes any exception on a test's thread for a crash and kills that thread. The tests oftests/text,tests/color_glyphsandtests/text_backendsnow 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. Thetextpackage runs on several threads again intools/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 listedrlibnext tostaticlib, and rustc skips LTO whenever anrlibis among them: every dependency stayed a separate unoptimized object (gt_text.lib33.2 MB, now 6.4 MB;gt_a11y.lib16.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), aDragframe (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 ofc.slots = plan.slots).
0.46.02026-10-27 05:27 UTCrelease
Added
platform.Event.injected: an event made byinject_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 withinactive = 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_patchsends 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. Aui.Statebuilt for another window than its last one sends that window a whole tree.tests/a11yreads 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 testdeleting its exe, arender.Surfacein a local, nested builds, keys,expect_asserton Windows).hello --frames=Nruns without showing its window. Checked on a clean clone;tools/window_shot.ps1accepts 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/deflatefor 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'ssrc/flate(same API); docs/flate.md,tests/flate.- Offscreen readback on the WebGPU backend:
draw.offscreen_endgives arender.Readback_Idandrender.readback_pollthe 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 (Pendinguntil the GPU is done).tests/layerschecks 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 throughtesting.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 passtime_ms.tools/test_windowless.ps1andtools/test_backends.ps1print 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_Slotsstrict 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), pluscadence_inner_frame,cadence_echoand 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_slotsandtests/pacingjoin 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 withstrict). The window procedure defers aWM_PAINTwhere no frame may begin;drag_scriptpumps 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.ps1ended 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_backendsprinted "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 sampleon 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 thanGet-FileHash. Every push to master keeps its own run (only pull requests cancel the previous one). - WebGPU:
render.video_convertconverts pictures in memory (I420, NV12; P010 and 10-bit I420 when the adapter hasTextureFormat16bitNorm) withvideo.wgsl, crop, rotation, matrix and range included, as on Direct3D 11: it returnedfalsefor 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/videochecks 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.failedis honoured by both backends (it was Direct3D 11 only), a refusedslug.wgslsets it, a recreated device asks again.
0.42.22026-10-26 19:54 UTCrelease
Fixed
tools/fetch_emoji.ps1,build_naga.ps1andfetch_wgpu.ps1hash their files the .NET way, not withGet-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, ...) -> okmakes aSurfacein the one the program points to.surface_create(which returns it by value) is kept and calls it. ASurfaceis several kilobytes (Present_State's ring of 256 frames): held in a local and copied into a record,-o:speed -debugsplit 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 calledsurface_init). The doc ofsurface_createsays 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 withui.a11y(info)(next box) orui.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 inui.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 withplatform.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.ps1buildsbuild\a11y\gt_a11y.lib;A11Y_NATIVE_LINK=falsewhen 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 (COMIUIAutomation): 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_chromeanswersClientthere before anything else, the resize bands included.
Fixed
- An open menu that covers the integrated title bar's resize band takes the pointer there (
uichrome_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, inend_buildbefore 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/chromeopen_menu_over_resize_bands_and_later_boxes. font.glyphgives the ink box where the ink is with the native text backend (native/textgt_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_backendsnative_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)runsfn(data, word)on the interface's thread at the start of the nextbegin_build(ordrain_posts), and wakes the window once per drain.ui.Post_Queueis 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_framewhile 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, Windowstray_win32.odinonShell_NotifyIconWversion 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,Recreatedafter the shell restarted: the icons are added again onTaskbarCreated),tray_destroy;destroy_windowremoves the window's icons.tray_test_hookandtray_injectfor tests. Test:tests/tray. - Rich clipboard (
platform/clipboard.odin, Windowsclipboard_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 throughunit) 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;finishedsays 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 stateReorder(reorder_frame,reorder_begin,reorder_dragging,reorder_item_pos: items slide to their slots, the dragged one follows the pointer).- Example
examples/panes; teststests/panes.
0.40.12026-10-26 15:36 UTCrelease
Added
ui.building(): true betweenbegin_buildandend_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_buildemptied 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 inui.spacer, after aTrackPopupMenuopened during the build painted the window fromWM_PAINT). Test:tests/ui_robustnested_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_linesends with "…",text_alignaligns; 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 entrieslink,code_bg. Tests:tests/keyboardrich_text_test. Example:examples/markdown.- Selecting text outside fields (
ui/selection.odin):.Selectablelabels, 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/keyboardselection_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.simson every platform;with_simulationsoff Windows. Test:tests/text_backendssimulations_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 andsystem_families; collection faces by PostScript name (gt_face_postscript_name,gt_file_face_count). Checked withodin check, not run on those systems yet. FONT_NATIVE_LINK=false: a program that buildsnative/textinto its own Rust library links nogt_text.lib(two Rust static libraries collide).native/text/examples/shape_dump: HarfRust's shaping of a text, likehb-shape.tests/keyboardtext_edit_draw_test:text_edit_caret_rectagainst 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, Windowsdialogs_win32.odin, stub elsewhere):open_file_dialog,save_file_dialogandpick_folder_dialogwith a title, filters (File_Filter), an "All files" line, the starting folder (start_dir, or aKnown_Folderdefault), a remembered folder perremember_id, the suggested name and default extension, several files, the overwrite question;Dialog_Resultgives the paths and the type line chosen. Pure helpers:filter_patterns,filter_matches,filters_from_accept(a web page's accept list);dialog_test_hookstands 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_editwraps 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 ofexamples/fidget.- Caret rectangle:
Edit_Result.caret(box coordinates, this build) andui.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.backendpicks either backend for one State.font.native_table,font.native_coverage,font.native_outline_provider. Seedocs/font-backend.md. tools/text_benchandtests/text_backends: the two backends compared on the corpus (equivalence report and timings; logic checks in the tests).
Changed
- The
fontpackage compiles on Linux and macOS (odin check font -target:linux_amd64/darwin_arm64): DirectWrite and Direct2D are behindfont_windows.odin,raster_windows.odinand the color files;font_other.odinloads faces from files and memory through the native backend (no system fonts yet: TODO fontconfig / CoreText).load_memorytakesfont.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/retainedpasses withFONT_TEXT_RENDERER=slugtoo (its atlas page assertions follow the renderer).
0.37.02026-10-25release
Added
- Text backends (
font/backend.odin,docs/font-backend.md): thefontpackage shapes, analyses (scripts, bidi, line breaks) and reads faces (coverage, metrics, glyph boxes, Slug outlines) throughText_Backend, a table of procedures, and finds the system's fonts (fallback,font.system_families) throughSystem_Fonts, the platform's. DirectWrite is thedwritebackend (font/backend_dwrite.odin, the code moved, not changed: the corpus dump oftools/text_dumpis 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[]Featureinstead 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).strictmakes 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 abovehz.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 givesE_INVALIDARG), so a window on another monitor has no answer (okfalse). 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_Ybox 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_robustscrollbar_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_placementmoves and sizes the window without showing it, on the monitor nearest to the rectangle and inside its work area, andshow_windowthen shows it maximized if asked), the purefit_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) andmove_window(w, x, y).tests/placement. A browser that moves tabs between windows used all of them.
Fixed
set_placementasks 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.initno longer restarts the toolkit's clock (ui/state.odin): the origin ofui.now_ms()was reset by everyinit, so opening a second window (oneui.Stateeach) made the time of the first one jump back. It is set by the firstinitonly.
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/keyboardmenu_pointer_over_a_disabled_row_selects_nothing. - A new window opened on the primary monitor (
platform/platform_win32.odin):CW_USEDEFAULTputs 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.VERSIONsaid 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_enddraw into a transparent target of their own, never shown and not cut by the window;render.readback_pollgives its pixels after the frame (straight RGBA8, sRGB, alpha kept; anOp_Kind.Readcopies the target where it was recorded).render.straight_srgb. Test:tests/layersoffscreen_draw_and_read_back (both blend spaces, WARP). ui.wake_in_ms(the timed wake the last build asked for, measured from now) andui.wake_due.wake_mscounts 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'stools\altdrag_sim.ps1(AltSnap sendsWM_SIZINGbefore each step): the extra frame of each step was made for a caret blink not yet due (Ui_Timer882 of 1544 frames of the run); withwake_due/wake_in_ms, 494 presents for 500 steps.
0.35.12026-10-25 20:34 UTCrelease
Added
- Drag images:
Drag_Imageis now inplatform/dragdrop.odin(independent of the system), withdrag_image_valid,drag_image_fade(the translucent ghost of a dragged element) anddrag_image_fit(scaled down to a size, its hot spot following).drag_image_heldsays what the system's drag image helper holds afterdrag_start(Windows: read back from the data object'sDragImageBits). - The app's own drag back over its window (
drop_sync_set,Drop_Sync): whiledrag_startblocks, the window asks the app at once for eachDrop_*instead of queueing them, so the app can handle the drop beforedrag_startreturns (a browser firesdropbeforedragend). - Scripted drags (
drag_script,Drag_Step,drag_script_calls): the nextdrag_startfollows 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 madedrop_target_enableanddrag_startfail).- 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 featurespointer,any-pointer,hover,any-hoversee them. - Touch gestures (
platform/touch_gesture.odin, pure):Touch_Gestureturns the fingers' positions and times into tap, pan, pinch (scale about the fingers' middle), long press and fling (release speed);touch_flinggives the glide's distance and time under exponential friction. Event.pointer.kindof an emulatedMouse_*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 withdrop_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 withdrop_target_enable; a drag over it queuesDrop_Enter/Drop_Over/Drop_Leave/Drop(position, modifiers,Event.drop_allowed) with the data indrop_data(Drag_Data: files, text, HTML fragment, URL and its title, PNG image, the app's own MIME types); the app answers withdrop_set_effect(the system is given the last answer).drag_startruns a drag of the system with aDrag_Dataand an optionalDrag_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_Cancelevents withEvent.pointer(Pointer_Info: identifier, touch or pen, primary, pressure, tilt, twist, barrel, eraser, contact size) fromWM_POINTER. The system's mouse emulation still comes, markedEvent.emulated.pointer_buttons,pointer_pressure,Pointer_State. Mouse_*events carryEvent.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_latencyno 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 whenMaximumFrameLatencygoes 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 onframe_waitablereturned at once,Presentblocked 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, byframe_waitable/wait_for_frameas 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 andPresent16 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 withSetWindowPoscalls from their own process and POST itWM_ENTERSIZEMOVE/WM_EXITSIZEMOVE. The window took them for a loop of the system: it painted fromWM_PAINTinside its ownpoll_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'sDefWindowProccall, where the system's real loop runs (size_move_step, pure); from outside they are ignored and the size change arrives asWM_SIZE, drawn by the app's own loop like any other.WM_ENTERMENULOOP/WM_EXITMENULOOPare unchanged. A move that ended withWM_EXITSIZEMOVEfrom 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 manyWM_ENTERSIZEMOVE/WM_EXITSIZEMOVEfrom outside were ignored (ignored_size_moves). For tests and diagnostics of the message loop.tests/size_move: the decisionsize_move_step(messages inside / outsideDefWindowProc, nesting, an exit with no loop open);tests/windowchecks that posted and sentWM_ENTERSIZEMOVEfrom 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 backgroundaccent at 0.30,menu_item selected bordertransparent): 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), thenlatency_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 withrender.set_frame_read.Displayed_Framegainedread,drawnandcall(whenframe_endandPresentwere 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_Infogainedkey(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(packagebase,base/perf.odin) runs them only withGUI_PERF=1ortrue, and never whenCIis 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_limitandwork_limit,COLR_MAX_COMPOSITES,COLR_SURFACE_LIMIT,COLR_WORK_*: the bounds of the COLR interpreter's memory and work.gsub_ligateis bounded byGSUB_BUDGET.ui.wake_within(s, ms): asks for a wake withinms, 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_Idcarries 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 storesFont_Idas an opaque number is not affected; code that computes with it (index into a table by id) must mask with1 << 20 - 1.- Caret, arrows, Backspace, Delete, clicks (
hit_index), the cut of a toast and the line breaks ofwrap_lineswork on grapheme clusters, not on code points. Word movement keeps its code point steps. platform.poll_events/wait_handledrop 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 missingMouse_Release. A repaint of a window that is not itself polled, arriving while another window of the thread polls, no longer runson_frameinside that poll: it setspaint_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_windowreturns nil when the system cannot make the window;inject_eventof aClosesetsis_closed.- COLR: a glyph over a bound of memory or work is refused (drawn as its outline);
PaintCompositenests at most 8 levels; the interpreter draws without the atlas lock.colr_nests_glyphanswers "nested" for a graph it cannot read to its end (so that it goes to the interpreter, not to Direct2D),colr_findkeeps a base glyph record whose offset is outside the table as an unreadable graph,colr_openaccepts 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_runcaps 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_sizeis documented as read byinitonly. ui.menu_itemcloses 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_palettekeeps the entries an application added to the theme first (Theme.palette_at);theme_addcopies its tags.ui.focus_stepkeeps to the open modal;focused_nameis empty for a box not built yet in this build.ui.fuzzy_findreturns 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.dropdownwith an empty list or a selection outside it,ui.tabswith fewer icons than labels, andui.segmentedwith no label panicked or drew an infinite rectangle.platform.config_dirwith%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, andGlobalLockis 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.mdlists the functions the WebGPU backend does not have;docs/draw.mdno longer says 3D is unsupported (planes are);docs/shaders.md:app_shaderandapp_shader_ready.- Not fixed (reported):
bspstill splits the whole context when one pair crosses, with no limit on the number of pieces, andPlane_Item.geomis 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 coverAPP_BINDINGS(changing it makes every precompiled blob stale: to be done with the applications' blobs);Surfacerelease on a thread, the DirectCompositionPanellifetime, canvas source textures never zeroed (to check).
Fixed
- Plane pieces with more than 6 cuts (
draw/bsp.odin): a piece bounded by more thanMAX_PLANE_CUTScuts 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_shaderkeepsAppIn.pos,sizeandpxin local units under a uniform scale plus translation (DPI, zoom) asdocs/shaders.mdsays (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 notrender.app_shader_ready.- Device loss with several windows (Direct3D 11): a
Surfaceset aside bysurface_usekept its swap chain, views and capture copy from the old device (undefined behaviour, then a loop of recoveries); andset_blend_spacegave the new view format to the current window only. The window state carries the device generation and the blend space it was made in, andsurface_useremakes a stale one (render.Renderer.swap_gen,swap_space,space_epoch;Surface.gen,space_epoch).d3d_recoverflushes the old context after releasing its objects (the old HWND swap chain used to keep the window, andCreateSwapChainForHwndcrashed). An offscreen renderer notices a device loss atframe_end. - Captures belong to their window (
Capture_Stateis exchanged with theSurface: the nextframe_endof 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 becomesFailed) instead of being used on the new device. wgpu_destroyread the texture table after freeing it.wgpu_recoverwithout 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) followset_text_rendering,set_corner_smoothingand 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_planeinside a recorded picture records nothing (it recorded the content flat, unprojected);current_clipis 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_r8checks 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_chromeanswers.Clientinside it), so that the corners a trapezoid tab does not cover keep dragging the window. For tab strips drawn with sloped sides. Tests intests/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, moduleCanvasoftools/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 arender.Canvas_List(instances with a geometry, a paint and an operator; commands for clip masks, layers, snapshots,putImageData) andcanvas_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), intools\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), ornilfor 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.odinchecks the word-at-a-time premultiplication against(c * a + 127) / 255for every value. Both intools\test_backends.ps1.
Changed
- Faster image textures:
create_texture_rgbano longer zeroes a new texture with oneUpdateSubresourceper 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_rgbachecks 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 readsapp_param(k)andapp_tex0..3), anddraw.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 modesNormal,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 modulerect.wgsl+app.wgsl+ the application's WGSL; Direct3D 11 embeds the pixel shader precompiled byodin run tools/shaders -- app <name> <file.wgsl> <dir>(naga + D3DCompile,<name>.dxbcand<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)andupdate_texture_datamake 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 byGenerateMips/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 (withdevice_generation).tests/appshaders(both backends), added totools\test_backends.ps1and 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 withplatform.open_window(..., transparent = true)) and a fixed surface (fixed_size, asset_fixed_surfacedoes 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_destroyalso releases a translucent surface's DirectComposition objects (and goes throughset_teardown_wait).
0.22.12026-10-24 06:26 UTCrelease
Added
render.set_teardown_wait(r, ms):destroywaits 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):destroywaits 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 nextpoll_eventsreturns 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_endcopies that frame's render target (or a part of it) into a staging texture just before presenting, andrender.capture_poll(r)returns RGBA8 pixels once the GPU is done (it never waits:Pendinguntil 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 (defaultMENU_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_windowkept 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():tooltipplaced 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 andrender.video_convert(r, target, picture)fills it. AVideo_Pictureis 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 withhdr_peak_nitsandsdr_white_nits). The result is an ordinary texture to draw withdrawas 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.ps1runs 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_resizeskips the source region then).
0.17.12026-10-24release
Fixed
- Direct2D crash on nested PaintGlyph: Direct2D of Windows 11 24H2 as first released (
d2d1.dll10.0.26100.1, the image of GitHub'swindows-2025runners; a patched 24H2 such as 10.0.26100.8875 draws them) dies with a null read insided2d1.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). WithColor_Engine.Systemsuch glyphs are now drawn by the COLR interpreter (font.colr_nests_glyphfinds 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/colrinterpreter_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_direct2dchecks, without depending on the machine'sd2d1.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'sBspTree/DrawPolygon), the pieces ordered back to front for a viewer in front. A piece is the plane's layer drawn again underPlane_Draw.cuts(Plane_Cut: half-spaces of the space after the perspective divide, at mostMAX_PLANE_CUTS, tested per pixel on the interpolated plane position inrect.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.mipsgives a plane's layer a mip chain (render.acquire_target_mips,render.target_mips_supported,Op_Kind.Mipson 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_PROJECTinstances 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 = .Builtindraws 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_renderfor 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.odingenerated from Unicode 18emoji-data.txtbytools\gen_emoji_data.ps1). Tag sequences are formed from the face's GSUBccmpligatures (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(alsotests/color_glyphs -define:COLR_ENGINE=builtin).
Changed
rect.wgsl: two more flat varyings (the cuts of a projected quad); HLSL regenerated.ui.VERSIONand 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 CSSmatrix3d()), 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, andbackface-visibility(Plane_Draw.cull_back,plane_faces_away).pop_planehands the layer back so several planes can be sorted beforedraw_plane(preserve-3d). A plane whose content did not change is kept between frames (Plane_Fx.cache_id/cache_key, the layer cache oflayer_cache.odin):push_planereturns false and only the matrix changes. - Shader:
FLAG_PROJECTinrect.wgsl(aKIND_IMAGEinstance 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(defaultd3d11). 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). Seedocs/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 intools\build_naga.ps1), compiled to DXBC and embedded as before;odin run tools/shaderswrites both;tests/shaderschecks the SHA-256 of the sources in the header of each HLSL and the blobs; CI runstools/shaders -- -check.render/rect.hlsl,filter.hlsl,slug.hlslare gone (generated copies live inrender/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 infont/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'sGetGlyphRunOutlineon Windows, cubics turned into quadratics withinSettings.slug_tolerance),slug_buildmakes the curve texels (RGBA16F) and band texels (RG16UI),slug_glyphcaches 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 afterrect.hlsl, which it reuses for transforms, clips and the text correction),KIND_SLUGinstances 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_runuses 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,PresentandIdle(only whileset_gpu_profileis 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_tgo 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 forui.PALETTE_FADE_MS(160 ms). - Hover and press fills are visible: the theme's new state entries
hover_fill/press_fillare 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_Effects7 % / 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 entryhoveritself is unchanged. - Fields: the border of a
line_editunder 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 bytheme_add,theme_setandapply_palettewhen a colour changes.- Selectable
list_rows have.Draw_Hot_Effects(taglist_row, built under it only);segmenteditems light up under the pointer (tagsegment);tabsitems have the tagtab. "<tags> hot text": the text colour of a clickable box under the pointer (falls back to the normal one).remove_button hot textis the palette's red,remove_button hover_fill/press_filla light red step: push the tagremove_buttonaround anicon_buttonfor a delete cross.Box_Flag.Hot_Within: a box stays hot (and lit) while the pointer is on a clickable box inside it; selectablelist_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_rowkeeps a cursor given withnext({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 ofalpha_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.Cursorhas 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-graband 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_CXCURSORat 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_SETTINGCHANGESPI_SETCURSORS), destroyed with the window.Nonehides 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 thanCUSTOM_CURSOR_MAX_CSS= 128 CSS pixels, Chromium's limit:.Too_Large, the caller shows its fallback), shared bykeywith 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 Ndraws 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_customchanges it while the pointer is over the client area or captured by the window (a drag: noWM_SETCURSORcomes during a capture; a page scrolled or changed under a pointer that does not move), andWM_SETCURSORover 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.cursorsis no longer an array of handles (the cursor state of cursors_win32.odin).
0.11.12026-10-20 20:49 UTCrelease
Fixed
ui.initmakes the state current: getters (scale,font_size,focus_key...) called before the firstbegin_buildread 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.hlslandrender/filter.hlslare embedded as DXBC (render/shaders/*.dxbc,render.SHADERS) instead of being compiled byD3DCompilewhen the renderer starts (280 ms to 1.5 s of every launch,rect.hlsl's pixel shader dominating).odin run tools/shaderswrites the blobs after an edit of the HLSL;tests/shadersfails while one is stale.-define:RENDER_COMPILE_SHADERS=truecompiles at start-up as before.render.shader_compile(id). - Resizing without
ResizeBuffersat every step:render.resizekeeps the swap chain's buffers larger than the window (rounded up toset_resize_slackpixels, defaultDEFAULT_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.ResizeBufferscost 1.6 to 3.5 ms a step.render.buffer_size. The window's swap chain is created withDXGI_SCALING_STRETCH(withNONE, 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_anchorkeep 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_effectsreturns false (the content need not be drawn; what is drawn is discarded) andpop_layercomposites the kept result, moved by whole-pixel moves of the anchor. Opacity, blend mode and trailing color matrices stay live. A layer up tomax_layer_pxis 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/backdroptakecache_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_masktakes the samecache_*fields and returns false likepush_effectswhen the kept result stands (the mask is in the kept result: neither the content nor the mask layers are drawn, andmask_layerdoes nothing). The caller'scache_keymust 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;detailtimes 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_MATRIXfor layer composites and backdrops;Pass.factor.examples/effects:--nocache,--half;--benchprints 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)orplatform.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_NCHITTESTanswers from it (platform.hit_test_chrome, pure and unit-tested):HTCAPTIONwhere 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_Moveevents (hover follows); a press on a caption button is captured and comes asMouse_Press/Mouse_Release(the system never draws its own buttons over the app's).Mouse_Leaveonly when the pointer leaves the window, not when it goes from the client area to the title bar. Event_Kind.ActivateandWindow.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_Captionflag is a caption, every clickable box over it a hole (popups included),window_buttonsare 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:
--integratedmakes 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 oflistover every row (Up / Down, Page Up / Down, Home / End, type-ahead onlabels, 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});.Exponentialis 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 withvlist(List_State.virtual); no change forlist.- 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_effectsandpush_maskreturn a bool (see above); existing calls that ignore it are unchanged.Backdropholds 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/chromeandtests/keyboardtake a lock around each test (they drive the global UI state): they no longer need-define:ODIN_TEST_THREADS=1, without whichtests/chromeused to hang the test runner.
0.9.32026-10-19 13:35 UTCrelease
Added
- Direct2D draws color glyphs (
font/color.odin, bindings infont/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 ofTranslateColorGlyphRundrawn 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 fromIDWriteFactory8::TranslateColorGlyphRun(paint trees) orIDWriteFactory4'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_imagegains anfgparameter (sRGB, default black);draw.glyph_runpasses 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 callsfont.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).unloaddrops a face's queued requests and waits for the one in flight;destroystops 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 byMask_Op(add, subtract, intersect, exclude: CSS mask-composite); then filters, opacity and blend mode aspush_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_layercloses 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.hz59.94, 143.998, 180: the rational rate of the display path fromQueryDisplayConfig, else the current mode, else DWM's composition rate, else 60), itssource, the monitor and aserialthat changes with any of them. Cached; read again afterWM_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 nextpoll_events.Event.stamp: when the window procedure received the event (input latency).platform.take_paint_request(w): aWM_PAINTthat came during the app's ownpoll_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 withALLOW_TEARINGwhentearing_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, ormark_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 beforeinit): back buffers of the swap chain (default 2).-define:D3D_DEBUG=falseturns the Direct3D debug layer off in a-debugbuild (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_PAINTduring the app's ownpoll_eventsno 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, andtake_paint_requestsays one was asked for. Inside a loop of the system (live resize, move, menus:WM_ENTERSIZEMOVE/WM_ENTERMENULOOP)on_frameis still called fromWM_PAINT.RENDER_PROBEprints 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(andtext/text_exon top of it) records shaped glyphs (positions from the shaper, subpixel positions, color glyphs) like direct drawing; text is rasterized for the picture'sraster_scaletimes the slot's scale (withinTEXT_RASTER_TOLERANCEthe 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.Stalewhen 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 andclear_atlasmake 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= CSSunicode-range), then the system fallback (IDWriteFontFallback::MapCharacters); clusters stay in one face (marks, selectors, ZWJ emoji sequences). OpenTypefeatureson 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_stepshorizontal positions, rendering mode and grid fitting fromSettings), 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_settingswith 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_generationandfont.reset_atlasare gone (font.clear_atlasclears the pages: pictures on them go stale).fontis 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). SameFont_Id,metrics,text_width,x_from_index,index_from_x,glyph(now outline metrics) andkern(a pair shaped together minus apart) as before, so existing callers get fallback and shaping unchanged. See [docs/text.md](docs/text.md).font.Metricsgainsx_height,cap_height,underline_offset/_thickness,strike_offset/_thickness.draw.textshapes (fallback, ligatures, kerning, bidi in the string's direction) and draws throughdraw.glyph_run; it moved todraw/text.odinwithTEXT_RASTER_TOLERANCE.draw.Context.glyphsholds the textures of the atlas pages;draw.init/begin_frame/end_frame/destroycall into it (text.odin).font.Stateno longer haspending/pending_pixels/glyphs/fonts: the atlas is in pages uploaded per draw context (font.atlas_sync_page).
Fixed
font.shapeof 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, theNAMED_PALETTEStable (with Midnight and Daylight) andpalette_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 ofHistory_Samples (up toHISTORY_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) andhistory_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 dashedbudgetline,scale/max_scale(the top fits most bars; a rare spike is cut and marked instead of flattening the rest),warn/badcap marks,highlight. The result is the box's signal plus the history index of the bar under the pointer.graph_scalegives 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 eachframe_submitmeasured at run time, without-define:GPU_TIMING(timestamp queries in a ring, read back later: the CPU never waits);gpu_timing_enabled,gpu_next_frameandgpu_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, afterMENU_HOVER_MSof 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 adisabledscope: 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.Textheight 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)andfocus_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 asN0..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(widthnow optional) pads its panel;State.ctx_menu_key,menu_sel,menu_width... are replaced byState.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, aspush_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, reportStale. - 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.recoverrecreates the device, the swap chain or offscreen target, the pipeline and every texture under the same handle (contents cleared:device_generationchanges);frame_beginanddraw.begin_framerecover on their own (Presentfailures andGetDeviceRemovedReasonare 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) anddraw.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_Datais 96 bytes;render.initandinit_offscreenare split (create_swapchain,create_offscreen_target) so thatrecovercan rebuild them.push_effects/push_layerwhile recording fall back to the alpha (a picture holds no offscreen layer);backdrop_capturereturns 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).Srgbcomposites 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_UNORMpremultiplied on sRGB values inSrgb), 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'sSkMaskGammacomputed 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/layersandtests/effectsrun 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_GAMMAis gone): the 0.8 exponent is nowText_Rendering.coverage_exponent, applied by the shader (same look inLinear). - The constant buffer of
rect.hlslis 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})(thenpop_layer).Filter/Filter_Kind/Color_Matrix; constructorsfilter_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 aboverender.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, plusPlus_Darker/Plus_Lighter) onLayer_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 indocs/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;Batchgainsbackdropandop;Layer.doneis 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_Datais 80 bytes (kind,first,count,flags);CLIP_CIRCLEmoved fromparenttoflags.
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 whateverrender.set_corner_smoothingsays (the squircle suits the UI; web content and other specifications need circles). Per primitive:render.FLAG_CIRCLE,render.CLIP_CIRCLE(or-ed intoClip_Data.parent). Reset bybegin_frame. Pixel test intests/layers.
0.4.12026-10-18 21:14 UTCrelease
Added
- Layers (group opacity):
draw.push_layer(dc, bounds, alpha)/draw.pop_layerdraw into an offscreen render target composited once withalpha, so overlapping primitives of the group do not show through each other (CSSopacity). Transforms, rounded / rotated clips, images, text and nested layers work inside. Falls back topush_alphawhen 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) andrender.read_pixels.render.destroyreleases 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).initis split into device creation and pipeline setup (shared withinit_offscreen);frame_endandresizedo nothing for an offscreen renderer.
0.4.02026-10-18 20:28 UTCrelease
Added
- 2D affine transforms in
draw:Affine(CSSmatrix(a, b, c, d, e, f)convention),push_transform/pop_transform,current_transform, and the helpersaffine_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_clipunder 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) anddraw.image_tiled(seamless repeat). Images and glyphs share batches. examples/transforms(build.bat transforms): animated demo,--stress=N/--bench=Nload 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_Instis 144 bytes (addsxform,clip,flags);use_textakesKIND_SHAPE/KIND_GLYPH/KIND_IMAGE.render.Batchgainsimage;render.frame_submittakes the optional transform and clip tables.draw.Context.clipsholdsdraw.Clip(scissor + shape) andxformsholdsdraw.Transform(anAffine).push_scale/pop_xformkeep their behaviour; the existing examples render pixel-identical to 0.3.2.- Soft shapes (
soft > 1) drawn underpush_scalescale 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 onCreateSwapChainForComposition; it now falls back to an opaque window (render.is_transparenttells 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_fontsforces 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_Ybox gets an overlay scrollbar (drag the thumb, click the track to jump);text_edithas vertical and horizontal bars. - Wrapping rows:
ui.flow(gap)and theWrapbox 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.radfor custom draws. Radio buttons stay round, and so do boxes with the newFixed_Radiusflag. 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 orDENSITY_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.finishpaints raised surfacesFlat,Gradient(Bootstrap 2: vertical gradient, top highlight, embossed text, focus glow) orGlass(Windows 7 Aero: glossy top half, bottom glow, white rim).ui.paint_rectgives 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_backdropshows 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_Borderkeeps 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_editwithui.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 flagsText_InputandScroll_Self.- fidget: a multi-line editor card, more shortcuts in the cheat sheet,
--state_titlefor 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 oftodo.exe.
Fixed
icon_buttonregistered 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_PROBElatency / 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).