github beeware/toga v0.5.5
0.5.5

5 hours ago

Features

  • The performance of the WinForms event loop has been significantly improved. (#2613)
  • Dark mode can now be detected on iOS, web, and Windows. (#4408)
  • In order to better match the HTML canvas API, the Canvas widget now has fill_text and stroke_text methods, replacing the previous write_text. (#4432)
  • The Canvas widget's rotate, scale, and translate methods can now be used as context managers. (#4477)
  • The canvas widget's state() context manager now accepts optional keyword parameters to set drawing context attributes upon entering. (#4485)
  • Performance has been improved by avoiding layout refreshes when add and insert operations are redundant and don't move widgets to new parents. (#4529)

Bugfixes

  • On Android, WebView widgets can now display static content that contains # characters (such as CSS color specifications). (#2242)
  • 1-pixel black streaks no longer appear on high DPI screens on WebViews whose content has a transparent background on WinForms. (#3264)
  • Canvas's reset_transform method now correctly resets the transformation on Mac and iOS, instead of clearing the current state. (#4044)
  • WinForms buttons now render their interior regions with the correct native background color when no color is set. (#4342)
  • The handling of null return values on GTK MapView widgets has been corrected. (#4378)
  • Initial application focus on macOS is now more reliable on macOS 26. (#4427)
  • The DetailedList widget on the Windows platform now honors color and background-color styles. (#4444)
  • Providing the color parameter alias when instantiating a Fill or Stroke drawing action no longer throws an erroneous TypeError. (#4472)
  • On the Qt backend, the Canvas widget now reliably draws a solid line when an empty list is assigned to line_dash. (#4475)
  • The size attribute of a window is now guaranteed to return the width and height as integers. (#4505)

Backward Incompatible Changes

  • The Canvas widget's default stroke width has been changed from 2.0 to 1.0, to match that of the HTML canvas. (#4381)
  • The Canvas widget's write_text() method is now deprecated; use fill_text() and/or stroke_text() instead. Unlike write_text, these don't need to be inside fill/stroke context managers. (#4432)

Misc

Don't miss a new toga release

NewReleases is sending notifications on new releases.