diff --git a/src/calibre/gui2/library/alternate_views.py b/src/calibre/gui2/library/alternate_views.py
index 2d974dc0ad..cee0886b73 100644
--- a/src/calibre/gui2/library/alternate_views.py
+++ b/src/calibre/gui2/library/alternate_views.py
@@ -338,9 +338,11 @@ class CoverDelegate(QStyledItemDelegate):
height = self.original_height = gprefs['cover_grid_height']
self.original_show_title = show_title = gprefs['cover_grid_show_title']
self.original_show_emblems = gprefs['show_emblems']
+ self.orginal_emblem_size = gprefs['emblem_size']
+ self.orginal_emblem_position = gprefs['emblem_position']
self.emblem_size = gprefs['emblem_size'] if self.original_show_emblems else 0
try:
- self.gutter_position = getattr(self, gprefs['emblem_position'].upper())
+ self.gutter_position = getattr(self, self.orginal_emblem_position.upper())
except Exception:
self.gutter_position = self.TOP
@@ -705,7 +707,9 @@ class GridView(QListView):
gprefs['cover_grid_height'] != self.delegate.original_height
)
if (size_changed or gprefs['cover_grid_show_title'] != self.delegate.original_show_title or
- gprefs['show_emblems'] != self.delegate.original_show_emblems):
+ gprefs['show_emblems'] != self.delegate.original_show_emblems or
+ gprefs['emblem_size'] != self.delegate.orginal_emblem_size or
+ gprefs['emblem_position'] != self.delegate.orginal_emblem_position):
self.delegate.set_dimensions()
self.setSpacing(self.delegate.spacing)
if size_changed:
diff --git a/src/calibre/gui2/preferences/look_feel.py b/src/calibre/gui2/preferences/look_feel.py
index 2e31f9410f..8bb0da83b4 100644
--- a/src/calibre/gui2/preferences/look_feel.py
+++ b/src/calibre/gui2/preferences/look_feel.py
@@ -155,6 +155,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
r('cover_browser_reflections', gprefs)
r('show_rating_in_cover_browser', gprefs)
r('extra_row_spacing', gprefs)
+ r('emblem_size', gprefs)
+ r('emblem_position', gprefs, choices=[
+ (_('Left'), 'left'), (_('Top'), 'top'), (_('Right'), 'right'), (_('Bottom'), 'bottom')])
def get_esc_lang(l):
if l == 'en':
diff --git a/src/calibre/gui2/preferences/look_feel.ui b/src/calibre/gui2/preferences/look_feel.ui
index c0cab1f787..af27286b39 100644
--- a/src/calibre/gui2/preferences/look_feel.ui
+++ b/src/calibre/gui2/preferences/look_feel.ui
@@ -244,8 +244,8 @@
Main
-
- -
+
+
-
Control the cover grid view. You can enable this view by clicking the grid button in the bottom right corner of the main calibre window.
@@ -255,7 +255,7 @@
- -
+
-
Qt::Vertical
@@ -271,90 +271,49 @@
- -
-
+
-
+
- Show a field (such as title) &under the covers
+ &Field to show under the covers:
+
+
+ opt_field_under_covers_in_grid
- -
-
-
-
-
-
- &Field to show under the covers:
-
-
- opt_field_under_covers_in_grid
-
-
-
- -
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
+ -
+
- -
-
-
-
-
-
- &Spacing between covers:
-
-
- opt_cover_grid_spacing
-
-
-
- -
-
-
- The spacing between covers. A value of zero means calculate automatically based on cover size.
-
-
- Automatic
-
-
- cm
-
-
- 2
-
-
- 0.100000000000000
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
+ -
+
+
+ &Spacing between covers:
+
+
+ opt_cover_grid_spacing
+
+
- -
+
-
+
+
+ The spacing between covers. A value of zero means calculate automatically based on cover size.
+
+
+ Automatic
+
+
+ cm
+
+
+ 2
+
+
+ 0.100000000000000
+
+
+
+ -
Background for the cover grid
@@ -362,12 +321,22 @@
- -
+
-
Cover size
+
-
+
+
+ By default, calibre chooses a cover size based on your computer's screen size. You can change the cover size here:
+
+
+ true
+
+
+
-
@@ -457,6 +426,16 @@ A value of zero means calculate automatically.
+ -
+
+
+ Reset size to automatic
+
+
+ &Reset size
+
+
+
-
@@ -470,41 +449,51 @@ A value of zero means calculate automatically.
- -
-
-
- By default, calibre chooses a cover size based on your computer's screen size. You can change the cover size here:
-
-
- true
-
-
-
- -
-
-
- Reset size to automatic
-
-
- &Reset size
-
-
-
- -
-
-
- Qt::Vertical
+
-
+
+
+ px
-
-
- 20
- 170
-
+
+ 16
-
+
+ 1000
+
+
+
+ -
+
+
+ &Size of the emblems (if any) shown next to the covers:
+
+
+ opt_emblem_size
+
+
+
+ -
+
+
+ Show a field (such as title) &under the covers
+
+
+
+ -
+
+
+ &Location of the emblems shown next to the covers:
+
+
+ opt_emblem_position
+
+
+
+ -
+