Skip to content

Sharp logos and scaled text with Windows display scaling - #461

Merged
PierreRaybaut merged 2 commits into
developfrom
fix/460-hidpi-rendering
Oct 29, 2026
Merged

PierreRaybaut merged 2 commits into
developfrom
fix/460-hidpi-rendering

Conversation

@PierreRaybaut

Copy link
Copy Markdown
Contributor

Closes #460 (related: PlotPyStack/guidata#121, DataLab-Platform/SigimaX#33).

With a Windows display scaling greater than 100% (e.g. 125%), the splash screen, the welcome page and guided tour logos and the plot watermark were blurry, and most of the text of the user interface kept its 100% size (Qt 5 only).

Changes

  • Text scaling — fixed in guidata (Sharp images and scaled text with Windows display scaling PlotPyStack/guidata#122, merged): with Qt 5 on Windows, the default font is now the message font of the system ("Segoe UI", 9pt), like with Qt 6.
  • Images — scripts/build_resources.py gets a new logo target, which renders the images displayed by the application (splash screen, watermark, banners) from their SVG source, together with their @2x high-resolution variant (CairoSVG). DataLab-Banner-200.png and DataLab-Banner2-100.png, which were not generated by the script, are now. The 1x images were regenerated (same appearance; the watermark lost its colored text fringes).
  • The welcome page and guided tour logos are loaded with guidata.configtools.get_pixmap, which uses the @2x variants on high-DPI displays; the splash screen and watermark are loaded by SigimaX (Sharp splash screen and watermark on high-DPI displays SigimaX#34).
  • Release notes, contributing guide (regenerating the images) and French translations.

get_pixmap is available in guidata develop/master; the minimum guidata version required by DataLab is left unchanged for now and will be raised once guidata is released.

Tests

  • Full test suite passes locally (1254 passed, 3 skipped, PyQt5).
  • Rendering checked with QT_SCALE_FACTOR=1.25: logos are rendered at 438×144 device pixels from the @2x variant instead of an upscaled 350×115 image.

The splash screen, the welcome page and guided tour logos and the plot
watermark were blurry with a display scaling greater than 100% (e.g.
125%): they only existed as PNG files rendered for a 100% scaling, which
Qt upscaled.

scripts/build_resources.py gets a new "logo" target, which renders the
images displayed by the application from their SVG source together with
their @2x high-resolution variant (CairoSVG). The welcome page and guided
tour logos are loaded with guidata's get_pixmap, which uses these variants
(the splash screen and the watermark are loaded by SigimaX).

Refs #460

Assisted-by: Claude Opus 5.5
@PierreRaybaut PierreRaybaut added the bug Something isn't working label Oct 29, 2026
@PierreRaybaut
PierreRaybaut merged commit 6115f84 into develop Oct 29, 2026
6 checks passed
@PierreRaybaut
PierreRaybaut deleted the fix/460-hidpi-rendering branch October 29, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant