LensStudio:Ui.BackgroundRole
EnumEnum specifying background color role.
Index
Enumeration Members
Example
const Ui = await import('LensStudio:Ui');
const parent = null as unknown as import('LensStudio:Ui').Widget;
const callout = new Ui.CalloutFrame(parent);
callout.setBackgroundRole(Ui.BackgroundRole.PanelBackground, Ui.ColorGroup.Normal);
console.log(`BackgroundRole.PanelBackground=${Ui.BackgroundRole.PanelBackground}`);
console.log(`Other roles: Window=${Ui.BackgroundRole.WindowBackground}, Popup=${Ui.BackgroundRole.PopupBackground}, Button=${Ui.BackgroundRole.ButtonBackground}`);
Enumeration Members
ButtonBackground
ButtonBackground:
number
Button and clickable element background
ComponentBackground
ComponentBackground:
number
Standard component background
CtaBackground
CtaBackground:
number
Call-To-Action button background
HeaderBackground
HeaderBackground:
number
InputBackground
InputBackground:
number
Text input and form field background
PanelBackground
PanelBackground:
number
Secondary panel background
PopupBackground
PopupBackground:
number
Popup/tooltip background
WindowBackground
WindowBackground:
number
Application main window background