From f5c5a149e9421b8243191c0a55c83e2f6843eee2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 5 Feb 2024 12:11:14 +0530 Subject: [PATCH] Show a warning when configuring colors with system user interface style --- src/calibre/gui2/dialogs/palette.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/calibre/gui2/dialogs/palette.py b/src/calibre/gui2/dialogs/palette.py index ff18f8f267..3cf73b0caf 100644 --- a/src/calibre/gui2/dialogs/palette.py +++ b/src/calibre/gui2/dialogs/palette.py @@ -166,6 +166,12 @@ class PaletteConfig(Dialog): def setup_ui(self): self.l = l = QVBoxLayout(self) + app = Application.instance() + if not app.palette_manager.using_calibre_style: + self.wla = la = QLabel('

' + _('WARNING: You have configured calibre to use "System" user interface style.' + ' The settings below will be ignored unless you switch back to using the "calibre" interface style.')) + la.setWordWrap(True) + l.addWidget(la) h = QHBoxLayout() self.la = la = QLabel(_('Color &palette')) self.palette = p = QComboBox(self)