Skip to content

v3.17.1

Choose a tag to compare

@PierreRaybaut PierreRaybaut released this 31 Oct 12:42
· 31 commits to master since this release
v3.17.1
35d6547

guidata Version 3.17.1

🛠 Bug fixes:

  • Blurry icons with display scaling — the icons provided by guidata (array, dictionary and DataFrame editors, console, file types, ...) were 16×16 pixel PNG images, which looked blurry with a display scaling greater than 100% (e.g. 125%, 150%, 200%). They are now SVG images, which remain sharp at any display scaling. get_pixmap (and thus get_image_label and get_image_layout) renders SVG images at the resolution of the display. Applications requesting an icon by its former PNG name (e.g. get_icon("apply.png")) still get it: when a .png image is not found, the .svg image with the same name is used. The notices of the original artwork are provided in guidata/data/icons/LICENSES.txt (fixes Issue #129).
  • Application icons hidden by library icons with the same name — since library icons are SVG images, they share their names with the SVG icons of applications (e.g. apply.svg, delete.svg, edit.svg): as libraries register their image paths before applications, their icons silently replaced the application icons with the same name. The image paths registered last are now searched first, so that the icons of an application take precedence over those of the libraries it depends on. When several image files match a name, an ImageNameConflictWarning lists them, and the new "module:filename" syntax (e.g. get_icon("guidata:apply.svg")) designates an image explicitly among those registered for a module with add_image_module_path; if the image is not found there, the part after the colon is taken as a path relative to the directory of the module's package ("package:path" syntax, e.g. "my_plugin:icons/logo.svg", as used by DataLab plugins). guidata designates its own ambiguous icons explicitly (fixes Issue #131 and Issue #133).
  • Blurry standard icons with display scaling — get_std_icon(name, size) froze the standard Qt icon to a single pixmap rendered for size pixels, so that the icon was upscaled, and blurry, when shown larger or with a display scaling greater than 100% (e.g. in PlotPy toolbars). The size argument is now deprecated and ignored (DeprecationWarning): the icon keeps all its resolutions, and the widget showing it sets its display size. The "Browse..." button of directory items now shows guidata's SVG folder icon: the standard folder icon only exists at 16 pixels on Windows (fixes Issue #135).
  • Blurry low-resolution standard icons — some standard Qt icons are only provided at low resolution by the platform (on Windows: 16 pixels for the folder icons, 32 pixels for the information, warning and error icons), so that they were blurry with a display scaling greater than 100%, e.g. in warning and error dialogs. get_std_icon (and thus get_icon for standard icon names, e.g. ButtonItem(..., "MessageBoxInformation")) now returns sharp SVG icons for SP_DirOpenIcon, SP_DirClosedIcon, SP_DirIcon, SP_BrowserReload, SP_MessageBoxInformation, SP_MessageBoxWarning and SP_MessageBoxCritical (see guidata.qthelpers.STD_ICON_REPLACEMENTS); get_std_icon(name, native=True) returns the platform icon (fixes Issue #137).