Does LuaRT handle messages like: WM_THEMECHANGED, WM_SETTINGCHANGE, WM_SYSCOLORCHANGE in some way?
As already reported, the theme in my LuaRT based apps may randomly change at some point of time. This is not due to LuaRT Studio but occurs also with plain EXEs generated by rtc.
I currently patched my apps to force a fixed theme (e.g. light) with an event loop like:
while win.visible do
if ui.theme ~= "light" then ui.theme = "light" end
ui.update()
sleep(1)
end
In this way, when the random change occurs, I'm now able to correct it on the fly automatically.
But this trick is visible for a short time and is not the final solution.
Any idea about the root cause?
As alternative, is it possible to introduce a mode working with a single pre-defined theme ignoring any further WIndows attempt to change it for my application?