Best way to toggle between a light and dark interface in Web Core

I have a web core app that uses a white background on the controls for the UI. I want to offer a dark interface also. What would be the easiest way to implement a way for the user to toggle between the light and dark UI.

You can programmatically set the theme for a form with:

  form.SetColorScheme(csLight);
  form.SetColorScheme(csDark);
1 Like

Bruno, Thanks for your quick response. It does nothing for my application as it has a bunch of panels and controls. I tried it on the simple demo and the form was dark but no of the controls showed up. I think I may need to set each panel and control individually in a component loop or something like that.

Did you set Application.Themed = true?