Added a separate text width parameter for zen mode

This commit is contained in:
Veronica K. B. Olsen committed 2019-11-09 14:24:59 +01:00
1 parent 8a30f8a98e
commit fab20c6c26
3 files changed
+44 -44

No files matched your search

+4 -1
View File
@@ -414,7 +414,10 @@ class GuiDocEditor(QTextEdit):
sW = vBar.width()
else:
sW = 0
tW = self.mainConf.textWidth
if self.theParent.isZenMode:
tW = self.mainConf.zenWidth
else:
tW = self.mainConf.textWidth
wW = self.width()
tM = int((wW - sW - tW)/2)
if tM < self.mainConf.textMargin: