mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
vary sidebar highlight with theme
This commit is contained in:
parent
9584efc066
commit
151cf52718
1 changed files with 2 additions and 2 deletions
|
@ -296,8 +296,8 @@ class SidebarTreeView(QTreeView):
|
|||
return super().drawRow(painter, options, idx)
|
||||
if not (item := self.model().item_for_index(idx)):
|
||||
return super().drawRow(painter, options, idx)
|
||||
if self.current_search.lower() in item.full_name.lower():
|
||||
brush = QBrush(QColor("lightyellow"))
|
||||
if self.current_search.lower() in item.name.lower():
|
||||
brush = QBrush(theme_manager.qcolor("suspended-bg"))
|
||||
painter.save()
|
||||
painter.fillRect(options.rect, brush)
|
||||
painter.restore()
|
||||
|
|
Loading…
Reference in a new issue