diff options
| author | DH4 | 2017-05-27 14:32:08 -0500 |
|---|---|---|
| committer | DH4 | 2017-05-27 14:32:08 -0500 |
| commit | fe13268a841d3b4d45f33359abb81993d990772c (patch) | |
| tree | f932dbcc0d67aa8d0a1fec4333313840f8c643d7 /core.py | |
| parent | 86c6ac87627365e8ea30f84420c3ac97f0a597ea (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.py | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |
