Show a warning when configuring colors with system user interface style

This commit is contained in:
Kovid Goyal 2024-02-05 12:11:14 +05:30
parent bdc000d2ec
commit f5c5a149e9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -166,6 +166,12 @@ class PaletteConfig(Dialog):
def setup_ui(self): def setup_ui(self):
self.l = l = QVBoxLayout(self) self.l = l = QVBoxLayout(self)
app = Application.instance()
if not app.palette_manager.using_calibre_style:
self.wla = la = QLabel('<p>' + _('<b>WARNING:</b> 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() h = QHBoxLayout()
self.la = la = QLabel(_('Color &palette')) self.la = la = QLabel(_('Color &palette'))
self.palette = p = QComboBox(self) self.palette = p = QComboBox(self)