Add theme property to Utils

Gets set to the window.theme when a theme is loaded, done to avoid
having to refer to the window object from utils.
This commit is contained in:
miruka
2020-08-03 01:29:37 -04:00
parent a389238024
commit cc7c0ad336
2 changed files with 3 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ Python {
window.uiState = uiState
window.history = history
window.theme = Qt.createQmlObject(theme, window, "theme")
utils.theme = window.theme
if (callback) { callback(settings, uiState, theme) }
})