Skip to content

Commit

Permalink
Fix hard-to-read dark blue text on dark background scenario in the cl…
Browse files Browse the repository at this point in the history
…oud projects overview
  • Loading branch information
nirvn committed Sep 3, 2024
1 parent 561f4cf commit 1891667
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qfieldsync/gui/cloud_projects_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
QFont,
QIcon,
QPainter,
QPalette,
QPen,
QPixmap,
QRegularExpressionValidator,
Expand Down Expand Up @@ -309,7 +310,9 @@ def on_auth_accepted(self):

def on_projects_cached_projects_started(self) -> None:
self.projectsStack.setEnabled(False)
self.set_feedback("Loading projects list…", Qt.blue)
self.set_feedback(
"Loading projects list…", self.palette().color(QPalette.WindowText)
)

def on_projects_cached_projects_error(self, error: str) -> None:
self.projectsStack.setEnabled(True)
Expand Down Expand Up @@ -556,7 +559,7 @@ def show_projects(self) -> None:
if len(self.network_manager.projects_cache.projects) == 0:
self.set_feedback(
"You don't have any projects, create some by clicking the button in the bottom bar.",
Qt.blue,
self.palette().color(QPalette.WindowText),
)
return

Expand Down

0 comments on commit 1891667

Please sign in to comment.