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 project list
  • Loading branch information
SeqLaz committed Sep 4, 2024
1 parent b9b44ec commit 9f840a8
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(self.tr("Loading projects list…"), Qt.blue)
self.set_feedback(
self.tr("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 @@ -560,7 +563,7 @@ def show_projects(self) -> None:
self.tr(
"You don't have any projects, create your first one by clicking the button in the bottom bar."
),
Qt.blue,
self.palette().color(QPalette.WindowText),
)
return

Expand Down

0 comments on commit 9f840a8

Please sign in to comment.