INNER CODE UNIT · Python
SplashScreen
pairinteraction/pairinteraction · src/pairinteraction_gui/app.py:75
class SplashScreen(QSplashScreen):
"""Startup splash screen with the PairInteraction logo."""
def __init__(self) -> None:
super().__init__()
self.setWindowTitle("Launching the PairInteraction GUI")
border = 16
logo_size = 250
full_size = logo_size + 2 * border
pixmap = QPixmap(full_size, full_size)
pixmap.fill(QColor("#28354e")) # "Dark" theme color
painter = QPainter(pixmap)
painter.translate(border, border)
_draw_logo(painter, logo_size)
painter.end()
self.setPixmap(pixmap)