aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
authorDH42017-05-27 14:32:08 -0500
committerDH42017-05-27 14:32:08 -0500
commitfe13268a841d3b4d45f33359abb81993d990772c (patch)
treef932dbcc0d67aa8d0a1fec4333313840f8c643d7 /core.py
parent86c6ac87627365e8ea30f84420c3ac97f0a597ea (diff)
Created a new UI, several new features to be implemented. FIXME: Resolution change requires an application restart.
Diffstat (limited to 'core.py')
-rw-r--r--core.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/core.py b/core.py
index 249a373..8292f5b 100644
--- a/core.py
+++ b/core.py
@@ -112,8 +112,19 @@ class Core():
im = Image.new("RGB", (int(self.settings.value('outputWidth')), int(self.settings.value('outputHeight'))), "black")
im.paste(image, (0, 0))
- im.paste(imTop, (0, 0), mask=imTop)
- im.paste(imBottom, (0, int(vH+bF*1.8)), mask=imBottom)
+
+ layout = int(self.settings.value('visLayout'))
+
+ if layout == 0:
+ im.paste(imTop, (0, 0), mask=imTop)
+ im.paste(imBottom, (0, int(vH+bF*1.8)), mask=imBottom)
+
+ if layout == 1:
+ im.paste(imTop, (0, int(height+bF*1.5)), mask=imTop)
+ im.paste(imBottom, (0, int(0-bF*1.5)), mask=imBottom)
+
+ if layout == 2:
+ im.paste(imTop, (0, int(height+bF*1.5)), mask=imTop)
return im