github egoist/mygo v0.4.0
MyGo 0.4.0

latest releases: v0.10.0, v0.9.2, v0.9.1...
one month ago

Breaking changes

  • ui.AlertDialog: Escape now closes the alert whatever its buttons say (it used to click a button labeled "Cancel" in English only), and returns the new ui.AlertDismissed (-2) in that frame instead of a button's index. Handle AlertDismissed where you relied on Escape choosing your Cancel button; set *open back to true then to keep an alert that must be answered open. (#212)
  • mygo build file names: disk images and installers now carry their architecture, My App 0.1.0 arm64.dmg and My App Setup 0.1.0 amd64.exe (darwin/universal keeps My App 0.1.0.dmg). Update release scripts or upload globs that use the old names. (#203)
  • TypeScript client: an app that binds no services and declares no events gets no src/mygo.ts anymore, and mygo generate says there is none to write. (#202)

Web pages in native UI

Window.NewWebView and ui.WebView put a full MyGo page (your frontend, bound Go methods, events) inside a window of native UI. Popovers, menus, selects, dialogs, tooltips and toasts draw over the page, and pointer input goes to whatever shows on top. Tab moves focus in and out of the page, assistive technology finds the page in place, and files dropped on it reach the page, on macOS, Linux and Windows. CallerPage and Event.EmitPage let a page be addressed on its own, and the websocket and sqlite plugins now own connections per page. See examples/embed-webview. (#205)

Native UI

  • Element.InsetShadow: inner shadows, as CSS's box-shadow: inset (#198, @baranwang)
  • Bitmap.Update changes a bitmap's picture and keeps its GPU texture, for video and other pictures that change every frame (#197, @rjyo)
  • A text input's OnPaste can take a paste before it is inserted, for example to turn an image into an attachment (#196, @rjyo)
  • Element.Dismissed reports when Escape or a click outside closed a Modal, DialogBase, Popover or PopoverBase, so it can stay open (#212)
  • TextRanges keep their styling while an input method composes (#199)
  • A combobox or select popup no longer jumps back to the highlighted option while you scroll it with the wheel (#209)

Terminal plugin

  • Options.OpenLink gets Command+clicked hyperlinks, URLs and paths, so the app can open them itself (#194, @rjyo)
  • Options.OnPaste and Options.OnKey see a paste or a key press before the terminal handles it (#195, @rjyo)

Fixes

  • A page loaded with LoadHTML shows its HTML again on reload instead of a blank page (#207)
  • Finder's file:///.file/id=… URLs resolve to real paths on drop and paste (#193, @rjyo)
  • The traffic lights stay where TrafficLightPosition puts them when a window sets its own appearance (#192, @rjyo)
  • mygo build shows hdiutil's error message, and retries while a resource is busy (#211)

New Contributors

  • @rjyo made their first contribution in #192

Full Changelog: v0.3.7...v0.4.0

Don't miss a new mygo release

NewReleases is sending notifications on new releases.