2323class SplashScreen :
2424 """The custom splash screen widget for TagStudio."""
2525
26- VERSION_STR : str = " " .join (
27- [
28- f"{ Translations ['about.version' ]} " ,
29- f"{ VERSION } { (' (' + Translations [BUILD_TYPE ] + ')' ) if BUILD_TYPE else '' } " ,
30- ]
31- )
3226 DEFAULT_SPLASH = Splash .AURORA
3327
3428 def __init__ (
@@ -68,6 +62,13 @@ def get_pixmap(self) -> QPixmap:
6862 case _:
6963 pass
7064
65+ version_str = " " .join (
66+ [
67+ f"{ Translations ['about.version' ]} " ,
68+ f"{ VERSION } { (' (' + Translations [BUILD_TYPE ] + ')' ) if BUILD_TYPE else '' } " ,
69+ ]
70+ )
71+
7172 # TODO: Store any differing data elsewhere and load dynamically instead of hardcoding.
7273 match self .splash_name :
7374 case Splash .CLASSIC :
@@ -88,7 +89,7 @@ def get_pixmap(self) -> QPixmap:
8889 painter .drawText (
8990 QRect (0 , - 50 , 960 , 540 ),
9091 int (Qt .AlignmentFlag .AlignBottom | Qt .AlignmentFlag .AlignHCenter ),
91- SplashScreen . VERSION_STR ,
92+ version_str ,
9293 )
9394
9495 case Splash .GOO_GEARS :
@@ -110,7 +111,7 @@ def get_pixmap(self) -> QPixmap:
110111 painter .setPen (pen )
111112 painter .drawText (
112113 QRect (40 , 420 , 960 , 540 ),
113- SplashScreen . VERSION_STR ,
114+ version_str ,
114115 )
115116
116117 case Splash .NINETY_FIVE :
@@ -136,7 +137,7 @@ def get_pixmap(self) -> QPixmap:
136137 painter .drawText (
137138 QRect (- 30 , 25 , 960 , 540 ),
138139 int (Qt .AlignmentFlag .AlignTop | Qt .AlignmentFlag .AlignRight ),
139- SplashScreen . VERSION_STR ,
140+ version_str ,
140141 )
141142
142143 case Splash .AURORA :
@@ -157,7 +158,7 @@ def get_pixmap(self) -> QPixmap:
157158 painter .drawText (
158159 QRect (0 , - 50 , 960 , 540 ),
159160 int (Qt .AlignmentFlag .AlignBottom | Qt .AlignmentFlag .AlignHCenter ),
160- SplashScreen . VERSION_STR ,
161+ version_str ,
161162 )
162163
163164 case _:
0 commit comments