ui.systheme
Get the current Windows color theme, as a string value :
"dark": current Windows color theme is dark"light": current Windows color theme is light
Example
--! luart-extensions
import ui
local win = ui.Window("ui.systheme example", 320, 200)
win:center()
local button = ui.Button(win, ui.systheme)
button:center()
function button:onClick()
ui.theme = ui.theme == "dark" and "light" or "dark"
button.text = ui.theme
end
await win:showasync()