From 7c8458b0da24e0dc15bc0a4d5e7c5eaa272dfa8f Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Wed, 27 Mar 2019 03:15:46 -0400 Subject: [PATCH] Fix color scheme of fullscreen editor Color scheme was inverted if foreground was transparent, bug and fix provided by @tildagail [1] and the text on the left side panel was ignoring text color settings, making it unreadable in dark themes, as reported by @worstje in #527 [1] https://github.com/olivierkes/manuskript/issues/527#issuecomment-469578130 --- manuskript/ui/editors/fullScreenEditor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manuskript/ui/editors/fullScreenEditor.py b/manuskript/ui/editors/fullScreenEditor.py index f65b7edf..1f6ee258 100644 --- a/manuskript/ui/editors/fullScreenEditor.py +++ b/manuskript/ui/editors/fullScreenEditor.py @@ -147,8 +147,8 @@ class fullScreenEditor(QWidget): # Colors if self._themeDatas["Foreground/Color"] == self._themeDatas["Background/Color"] or \ self._themeDatas["Foreground/Opacity"] < 5: - self._bgcolor = QColor(self._themeDatas["Text/Color"]) - self._fgcolor = QColor(self._themeDatas["Background/Color"]) + self._fgcolor = QColor(self._themeDatas["Text/Color"]) + self._bgcolor = QColor(self._themeDatas["Background/Color"]) else: self._bgcolor = QColor(self._themeDatas["Foreground/Color"]) self._bgcolor.setAlpha(self._themeDatas["Foreground/Opacity"] * 255 / 100) @@ -202,7 +202,7 @@ class fullScreenEditor(QWidget): p.setBrush(QPalette.ButtonText, self._fgcolor) p.setBrush(QPalette.WindowText, self._fgcolor) - for panel in (self.bottomPanel, self.topPanel): + for panel in (self.bottomPanel, self.topPanel, self.leftPanel): for i in range(panel.layout().count()): item = panel.layout().itemAt(i) if item.widget():