Bookshelf: separated current selected and unselected highlight color

This commit is contained in:
un-pogaz
2026-01-04 10:28:34 +01:00
parent c704890740
commit 6512d80574
+3 -1
View File
@@ -1803,8 +1803,10 @@ class BookshelfView(MomentumScrollMixin, QAbstractScrollArea):
self.draw_selection_highlight(painter, spine_rect, color)
def selection_highlight_color(self, is_selected: bool, is_current: bool) -> QColor:
if is_current:
if is_current and is_selected:
return self.palette().color(QPalette.ColorRole.LinkVisited)
if is_current:
return self.palette().color(QPalette.ColorRole.Mid)
if is_selected:
return self.palette().color(QPalette.ColorRole.Highlight)
return QColor()