ui.theme readwrite


Get or set the current application color theme, as a string value :

  • "dark" : uses the Windows dark theme for the application
  • "light" : uses the Windows light theme for the application

Example

--! luart-extensions import ui local win = ui.Window("ui.theme 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()