From f2bb0395bf3cbc2009bb8b69ee29ff9f1a827d50 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 4 Jan 2023 18:16:19 +1000 Subject: [PATCH] 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/ --- qt/aqt/browser/sidebar/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser/sidebar/tree.py b/qt/aqt/browser/sidebar/tree.py index e778ed73b..bfba86396 100644 --- a/qt/aqt/browser/sidebar/tree.py +++ b/qt/aqt/browser/sidebar/tree.py @@ -303,7 +303,7 @@ class SidebarTreeView(QTreeView): ) -> None: if self.current_search and (item := self.model().item_for_index(idx)): if item.is_highlighted(): - brush = QBrush(theme_manager.qcolor(colors.STATE_SUSPENDED)) + brush = QBrush(theme_manager.qcolor(colors.HIGHLIGHT_BG)) painter.save() painter.fillRect(options.rect, brush) painter.restore()