Skip to content

Commit

Permalink
black and flake8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Animesh404 committed Jan 4, 2025
1 parent f7f15c3 commit e782243
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openadapt/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def on_dashboard_ready_wrapper() -> None:

if (
not hasattr(tray_instance.dashboard_monitor, "monitor_thread")
or not tray_instance.dashboard_monitor.monitor_thread.isRunning()
or not tray_instance.dashboard_monitor.monitor_thread.isRunning() # noqa: E501
):
logger.debug(
"Dashboard appears to be already ready, "
Expand Down
18 changes: 12 additions & 6 deletions openadapt/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ def __init__(self) -> None:
self.title_label = QLabel("OpenAdapt", self)
self.title_label.setGeometry(0, 15, 400, 30)
self.title_label.setAlignment(Qt.AlignCenter)
self.title_label.setStyleSheet("""
self.title_label.setStyleSheet(
"""
QLabel {
color: #FFFFFF;
font-family: Arial;
font-size: 20px;
font-weight: bold;
}
""")
"""
)

self.progress_bar = QProgressBar(self)
self.progress_bar.setGeometry(50, 55, 300, 6)
Expand All @@ -39,7 +41,8 @@ def __init__(self) -> None:

self.setWindowFlags(Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint)

self.progress_bar.setStyleSheet("""
self.progress_bar.setStyleSheet(
"""
QProgressBar {
border: none;
background: rgba(255, 255, 255, 0.1);
Expand All @@ -50,15 +53,18 @@ def __init__(self) -> None:
stop:0 #2196F3, stop:1 #64B5F6);
border-radius: 3px;
}
""")
"""
)

self.status_label.setStyleSheet("""
self.status_label.setStyleSheet(
"""
QLabel {
color: #CCCCCC;
font-size: 11px;
font-family: Arial;
}
""")
"""
)

def update_status(self, message: str) -> None:
"""Update the status message displayed on the splash screen."""
Expand Down

0 comments on commit e782243

Please sign in to comment.