From cae60d5a54c26f3d734feff383c4e537623624a7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Aug 2016 21:17:08 +0530 Subject: [PATCH] Increase size of generated theme cover image so it can be used for hi dpi display --- src/calibre/gui2/icon_theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/icon_theme.py b/src/calibre/gui2/icon_theme.py index 1f40c93e14..6da70effd3 100644 --- a/src/calibre/gui2/icon_theme.py +++ b/src/calibre/gui2/icon_theme.py @@ -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: