Fix #2012797 [Enhancement request: Different shade for active VL tab](https://bugs.launchpad.net/calibre/+bug/2012797)

This commit is contained in:
Kovid Goyal 2023-04-02 19:49:30 +05:30
parent 8959ada93f
commit 3d2ef6486b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -376,6 +376,17 @@ class PaletteManager(QObject):
ss = 'QTabBar::tab:selected { font-style: italic }\n\n'
if self.is_dark_theme:
ss += 'QMenu { border: 1px solid palette(shadow); }'
ss += '''
QTabBar::tab:selected {
background-color: palette(base);
border: 2px solid gray;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-width: 0;
padding: 2px;
padding-left: 0.5em;
}
'''
app.setStyleSheet(ss)
app.palette_changed.emit()