ui: port splash screen from Alpha-v9.4

Reimplements:
- 7f3b3d06af
- 1e4883c577
- 1c53f05e4f
This commit is contained in:
Travis Abendshien
2025-01-05 19:40:37 -08:00
parent c5c86747fe
commit af760ee61a
3 changed files with 25360 additions and 14605 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 397 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -238,6 +238,19 @@ class QtDriver(DriverMixin, QObject):
splash_pixmap = QPixmap(":/images/splash.png")
splash_pixmap.setDevicePixelRatio(self.main_window.devicePixelRatio())
splash_pixmap = splash_pixmap.scaledToWidth(
math.floor(
min(
(
QGuiApplication.primaryScreen().geometry().width()
* self.main_window.devicePixelRatio()
)
/ 4,
splash_pixmap.width(),
)
),
Qt.TransformationMode.SmoothTransformation,
)
self.splash = QSplashScreen(splash_pixmap, Qt.WindowType.WindowStaysOnTopHint)
# self.splash.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
self.splash.show()