// ColorGroup represents widget interaction states used to select theme colors. // Each state maps to a different color set in the theme palette. constgroups = [ { 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 (constgofgroups) { console.log(`ColorGroup.${g.name}:`, g.value); }
Enum specifying color group role.
Example