Newer Version Available

This content describes an older version of this product. View Latest

DescribeColor

DescribeColor contains color metadata information for a tab. The describeTabs() call returns an array of DescribeTabSetResult values. Each DescribeTabSetResult contains an array of DescribeTab values, and each DescribeTab contains an array of DescribeColor values.

Each DescribeColor is associated with a theme. See Identifying the Salesforce Style Your Users See in the Visualforce Developer’s Guide for more details on Salesforce themes.

Color information can also be retrieved via the describeTheme() and describeGlobalTheme() calls. These calls return information on colors used for each object in your organization that can use theme icons and colors.

Name Type Description
color string The color described in Web color RGB format, for example, “00FF00”.
context string The color context, which determines whether the color is the main color (“primary”) for the tab, or not.
theme string
The associated theme. Possible values include:
  • “theme2”: Salesforce theme used prior to Spring ‘10
  • “theme3”: The current Salesforce theme, introduced in Spring ‘10
  • “theme4”: Theme introduced in Winter ‘14 for the mobile touchscreen version of Salesforce
  • “custom”: Theme associated with a custom icon