diff --git a/src/calibre/gui2/library/alternate_views.py b/src/calibre/gui2/library/alternate_views.py index 6d0f24fdc5..d27a09a527 100644 --- a/src/calibre/gui2/library/alternate_views.py +++ b/src/calibre/gui2/library/alternate_views.py @@ -878,9 +878,10 @@ class GridView(QListView): 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)