Skip to content

gui_toolkit 0.372.0

Choose a tag to compare

@sachahjkl sachahjkl released this 01 Dec 12:50
· 161 commits to master since this release
v0.372.0
acd458a

Added

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

Changed

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

Fixed

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