mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Remove extra spacing between document and scrollbars. This is particularly noticeable when using a dark theme for the viewer.
This commit is contained in:
parent
b03e0c6eb0
commit
631c5a414c
@ -294,7 +294,6 @@ class EbookViewer(MainWindow):
|
||||
self.was_maximized = self.isMaximized()
|
||||
if not self.view.document.fullscreen_scrollbar:
|
||||
self.vertical_scrollbar.setVisible(False)
|
||||
self.centralwidget.layout().setContentsMargins(0, 0, 0, 0)
|
||||
|
||||
super(EbookViewer, self).showFullScreen()
|
||||
|
||||
|
@ -169,6 +169,7 @@ class Main(MainWindow):
|
||||
c.setObjectName('centralwidget')
|
||||
self.setCentralWidget(c)
|
||||
self.central_layout = cl = QGridLayout(c)
|
||||
cl.setSpacing(0)
|
||||
c.setLayout(cl), cl.setContentsMargins(0, 0, 0, 0)
|
||||
|
||||
self.view = v = DocumentView(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user