mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #2012797 [Enhancement request: Different shade for active VL tab](https://bugs.launchpad.net/calibre/+bug/2012797)
This commit is contained in:
parent
8959ada93f
commit
3d2ef6486b
@ -376,6 +376,17 @@ class PaletteManager(QObject):
|
|||||||
ss = 'QTabBar::tab:selected { font-style: italic }\n\n'
|
ss = 'QTabBar::tab:selected { font-style: italic }\n\n'
|
||||||
if self.is_dark_theme:
|
if self.is_dark_theme:
|
||||||
ss += 'QMenu { border: 1px solid palette(shadow); }'
|
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.setStyleSheet(ss)
|
||||||
app.palette_changed.emit()
|
app.palette_changed.emit()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user