github egoist/mygo v0.8.1
MyGo 0.8.1

one hour ago

Highlights

  • macOS: animated apps no longer pile up GPU memory. Textures of transient canvases and idle images are freed while an animation runs, so an app with moving lyrics stays small instead of growing past 1.5 GB. (#1393)

New

  • Menu buttons place and open their menus as the app asks. ui.PopoverMenuButtonOptions lines a drawn menu up with the end of its button, or puts it above or beside the button, and the menu still flips at the window's edges. Its Open field lets the app open or close the menu itself, for example when the item the menu acts on goes away in the background. (#1392, requested by @xiyaowong in #1386)
  • Richer items in drawn menus. MenuItem.Danger shows a destructive item such as "Delete…" in the theme's caution color, Subtitle adds a muted second line, Trailing puts a value such as a file size at the item's end, and Content lets an item show anything, such as a download row with a progress bar. Highlighted tells the menu which item the pointer or keyboard is on, so it can preview it, ID keeps a choice and the highlight on their item as labels change or items come and go, and Menu.MaxWidth caps the menu's width with labels ending in an ellipsis. Screen readers read the subtitle and trailing value as the item's description. (#1391, requested by @xiyaowong in #1385)
  • SVG icons and per-item icon colors in menus. mygo.NewMenuIconSVG makes a menu icon from the same ui.SVG an app already uses for ui.Icon, and MenuItem.IconColor tints a template icon in the menus MyGo draws, following the highlight and dimming with a disabled item. (*ui.SVG).Image renders an SVG to pixels. (#1392, requested by @xiyaowong in #1387)
  • ListState.HoldPlace keeps a chat or log list where it is. One call in a click handler keeps the clicked line in place when a fold in the last row opens, and the list follows the end again once it shows it. (#1390, requested by @lixw1994 in #1389)

Fixes

UI and apps

  • A List reads FollowEnd at each layout, so turning it off or on takes effect in the same frame. (#1390, reported by @lixw1994 in #1389)

TypeScript bindings

  • A bound Go method with a parameter named call generates TypeScript that type-checks. (#1388, @HiPanJin)

Full Changelog: v0.8.0...v0.8.1

Don't miss a new mygo release

NewReleases is sending notifications on new releases.