mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Decrease the vertical padding in the main calibre window between the toolbar, central area and status bar. Fixes #1695683 [Reduce unused space in UI](https://bugs.launchpad.net/calibre/+bug/1695683)
This commit is contained in:
parent
44ea4e9600
commit
5f66041b62
@ -282,8 +282,10 @@ class MainWindowMixin(object): # {{{
|
|||||||
self.setContextMenuPolicy(Qt.NoContextMenu)
|
self.setContextMenuPolicy(Qt.NoContextMenu)
|
||||||
self.centralwidget = QWidget(self)
|
self.centralwidget = QWidget(self)
|
||||||
self.setCentralWidget(self.centralwidget)
|
self.setCentralWidget(self.centralwidget)
|
||||||
self._central_widget_layout = QVBoxLayout()
|
self._central_widget_layout = l = QVBoxLayout(self.centralwidget)
|
||||||
self.centralwidget.setLayout(self._central_widget_layout)
|
m = l.contentsMargins()
|
||||||
|
m.setTop(2), m.setBottom(2)
|
||||||
|
l.setContentsMargins(m)
|
||||||
self.resize(1012, 740)
|
self.resize(1012, 740)
|
||||||
self.location_manager = LocationManager(self)
|
self.location_manager = LocationManager(self)
|
||||||
|
|
||||||
@ -305,8 +307,6 @@ class MainWindowMixin(object): # {{{
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass # PyQt5 seems to be missing this property
|
pass # PyQt5 seems to be missing this property
|
||||||
|
|
||||||
l = self.centralwidget.layout()
|
|
||||||
|
|
||||||
# And now, start adding the real widgets
|
# And now, start adding the real widgets
|
||||||
l.addWidget(self.search_bar)
|
l.addWidget(self.search_bar)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user