DescribeColorResult Class
Contains color metadata information for a tab.
The getColors method of the Schema.DescribeTabResult class returns a list of Schema.DescribeColorResult objects that describe colors used in a tab.
The methods in the Schema.DescribeColorResult class can be called using their property counterparts. For each method starting with get, you can omit the get prefix and the ending parentheses () to call the property counterpart. For example, colorResultObj.color is equivalent to colorResultObj.getColor().
This sample shows how to get the color information in the Sales app for the first tab’s first color.
The following are methods for DescribeColorResult. All are instance methods.
-
Returns the Web RGB color code, such as
00FF00. -
Returns the color context. The context determines whether the color is the main color for the tab or not.
-
Returns the color theme.
Returns the Web RGB color code, such as 00FF00.
public String getColor()
Type: String
Returns the color context. The context determines whether the color is the main color for the tab or not.
public String getContext()
Type: String
Returns the color theme.
public String getTheme()
Type: String
Possible theme values include theme3, theme4, and custom.
theme3is the Salesforce theme introduced during Spring ‘10.theme4is the Salesforce theme introduced in Winter ‘14 for the mobile touchscreen version of Salesforce.customis the theme name associated with a custom icon.