Skip to content

gui_toolkit 0.125.0

Choose a tag to compare

@sachahjkl sachahjkl released this 09 Nov 17:55
· 2422 commits to master since this release
v0.125.0
8b22caa

Added

  • qr and ui.qr_code: QR Codes (ISO/IEC 18004, model 2), as Project Nayuki's generator makes them: numeric, alphanumeric or byte mode, levels L, M, Q and H, the smallest version that holds the text, the mask of lowest penalty. ui.qr_code draws one dark on white in whole device pixels with its quiet zone, encoded again only when its text changes (docs/qr.md).
  • platform.notify: system notifications without a tray icon (title, body, PNG icon, urgency, buttons, replace in place, silent), notify_close, notify_supported, notify_set_app; clicks, buttons and closes come back as Notification_Click, Notification_Action and Notification_Closed events of the window. Linux: org.freedesktop.Notifications (desktop-entry, urgency and image-data hints; an ActivationToken lets raise_window bring the window to the front on Wayland, notify_activation_token). Windows 10 and later: WinRT toasts under a registered AppUserModelID. See docs/notifications.md.

Changed

  • Text in colour stripes is a touch bolder (Slug): font.Settings.slug_stripe_weight (default SLUG_STRIPE_WEIGHT_PX, 0.2 px, at every size) moves the stems' sides out, across only, so striped text no longer reads thinner than grey text and keeps its baseline and x-height. The Slug shaders take the edges' moves per axis.
  • winrt.event_handler_make: the callback receives the sender and the arguments of the event (callback(user, sender, args)), and an optional done(user) runs when the last reference goes; winrt.typed_event_handler_iid and SIG_INSPECTABLE give the IDs of TypedEventHandler<S, T>. A program that passes a callback of its own to event_handler_make changes its signature to proc(user, sender, args: rawptr) (Papier's clipboard history does).
  • platform.tray_notify on Linux shows its notification through the code of notify: one Notify call for both; info is a low urgency, error a critical one.

Fixed

  • Offscreen windows on Linux hear the session bus and the accessibility bus while they wait: notifications and portal answers reach a window that has no display.