[ui] add palette variation for dark theme

Crtl+Shift+P allows to toggle between light and dark theme on the fly
This commit is contained in:
Yann Lanthony 2017-11-17 17:40:15 +01:00
parent b8edf07e8d
commit 83c6d68954
3 changed files with 65 additions and 5 deletions

View file

@ -175,8 +175,11 @@ class QmlInstantEngine(QQmlApplicationEngine):
time.sleep(0.1)
cptTry += 1
print("Reloading ", self._sourceFile)
self.load(self._sourceFile)
self.reload()
# Finally, read the modified file to the watch system
self.addFile(filepath)
def reload(self):
print("Reloading ", self._sourceFile)
self.load(self._sourceFile)