diff --git a/labscript_utils/splash.py b/labscript_utils/splash.py index 3aecf8a..e00c892 100644 --- a/labscript_utils/splash.py +++ b/labscript_utils/splash.py @@ -29,6 +29,15 @@ Qt = QtCore.Qt +# Set auto high-DPI scaling - this ensures pixel metrics are scaled +# appropriately so that we don't get a weird mix of large fonts and small +# everything else on High DPI displays: +QtWidgets.QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True) +# Use high res pixmaps if available, instead of rendering at low resolution and +# upscaling: +QtWidgets.QApplication.setAttribute(Qt.AA_UseHighDpiPixmaps, True) + + class Splash(QtWidgets.QFrame): w = 250 h = 230 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy