diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index 2df4d0aa03..ba15031624 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -126,6 +126,7 @@ defs['show_vl_tabs'] = False defs['show_highlight_toggle_button'] = False defs['add_comments_to_email'] = False defs['cb_preserve_aspect_ratio'] = False +defs['show_rating_in_cover_browser'] = True del defs # }}} diff --git a/src/calibre/gui2/cover_flow.py b/src/calibre/gui2/cover_flow.py index 1eb11adac2..1b6530223c 100644 --- a/src/calibre/gui2/cover_flow.py +++ b/src/calibre/gui2/cover_flow.py @@ -97,10 +97,11 @@ if pictureflow is not None: return ans def subtitle(self, index): - try: - return u'\u2605'*self.model.rating(index) - except: - pass + if gprefs['show_rating_in_cover_browser']: + try: + return u'\u2605'*self.model.rating(index) + except: + pass return '' def reset(self): diff --git a/src/calibre/gui2/preferences/look_feel.py b/src/calibre/gui2/preferences/look_feel.py index 6ced51f3e1..a0402695a3 100644 --- a/src/calibre/gui2/preferences/look_feel.py +++ b/src/calibre/gui2/preferences/look_feel.py @@ -137,10 +137,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): r = self.register - r('gui_layout', config, restart_required=True, choices= - [(_('Wide'), 'wide'), (_('Narrow'), 'narrow')]) - r('ui_style', gprefs, restart_required=True, choices= - [(_('System default'), 'system'), (_('Calibre style'), + r('gui_layout', config, restart_required=True, choices=[(_('Wide'), 'wide'), (_('Narrow'), 'narrow')]) + r('ui_style', gprefs, restart_required=True, choices=[(_('System default'), 'system'), (_('Calibre style'), 'calibre')]) r('book_list_tooltips', gprefs) r('tag_browser_old_look', gprefs, restart_required=True) @@ -155,6 +153,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): r('cover_flow_queue_length', config, restart_required=True) r('cover_browser_reflections', gprefs) + r('show_rating_in_cover_browser', gprefs) r('extra_row_spacing', gprefs) def get_esc_lang(l): diff --git a/src/calibre/gui2/preferences/look_feel.ui b/src/calibre/gui2/preferences/look_feel.ui index 6721fb1e7c..4962231656 100644 --- a/src/calibre/gui2/preferences/look_feel.ui +++ b/src/calibre/gui2/preferences/look_feel.ui @@ -897,7 +897,7 @@ a few top-level elements. - + Qt::Vertical @@ -913,14 +913,14 @@ a few top-level elements. - + When showing cover browser in separate window, show it &fullscreen - + margin-left: 1.5em @@ -951,6 +951,13 @@ them to all have the same width and height + + + + Show book &rating in cover browser + + +