diff --git a/src/calibre/gui2/preferences/look_feel.py b/src/calibre/gui2/preferences/look_feel.py index 4a130871d6..0926096149 100644 --- a/src/calibre/gui2/preferences/look_feel.py +++ b/src/calibre/gui2/preferences/look_feel.py @@ -632,6 +632,14 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): self.sections_view.setSpacing(4) self.sections_view.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOff) self.tabWidget.currentWidget().setFocus(Qt.FocusReason.OtherFocusReason) + self.opt_ui_style.currentIndexChanged.connect(self.update_color_palette_state) + self.update_color_palette_state() + + def update_color_palette_state(self): + if self.opt_ui_style.isVisible(): + enabled = self.opt_ui_style.currentData() == 'calibre' + self.opt_color_palette.setEnabled(enabled) + self.opt_color_palette_label.setEnabled(enabled) def em_export_layout(self): filename = choose_save_file(self, 'em_import_export_field_list', diff --git a/src/calibre/gui2/preferences/look_feel.ui b/src/calibre/gui2/preferences/look_feel.ui index 3ab29a802e..1ffeed4ce3 100644 --- a/src/calibre/gui2/preferences/look_feel.ui +++ b/src/calibre/gui2/preferences/look_feel.ui @@ -296,7 +296,7 @@ - + Color &palette (needs restart): @@ -308,7 +308,9 @@ - The colors to use for the calibre interface. By default the system colors are used. You can change this to force a light or dark color scheme. Note that if this is not set to system default then if the system wide color scheme is changed calibre will not follow it. + <p>The colors to use for the calibre interface. By default the system colors are used. You can change this to force a light or dark color scheme. Note that if this is not set to system default then if the system wide color scheme is changed calibre will not follow it. + +<p>Also, if you set the calibre <i>User interface style</i> to <i>System default</i>, then this setting will not take effect and system colors will always be used.