mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Increase size of generated theme cover image so it can be used for hi dpi display
This commit is contained in:
parent
402fc88b73
commit
cae60d5a54
@ -152,7 +152,7 @@ def default_cover_icons(cols=5):
|
||||
del extra[0]
|
||||
count += 1
|
||||
|
||||
def create_cover(report, icons=(), cols=5, size=60, padding=8):
|
||||
def create_cover(report, icons=(), cols=5, size=120, padding=16):
|
||||
icons = icons or tuple(default_cover_icons(cols))
|
||||
rows = int(math.ceil(len(icons) / cols))
|
||||
with Canvas(cols * (size + padding), rows * (size + padding), bgcolor='#eee') as canvas:
|
||||
|
Loading…
x
Reference in New Issue
Block a user