mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make text in current tab italic throughout
This commit is contained in:
parent
6b5b742cda
commit
3247c8b6ae
@ -1047,6 +1047,7 @@ class Application(QApplication):
|
|||||||
prints('Using calibre Qt style:', self.using_calibre_style)
|
prints('Using calibre Qt style:', self.using_calibre_style)
|
||||||
if self.using_calibre_style:
|
if self.using_calibre_style:
|
||||||
self.load_calibre_style()
|
self.load_calibre_style()
|
||||||
|
self.setStyleSheet('QTabBar::tab:selected { font-style: italic }')
|
||||||
self.paletteChanged.connect(self.on_palette_change)
|
self.paletteChanged.connect(self.on_palette_change)
|
||||||
self.on_palette_change()
|
self.on_palette_change()
|
||||||
|
|
||||||
|
@ -76,7 +76,6 @@ class Central(QStackedWidget): # {{{
|
|||||||
c.setLayout(l)
|
c.setLayout(l)
|
||||||
l.setContentsMargins(0, 0, 0, 0)
|
l.setContentsMargins(0, 0, 0, 0)
|
||||||
self.editor_tabs = t = QTabWidget(c)
|
self.editor_tabs = t = QTabWidget(c)
|
||||||
self.editor_tabs.setStyleSheet('QTabBar::tab:selected { font-style: italic }')
|
|
||||||
l.addWidget(t)
|
l.addWidget(t)
|
||||||
t.setDocumentMode(True)
|
t.setDocumentMode(True)
|
||||||
t.setTabsClosable(True)
|
t.setTabsClosable(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user