Make text in current tab italic throughout

This commit is contained in:
Kovid Goyal 2020-01-12 08:04:26 +05:30
parent 6b5b742cda
commit 3247c8b6ae
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 1 additions and 1 deletions

View File

@ -1047,6 +1047,7 @@ class Application(QApplication):
prints('Using calibre Qt style:', self.using_calibre_style)
if self.using_calibre_style:
self.load_calibre_style()
self.setStyleSheet('QTabBar::tab:selected { font-style: italic }')
self.paletteChanged.connect(self.on_palette_change)
self.on_palette_change()

View File

@ -76,7 +76,6 @@ class Central(QStackedWidget): # {{{
c.setLayout(l)
l.setContentsMargins(0, 0, 0, 0)
self.editor_tabs = t = QTabWidget(c)
self.editor_tabs.setStyleSheet('QTabBar::tab:selected { font-style: italic }')
l.addWidget(t)
t.setDocumentMode(True)
t.setTabsClosable(True)