mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2069317 [Background colour of the cover grid only changes after a restart](https://bugs.launchpad.net/calibre/+bug/2069317)
This commit is contained in:
parent
dcc2078675
commit
2bc1b4018c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user