mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix search highlight color in dark mode
This commit is contained in:
parent
36fbbb6ae1
commit
ebba389a6a
@ -922,7 +922,7 @@ class BooksModel(QAbstractTableModel): # {{{
|
|||||||
return self.column_to_dc_map[col](index.row())
|
return self.column_to_dc_map[col](index.row())
|
||||||
elif role == Qt.BackgroundRole:
|
elif role == Qt.BackgroundRole:
|
||||||
if self.id(index) in self.ids_to_highlight_set:
|
if self.id(index) in self.ids_to_highlight_set:
|
||||||
return (QColor('lightgreen'))
|
return QColor('#027524') if QApplication.instance().is_dark_theme else QColor('#b4ecb4')
|
||||||
elif role == Qt.ForegroundRole:
|
elif role == Qt.ForegroundRole:
|
||||||
key = self.column_map[col]
|
key = self.column_map[col]
|
||||||
id_ = self.id(index)
|
id_ = self.id(index)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user