Changelog
All notable changes to ImmyGo are listed here. Versions follow the git tags.
Unreleased
This release changes how and when ImmyGo draws. Most apps need no changes, but read Behaviour changes before upgrading: apps that update plain variables from goroutines, and layouts that relied on text fields or cards sizing to their content, can look different.
Requirements
- Go 1.26 or later (required by yzma and golang.org/x/image); tested on Go 1.26 and 1.27. Gio is v0.10.3, yzma v1.35.0, golang.org/x/image v0.48.0.
Behaviour changes
- Redraw on demand.
ui.Runnow draws a frame only when something changes: input, a widget animation,State.Set/State.Update,ThemeRefValue.Set,ui.Postorui.Invalidate(). An idle window draws nothing; before, every app redrew at the display’s refresh rate. Migration: a goroutine or timer that changes a plain variable read by the build function no longer shows up on its own. Hand the change over withui.Post(func() { ... }), or keep the data in aui.State. A build function that animates by itself should callui.Invalidate()while the animation runs. To get the old behaviour, passui.ContinuousRedraw()toui.Run. - Text fields keep a fixed width. A text field is 200dp wide
(
widget.DefaultTextFieldWidth) unless its container gives it a width, instead of being as wide as its placeholder and growing as you type. Longer text scrolls; a longer placeholder is truncated with “…”..Width()andui.Flexset the width exactly;.MinWidth()only widens the field. Multi-line fields take the full width available. Migration: give fields that should be wider or narrower a.Width(), orui.Flexto fill a row. - Flex children and cards fill their space. A child of
ui.Flexnow gets exactly its share along the stack’s axis (as in Gio’slayout.Flexed) instead of shrinking to its content, so equal weights give equal sizes. A card given a fixed width or a flex share draws its surface over all of it. Migration: if a flex child should stay content-sized, take it out ofui.Flexand use aui.Spacer()to absorb the remaining space. - Lighter default typography. Body text is Regular instead of Medium,
titles and labels Medium instead of SemiBold, headlines SemiBold instead
of Bold. FluentLight draws text in soft black (#1B1B1F) instead of pure
black. Both read cleaner with Gio’s greyscale antialiasing.
Migration: set your own
theme.Typographyor palette colours to keep the previous look. - Node canvas units on high-DPI displays. Node positions are now in dp,
like node sizes, so a graph lays out the same at every display scale.
Before, positions were in pixels while sizes were in dp, so nodes
overlapped at scales above 1. Graphs saved by an earlier version on a
display with a scale above 1 now draw with their nodes further apart;
graphs saved at scale 1 are unaffected.
PanX/PanYare still in screen pixels. ui.Polylinewithout a height is 120dp tall. It used to take all the height available in short columns.- Animators.
Active()onstyle.Animator,FloatAnimatorandColorAnimatornow turns false once the duration has passed, even if the value was never read, so “redraw while active” loops always end.
Added
ui.Post(fn): runs a function on the UI goroutine at the start of the next frame and redraws. Use it to change plain variables or call view and widget methods from goroutines; those methods are not goroutine-safe.ui.Invalidate()andui.ContinuousRedraw().ui.Layout(gtx, theme, view): lays out a view in your own Gio event loop or offscreen, withoutui.Run.IMMYGO_FRAMESTATS=1prints frames drawn per second; an idle app prints 0.IMMYGO_DEBUG=1warns when the build function changes aStateframe after frame, which keeps the window redrawing.ui.Polylineandwidget.StrokePolyline: a cheap line through many points, for charts and traces that change every frame.- DataGrid:
ScrollToRow,FirstVisibleRowandVisibleRowsonwidget.DataGridandui.DataGridView, pluswidget.DataGrid.ScrollPosition. widget.RoundedRectOpandwidget.RoundedRectStrokeOp: rounded rectangle clips cached across frames.widget.DefaultTextFieldWidth.benchmarks/uibench: the same app in ImmyGo and GPUI with shared telemetry, andgo test -benchframe benchmarks inuiandwidget.scripts/readme-gifs: records the README’s GIFs offscreen from scripted input.examples/live-data: four live traces over a 100,000-row data grid.examples/signal(Signal studio): a live waveform shaped with sliders, in any of the ten built-in themes; paused, it draws nothing.benchmarks/uibench/record.sh: records the ImmyGo and GPUI benchmark apps and puts the two recordings side by side.- A new logo in
assets/logo/(mark, 16 px mark, one-colour mark, and wordmarks for dark and light backgrounds), generated byscripts/logo.
Changed
- The gallery examples are packages with a
Main()function, so other programs can run them; each example’smain.gojust calls it. - node-canvas says when saving or loading isn’t available in the browser, instead of failing silently.
- The dashboard example’s stat cards sit in four equal columns, and its network figure no longer goes below zero.
- Dependencies updated: yzma v1.35.0, golang.org/x/image v0.48.0 and their indirect dependencies. A test workflow builds, vets and tests ImmyGo on Go 1.26 and on the latest Go release.
Removed
website/: the site now lives in its own repository.- The workflow that deployed the old site over FTP.
Performance
- Shapes that keep their size (card surfaces, borders, shadows, icons, checkmarks, chevrons) are recorded once and reused across frames, so Gio reuses their geometry.
- Fewer allocations per frame in modifiers, stacks and buttons.
- DataGrid keeps click state only for the rows in view, not for every row.
Fixed
ui.VStack(...).Center()and.End(), and the same onHStack, now align children across the stack; they used to do nothing. A stack is also at least as wide (VStack) or tall (HStack) as its minimum constraint.layout.VStackandlayout.HStackno longer pass their own minimum size on along the stack’s axis, which made a child fill the whole stack and pushed the rest out of view (the dashboard example’s overview).WithAlignment(AlignCenter),AlignEndandAlignStretchnow take effect;AlignStart, the default, behaves as before across the axis.OnTapon a view built inside the build function now registers taps: its gesture state used to be recreated every frame.- Dialogs are centred again; the window’s constraints stretched the dialog card and pinned it to the top-left.
IMMYGO_DEBUGlayout output now includes minimum and maximum heights; duplicate JSON tags dropped them.- The dropdown arrow is sized in dp, so it is no longer half size on high-DPI displays.
- A 1.5dp polyline is drawn 1.5dp wide; it was rounded to 2px.
- The yzma provider’s fallback prompt printed C string pointers instead of the messages.
- Radio buttons are drawn round, and rounded corners no longer bulge outwards: the curves approximating each corner had handles twice as long as they should be, so a full-radius outline came out as a square.
- Outlined circles and pills (unconnected node-canvas ports, among others) no longer have a short spur on one side.