forked from openlp/openlp
Change Layout formula
This commit is contained in:
parent
e613cdac81
commit
5e088abfc2
@ -28,8 +28,8 @@ class SettingsManager(object):
|
|||||||
self.width = self.screen[u'size'].width()
|
self.width = self.screen[u'size'].width()
|
||||||
self.height = self.screen[u'size'].height()
|
self.height = self.screen[u'size'].height()
|
||||||
self.mainwindow_height = self.height * 0.8
|
self.mainwindow_height = self.height * 0.8
|
||||||
self.mainwindow_docbars = self.width / 3
|
self.mainwindow_docbars = self.width / 5
|
||||||
if self.mainwindow_docbars > 300:
|
if self.mainwindow_docbars > 300:
|
||||||
self.mainwindow_docbars = 300
|
self.mainwindow_docbars = 300
|
||||||
self.mainwindow_slidecontroller = (self.width - (self.mainwindow_docbars * 2 ) / 2) / 2
|
self.mainwindow_slidecontroller = (self.width - (self.mainwindow_docbars * 3 ) / 2) / 2
|
||||||
print self.width, self.mainwindow_docbars, self.mainwindow_slidecontroller
|
print self.width, self.mainwindow_docbars, self.mainwindow_slidecontroller
|
||||||
|
Loading…
Reference in New Issue
Block a user