macOS: Fix for text in drop down boxes being black in dark mode

This commit is contained in:
Kovid Goyal 2019-10-14 21:18:37 +05:30
parent 30731ad4e3
commit 9c4bd9de0e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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_ = {}