mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-02 15:04:44 +01:00
Increase the margins above and below column icons by 1px
This commit is contained in:
parent
be9a51f3b2
commit
ad58fc7057
1 changed files with 2 additions and 2 deletions
|
|
@ -134,9 +134,9 @@ def __call__(self, id_, fmts, cache_index, db, icon_cache, icon_bitmap_cache,
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue