mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
macOS: Fix for text in drop down boxes being black in dark mode
This commit is contained in:
parent
30731ad4e3
commit
9c4bd9de0e
@ -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_ = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user