LensStudio:Ui.ColorGroup
EnumEnum specifying color group role.
Index
Example
const Ui = await import('LensStudio:Ui');
// ColorGroup represents widget interaction states used to select theme colors.
// Each state maps to a different color set in the theme palette.
const groups = [
{ name: 'Base', value: Ui.ColorGroup.Base },
{ name: 'Normal', value: Ui.ColorGroup.Normal },
{ name: 'Hover', value: Ui.ColorGroup.Hover },
{ name: 'Pressed', value: Ui.ColorGroup.Pressed },
{ name: 'Disabled', value: Ui.ColorGroup.Disabled },
{ name: 'ReadOnly', value: Ui.ColorGroup.ReadOnly },
{ name: 'DisabledInHierarchy', value: Ui.ColorGroup.DisabledInHierarchy },
];
for (const g of groups) {
console.log(`ColorGroup.${g.name}:`, g.value);
}
Enumeration Members
Base
Base:
number
Base color state.
Disabled
Disabled:
number
Disabled color state.
DisabledInHierarchy
DisabledInHierarchy:
number
Color state for disabled elements in hierarchy.
Hover
Hover:
number
Hover color state.
Normal
Normal:
number
Normal color state.
Pressed
Pressed:
number
Pressed color state.
ReadOnly
ReadOnly:
number
Read-only color state.