UI Theme
Using the setTheme(...)
user can change the Unfolded Studio theme to dark
or light
, and add more customization options.
/**
* Sets the theme of the UI.
* @param theme New UI theme settings.
*/
setTheme(theme: ThemeUpdateProps): void;
/**
* Map UI theme settings that support customization.
*/
type ThemeUpdateProps = {
/** UI theme preset name. */
preset: 'light' | 'dark';
/** UI theme customization options. */
options?: {
/** Background color of UI elements. */
backgroundColor?: CSSColor;
};
};
Parameters
Name Description theme string
darkChoice between light / dark
themeoptions.backgroundColor string
Background color