[core] Add theme to modules

This commit is contained in:
tobi-wan-kenobi 2020-04-26 16:40:48 +02:00
parent f2d411276d
commit 28bdf4355b
2 changed files with 3 additions and 3 deletions

View file

@ -54,8 +54,7 @@ def main():
input_thread.start()
for module in config.modules():
modules.append(core.module.load(module, config))
modules[-1].theme = theme # TODO: make this nice (ctor)
modules.append(core.module.load(module, config, theme))
output.modules(modules)
core.event.trigger('start')
while True:
@ -65,7 +64,6 @@ def main():
core.event.trigger('stop')
if __name__ == "__main__":
main()
try:
main()
except Exception as e: