Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/voxkit/gui/components/loading_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
QWidget,
)

from voxkit.gui.styles import Colors
from voxkit.gui.styles import Colors, Labels


class _WaveformStrip(QWidget):
Expand Down Expand Up @@ -193,6 +193,16 @@ def init_ui(self, message: str, title: str, subtitle: str | None):
self.subtitle_label.setVisible(bool(subtitle))
layout.addWidget(self.subtitle_label)

# Fine-print institutional credit
credit_label = QLabel(
"VoxKit is brought to you by the University of Wisconsin-Madison "
"and Arizona State University"
)
credit_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
credit_label.setWordWrap(True)
credit_label.setStyleSheet(Labels.CREDIT)
layout.addWidget(credit_label)

# Card background: subtle vertical gradient (light tints of the app's
# primary blue) with a primary-blue rounded border. Painted on the child
# frame (not the translucent window) so it renders reliably.
Expand All @@ -210,7 +220,7 @@ def init_ui(self, message: str, title: str, subtitle: str | None):
"""
)

self.setFixedSize(420, 260)
self.setFixedSize(420, 290)

def center_on_screen(self):
"""Center the dialog on the primary screen."""
Expand Down
2 changes: 1 addition & 1 deletion tests/gui/test_loading_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_fixed_size(self, qtbot):
dialog = LoadingDialog()
qtbot.addWidget(dialog)
assert dialog.width() == 420
assert dialog.height() == 260
assert dialog.height() == 290

def test_close_gracefully_stops_timer(self, qtbot):
dialog = LoadingDialog()
Expand Down
Loading