mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix unreadable text when searching in sidebar
We used to have a separate SUSPENDED_BG, but it got removed in the UI refactor. https://www.reddit.com/r/Anki/comments/1029gbw/is_anyone_else_with_2155_experience_way_to_bright/
This commit is contained in:
parent
0eddb25287
commit
f2bb0395bf
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ class SidebarTreeView(QTreeView):
|
||||||
) -> None:
|
) -> None:
|
||||||
if self.current_search and (item := self.model().item_for_index(idx)):
|
if self.current_search and (item := self.model().item_for_index(idx)):
|
||||||
if item.is_highlighted():
|
if item.is_highlighted():
|
||||||
brush = QBrush(theme_manager.qcolor(colors.STATE_SUSPENDED))
|
brush = QBrush(theme_manager.qcolor(colors.HIGHLIGHT_BG))
|
||||||
painter.save()
|
painter.save()
|
||||||
painter.fillRect(options.rect, brush)
|
painter.fillRect(options.rect, brush)
|
||||||
painter.restore()
|
painter.restore()
|
||||||
|
|
Loading…
Reference in a new issue