From 8900a0ed3f83096a5b07642988c619f565681cfc Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Fri, 29 Mar 2019 16:39:03 -0400 Subject: [PATCH] fullscreen: Change navigation/new-document layout Left-align the navigation and new-document buttons in the top panel to prevent them from moving around when changing scenes. --- manuskript/ui/editors/fullScreenEditor.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/manuskript/ui/editors/fullScreenEditor.py b/manuskript/ui/editors/fullScreenEditor.py index 61aaab1..8516557 100644 --- a/manuskript/ui/editors/fullScreenEditor.py +++ b/manuskript/ui/editors/fullScreenEditor.py @@ -91,20 +91,16 @@ class fullScreenEditor(QWidget): # Top panel Layout if self.btnSpellCheck: self.topPanel.layout().addWidget(self.btnSpellCheck) - self.topPanel.layout().addStretch(5) - - self.topPanel.layout().addWidget(self.btnPrevious) - self.topPanel.layout().addStretch(1) - - self.topPanel.layout().addWidget(self.lblTitle) - self.topPanel.layout().addWidget(self.wPath) self.topPanel.layout().addSpacing(15) + self.topPanel.layout().addWidget(self.btnPrevious) + self.topPanel.layout().addWidget(self.btnNext) self.topPanel.layout().addWidget(self.btnNew) self.topPanel.layout().addStretch(1) - self.topPanel.layout().addWidget(self.btnNext) + self.topPanel.layout().addWidget(self.lblTitle) + self.topPanel.layout().addWidget(self.wPath) + self.topPanel.layout().addStretch(1) - self.topPanel.layout().addStretch(5) self.topPanel.layout().addWidget(self.btnClose) self.updateTopBar()