From 9c4bd9de0eddd49d11a0b29a7647782a35d808d1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 14 Oct 2019 21:18:37 +0530 Subject: [PATCH] macOS: Fix for text in drop down boxes being black in dark mode --- src/calibre/gui2/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index d20d10a414..dd21a328a4 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -1016,6 +1016,9 @@ class Application(QApplication): pal = self.palette() pal.setColor(pal.Link, QColor('#6CB4EE')) self.setPalette(pal) + if isosx and self.using_calibre_style: + # Workaround for https://bugreports.qt.io/browse/QTBUG-75321 + self.setStyleSheet('QComboBox { color: %s}' % pal.color(pal.WindowText).name(QColor.HexRgb)) def load_calibre_style(self): icon_map = self.__icon_map_memory_ = {}