Changelog
All notable changes to gowaku are recorded here. The format follows Keep a Changelog, and versions follow Semantic Versioning. Before v1.0, a minor version may change the public API; each such change is listed under Changed or Removed.
Unreleased
0.3.0 - 2026-11-25
Added
App.OnQuitRequest, which answers when the OS asks the whole application to quit, which only macOS does (Cmd+Q, Quit in the Dock, logging out): true quits asQuitdoes, false keeps running. Without it every window gets a close request, as before.WindowHandle.Hide,ShowandHidden, which take a window off the screen and the task bar without closing it, so that an application can stay in the tray: hide the window inOnCloseRequest, return false, and show it from the tray. A click on the Dock icon shows hidden windows again on macOS. Wayland cannot hide a window, and minimizes it instead.gowaku.RequestNotifications(ctx, done), which asks for leave to show notifications (the user, on macOS) and callsdoneon the UI goroutine with nil orErrNoNotifications.core.NewTreeWithHost, which connects a tree to its host before the first build.gowakutest.Tester.SetNotificationsAllowed, which decides the answer ofRequestNotificationsand whetherNotifysucceeds.platform:Trays.RequestNotifications,Window.SetVisible, and the eventsEventQuitandEventReopen.
Fixed
- macOS:
Notifysent the notification without waiting for the user to allow notifications, so that the first one could be lost while macOS asked, and it returned nil although the user had refused. Notifications sent before the answer now wait for it, and once the user has refusedNotifyreturnsErrNoNotifications. - macOS: notifications did not show while the application was in front. They now show as a banner, in the list and with sound, as on Windows and Linux.
ShowTray,Notifyand the clipboard functions called from anInitStateof the first build of a window, or of agowakutest.Tester, found no host and failed, withErrNoTrayforShowTray, although its documentation allowsInitState. The tree now has its host before it is first built.
0.2.1 - 2026-11-24
Fixed
- Linux: with Num Lock on, a key of the numeric keypad sent the navigation key it carries without Num Lock as well as its digit, so that
124typed on the keypad into a text field became142. On Wayland and X11 the keypad keys now follow Num Lock and Shift: with Num Lock on they sendKey0toKey9andKeyPeriod.
0.2.0 - 2026-11-21
Changed
gowaku.FileDialog,FileFilter,ClipboardContentandClipboardKindsno longer come fromplatform, which promises no compatibility: they are defined incoreand named in gowaku, asWidgetandBuildContextare. They have the same fields, so code that uses them through gowaku still builds; code that passed them to or fromplatformmust convert.gowaku.ThemeModeis likewisetheme.Mode, withThemeSystem,ThemeLightandThemeDarkas before.gowaku.ShowFileDialog,SetThemeandCurrentThemetake aBuildContextfirst, asShowTrayand the clipboard functions do:ShowFileDialog(ctx, d, done),SetTheme(ctx, set, mode),CurrentTheme(ctx). They go through the window ofctx, so they work under agowakutest.Tester, and the file dialog opens in front of that window instead of the focused one, or of another open window once that one has closed. Code with no context of its own, as a callback ofPost, keeps theBuildContextof a widget, or usesWindowHandle.ShowFileDialog. Outside a window they no longer panic:ShowFileDialogcallsdonewithErrNoFileDialog,SetThemedoes nothing, andCurrentThemereturns the zerotheme.Set, which stands fortheme.Default(), andThemeSystem.gowakutest.Tester.ClipboardContentandSetClipboardContenttake acore.ClipboardContent, which isgowaku.ClipboardContent.ClipboardContent.Kindshas a value receiver, so thatgowaku.ReadClipboard(ctx, k).Kinds()builds.field.InputtakesOnFocus func(focused bool)as a field of its own, andfield.ExtrasandInput.Extrasare gone. ReplaceExtras: field.Extras{OnFocus: f}withOnFocus: f.overlay.Dialog.OnDismissRequestandoverlay.Sheet.OnDismissRequestare nowfunc() bool, asOnCloseRequestof a window is: Escape or a click beside the dialog or sheet closes it when the function returns true and leaves it open when it returns false. A function that kept the dialog open and calleddismissitself to close it should nowreturn false; one that only looked on canreturn trueand need not calldismiss.overlay.ShowDialogandoverlay.ShowSheetreturndismiss func(), asoverlay.ShowToastdoes: the same function thatbuildgets, which does nothing once the dialog or sheet is closing or gone. Code that called them as a statement compiles as before; code that saved thedismissofbuildin a variable only to close the dialog from outside can take the return value instead.
Added
core.FileDialogHost, which a host implements to show file dialogs.theme.Mode, withModeSystem,ModeLight,ModeDarkandMode.For, whichgowaku.ThemeModenames.gowakutest: file dialogs that the test answers, throughTester.FileDialogs,Tester.FileDialogandFileDialog.Options,Choose,CancelandFail;gowaku.SetThemechanges the theme of the Tester's tree, andThemeSystemfollowsOptions.Dark.
0.1.2 - 2026-11-20
Fixed
- Ruby: a group ruby drew its whole base with the font and orientation of its first character, so that in
AI時代the kanji took a Latin font, or a kanji from a fallback font became tofu, and in vertical text the kanji turned with the Latin letters. The base now keeps the look of each character. Line breaking and the space between Japanese and Western text after the group follow its last character, not its first;jlreq.Unithas a newLastfield for that. Ruby longer than its base now overhangs small kana and the prolonged sound mark as it does other kana (JLReq 3.3.8). Intext/aozora, a kanji with a variation selector, as in葛󠄀《かつら》, is part of the implicit base. - Vertical text: dashes, leaders and curly quotes (
… ‥ ― — – ‐ “ ” ‘ ’) took their orientation from the script around them, so between kana a dash with no vertical form in the font, such as—in Yu Gothic, stood upright and crossed the column, and alone or next to Latin…turned sideways instead of taking its vertical form. They now stand upright where the font has avertform for them and turn sideways where it does not. - JLReq Oikomi counted the space after the last character of a line, such as the quarter em before Western text, as room to squeeze, although that space goes with the line end. A character that must not start a line was then pushed in, and the line ran past its width.
- JLReq: a quarter em of Japanese–Western space was put between the ideographic space U+3000 and Western text. JLReq puts none next to a full-width space.
- Editor: a search on its own goroutine, as of a file, looked at
maxMatchesand at being stopped only every 65,536 lines, so that a frequent query over long lines gathered millions of matches before the cap applied, and a new query waited for the batch to end. It now stops at once, at exactly 100,000 matches, also within one line. - Editor: every edit with a search open copied all the matches after the edited lines into a new slice, megabytes a keystroke with 100,000 matches; they now move in place.
- Editor:
Controller.ReplaceAllreplaced the matches one at a time, each moving the lines or the pieces of a file after it and, in an editor that wraps, counting the rows of every line again, so that 100,000 matches took from seconds to minutes. It now makes the new lines in one pass over the matched lines and changes the text in one step; Undo still takes it back at once. layout.MeasuredExtents.Resizerebuilt its trees over every row whenever the count changed, so aListwithMeasureItemsthat gained one row walked all of them. Adding k rows at the end now costs O(k log n), and dropping rows O(log n).collection.TablewithRowKeyandGridViewwithItemKeycalled the key for every row when one row was added or removed at the end, to find the selection again. When the selected rows, the focus and the anchor are still at their indexes, the selection now stays without looking further, and an unchanged build calls the key once per selected row instead of twice.
0.1.1 - 2026-11-20
Fixed
- SVG: an arc whose numbers sweep no angle, or overflow, panicked with an index out of range; it is now drawn as a line. A large
stroke-dashoffsetover a shortstroke-dasharraycould loop forever; the offset is now reduced in float64, and a pattern whose length is not finite draws the stroke solid. - Layers of
RepaintBoundarythat left the tree stayed in the renderer's layer pool for good, and with them the boundary and its whole subtree, so that scrolling aListorGridViewleaked every row that had shown. Entries not drawn for 120 frames are now dropped.Canvas.Resetand the render children of an element no longer keep references past their length. - Windows: the COM calls of the file dialog and of DirectComposition did not keep pointer arguments alive and in place during the call, and the filter specs of the file dialog were not kept until it returned.
SysAllocStringand a UI Automation call converted pointers touintptroutside the call. Wayland: the locale string given to xkb compose was not kept alive during the call.
0.1.0 - 2026-11-18
The first public release.
- A Widget / Element / RenderObject tree with value-type widgets, states, keys and inherited data.
- GPU rendering without cgo: Direct3D 11 on Windows, Vulkan on Linux (Wayland and X11), Metal on macOS (Apple Silicon), and a CPU renderer for tests. Rounded rectangles, gradients, shadows, blur, blend modes, affine transforms, paths, clips, custom shaders, SVG and animated images.
- Text: shaping, fallback fonts, color emoji, BiDi, variable fonts, hyphenation, and Japanese typesetting after JLReq, with ruby and vertical text.
- Input: keyboard, mouse, touchpad, touch, inline IME composition on Windows, macOS and Wayland.
- Accessibility through UI Automation, AT-SPI and the macOS accessibility API.
- Over a hundred widgets in
widgets/basic,control,field,collection,nav,overlay,interactandeditor, and a Markdown view. - Themes generated from one accent color, light and dark following the OS.
- Animations: implicit animations, controllers, springs, hero and page transitions.
- Lists, tables, trees and editors of any length: only the rows in view are laid out, and scroll offsets are float64, so that a hundred million rows still scroll a pixel at a time.
collection.Tabletakes rows throughRowCountandRow;editor.Editortakes lines througheditor.LineSource, as those of a file of gigabytes, keeps only the edited lines in memory and searches on a goroutine of its own. - Desktop: multiple windows, modal windows, menus, custom title bars, tray icons, notifications, clipboard, file dialogs, drag and drop.
gowakutestfor tests without a window,gowakupreviewandcmd/gowaku-previewfor live previews.