Retrieves a list of color keys that are available in the current LEADIVEW version.
getColorKeys = function()
Returns an array of strings corresponding to color key values.
As mentioned in the run method, when LEADVIEW first starts up it will look for a LEADVIEW.json
file in the project. This JSON file allows support for altering the color scheme of LEADVIEW. This is done by adding an entry indexed by theme
. The valid key values for the theme
object will be the results of the getColorKeys method. Invalid key entries will be ignored.
The theming process for LEADVIEW works as follows:
LEADVIEW.json
file. If this file exists, it then checks if there is a theme
key on the object.theme
settings key over the default theme.This makes it easy to extend the base LEADVIEW themes without having to modify multiple entries in a CSS file. For instance, a valid LEADVIEW.json
file to change the font color of every object to green in LEADVIEW would look like this:
{
"startupSettings" : "",
"theme" : {
"fontColor" : "green"
}
}