Fix search highlight color in dark mode

This commit is contained in:
Kovid Goyal 2019-12-14 09:40:53 +05:30
parent 36fbbb6ae1
commit ebba389a6a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -922,7 +922,7 @@ class BooksModel(QAbstractTableModel): # {{{
return self.column_to_dc_map[col](index.row())
elif role == Qt.BackgroundRole:
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:
key = self.column_map[col]
id_ = self.id(index)