From ad58fc70573e848b40aa782847bb736bf3be7629 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Aug 2014 14:59:31 +0530 Subject: [PATCH] Increase the margins above and below column icons by 1px --- src/calibre/gui2/library/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index f0ff007e3b..0b1b94f84c 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -134,9 +134,9 @@ class ColumnIcon(object): # {{{ result = icon_bitmaps[0] # If the image height is less than the row height, leave it alone - # The -2 allows for a pixel above and below. Also ensure that + # The -4 allows for a margin above and below. Also ensure that # it is always a bit positive - rh = max(2, self.model.row_height - 2) + rh = max(2, self.model.row_height - 4) if result.height() > rh: result = result.scaledToHeight(rh, mode=Qt.SmoothTransformation) icon_cache[id_][cache_index] = result