Skip to content

Commit

Permalink
Fix #2069317 [Background colour of the cover grid only changes after …
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jun 16, 2024
1 parent dcc2078 commit 2bc1b40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/calibre/gui2/library/alternate_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,10 @@ def set_color(self):
r, g, b = gprefs['cover_grid_color']
tex = gprefs['cover_grid_texture']
pal = self.palette()
pal.setColor(QPalette.ColorRole.Base, QColor(r, g, b))
bgcol = QColor(r, g, b)
pal.setColor(QPalette.ColorRole.Base, bgcol)
self.setPalette(pal)
ss = ''
ss = f'background-color: {bgcol.name()}; '
if tex:
from calibre.gui2.preferences.texture_chooser import texture_path
path = texture_path(tex)
Expand Down

0 comments on commit 2bc1b40

Please sign in to comment.