From 5f66041b627d3c9a95721518e99b572734c23270 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 6 Jun 2017 09:32:51 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/layout.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index 2c0dd39a25..eac5985d9b 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -282,8 +282,10 @@ class MainWindowMixin(object): # {{{ self.setContextMenuPolicy(Qt.NoContextMenu) self.centralwidget = QWidget(self) self.setCentralWidget(self.centralwidget) - self._central_widget_layout = QVBoxLayout() - self.centralwidget.setLayout(self._central_widget_layout) + self._central_widget_layout = l = QVBoxLayout(self.centralwidget) + m = l.contentsMargins() + m.setTop(2), m.setBottom(2) + l.setContentsMargins(m) self.resize(1012, 740) self.location_manager = LocationManager(self) @@ -305,8 +307,6 @@ class MainWindowMixin(object): # {{{ except AttributeError: pass # PyQt5 seems to be missing this property - l = self.centralwidget.layout() - # And now, start adding the real widgets l.addWidget(self.search_bar)