Optionalenabledtrue for the dark variant, false for the light one.
OptionalwindowTarget window: main or a popup id; omitted or empty, the calling window. There is no fallback to the main window: a caller that is not one of the plugin's windows fails with NOT_FOUND, and a DUI/CUI panel with PANEL_MODE_UNSUPPORTED.
Parameters for
window.setDarkMode. Switch a window's backdrop between dark and light themes. If the change cannot be applied immediately, the configuration is still saved; the call fails withOPERATION_FAILEDand includesenabledin the error response. Not supported in panel mode.