github egoist/mygo v0.2.13
MyGo 0.2.13

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

0.2.12 never reached npm (a GitHub Actions outage stopped its release), so these notes cover everything since 0.2.11.

Native UI: what widgets of your own need (#85)

The bases now cover what component libraries on ui, as MujicaUI, could not do through the public API.

Accessibility

  • States for widgets of your own, as ARIA's: Checked, Mixed, Expanded, Value, Range, Step, Level and ActiveDescendant, on macOS, Linux and Windows.
  • Roles for menus drawn in the window and headings: RoleMenu, RoleMenuBar, RoleMenuItem, RoleMenuItemCheckBox, RoleMenuItemRadio, RoleHeading.
  • Ranges tell how far the keys move them: UI Automation's SmallChange and LargeChange, ATK's minimum increment.

Overlays

  • AttachTo(target, at, self) places an element beside another on any side, flips and moves it to stay in the window, and follows the target as it scrolls.
  • PressedOutside, OverlayShortcut and Modal, what PopoverBase and DialogBase are made of, build drawers, hover cards and menus of your own.
  • A press outside a popover closes it and goes on to what is under the pointer, as with the web's popovers; a select's popup still takes it.
  • Escape goes to the overlay built last, on top, and an overlay gives the focus back as it closes.

Inputs

  • Text inputs take ReadOnly, and Composing reports an input method composing. On macOS, Enter choosing a candidate or Escape giving a composition up no longer submits the input or closes a dialog.
  • SliderBase takes Step, Vertical, and Page Up and Down; SelectParts takes Highlight.
  • Disabled elements take no presses or keys (a disabled stepper stepped), and steps snap to their own decimals.
  • Context.OpenURL reports what came of opening the link, with an error when no app could.

Breaking: Context.OpenURL takes a second argument in this release. 0.2.14 undoes that: OpenURL(url) is as it was, and OpenURLThen(url, done) reports the outcome. Upgrade to 0.2.14 rather than changing your calls.

Native UI

  • While the pointer presses an element, the elements it was over as the press began stay hovered, as CSS's :hover does: a close button that shows on a hovered tab takes its click, and a toast stays paused while its action is pressed (#78).
  • Paths look the same whatever drew first (#85).
  • The docs say that a border takes room within the element's size, as box-sizing: border-box does, and that Absolute elements are placed from just inside the parent's border (#88).

macOS

  • Resizing a window or going full screen no longer crashes with a stack overflow once key-value observing has subclassed its view (#80).

Linux

  • Native UI windows under a title bar or a menu bar repaint what changed where it changed. Since 0.2.9 the bottom and right of a change stayed stale, as a row left partly selected (#87, reported in #82).
  • Frameless windows no longer get a title bar from Wayland compositors that decorate windows, as KWin, COSMIC and Sway (#84).

Releases

  • mygo-runtime and the plugins' packages publish while the CLI's binaries build, and each platform package once its binary is built, so npm serves them sooner.

New Contributors

Full Changelog: v0.2.11...v0.2.13

Don't miss a new mygo release

NewReleases is sending notifications on new releases.