diff --git a/tagstudio/src/qt/splash.py b/tagstudio/src/qt/splash.py index 746b9ec45..eec11be70 100644 --- a/tagstudio/src/qt/splash.py +++ b/tagstudio/src/qt/splash.py @@ -61,13 +61,17 @@ def get_pixmap(self) -> QPixmap: pixmap = QPixmap(960, 540) pixmap.fill(QColor("black")) painter = QPainter(pixmap) + point_size_scale: float = 1.0 + match painter.font().family(): + case "Segoe UI": + point_size_scale = 0.75 # TODO: Store any differing data elsewhere and load dynamically instead of hardcoding. match self.splash_name: case Splash.SPLASH_CLASSIC: # Copyright font = painter.font() - font.setPointSize(22) + font.setPointSize(math.floor(22 * point_size_scale)) painter.setFont(font) pen = QPen(QColor("#9782ff")) painter.setPen(pen) @@ -88,7 +92,7 @@ def get_pixmap(self) -> QPixmap: case Splash.SPLASH_GOO_GEARS: # Copyright font = painter.font() - font.setPointSize(22) + font.setPointSize(math.floor(22 * point_size_scale)) painter.setFont(font) pen = QPen(QColor("#9782ff")) painter.setPen(pen) @@ -98,7 +102,7 @@ def get_pixmap(self) -> QPixmap: ) # Version font = painter.font() - font.setPointSize(22) + font.setPointSize(math.floor(22 * point_size_scale)) painter.setFont(font) pen = QPen(QColor("#809782ff")) painter.setPen(pen) @@ -111,7 +115,8 @@ def get_pixmap(self) -> QPixmap: # Copyright font = QFont() font.setFamily("Times") - font.setPointSize(22) + font.setPointSize(math.floor(22 * point_size_scale)) + font.setWeight(QFont.Weight.DemiBold) font.setStyleHint(QFont.StyleHint.Serif) painter.setFont(font) pen = QPen(QColor("#000000")) @@ -122,7 +127,7 @@ def get_pixmap(self) -> QPixmap: Splash.COPYRIGHT_STR, ) # Version - font.setPointSize(22) + font.setPointSize(math.floor(22 * point_size_scale)) painter.setFont(font) pen = QPen(QColor("#AA2A0044")) painter.setPen(pen)