The following color functions enable you to ensure that the extensions have the same skin as the application user interface.
dreamweaver.getPanelColor()
Availability
Dreamweaver CS4.
Description
This function retrieves the panel colors of the application user interface. You can use these colors as panel colors for the extensions. This function helps you to ensure that the panel colors of extensions blend with the panel color of the application user interface.
Arguments
None.
Returns
An array of strings of size 4 with the following values:
Red
Green
Blue
Alpha
Example
var panelColorArray = dw.getPanelColor();
The return values for this example are:
panelColorArray[0] : Red
panelColorArray[1] : Green
panelColorArray[2] : Blue
panelColorArray[3] : Alpha
dreamweaver.getAppBarColor()
Availability
Dreamweaver CS4.
Description
This function retrieves the application bar colors of the user interface. You can use these colors as bar colors for the extensions. This function helps you to ensure that the bar colors of extensions blend with the bar color of the application user interface.
Arguments
None.
Returns
An array of strings of size 4 with the following values:
Red
Green
Blue
Alpha
Example
var appBarColorArray = dw.getAppBarColor();
The return values for this example are:
appBarColorArray[0] : Red
appBarColorArray[1] : Green
appBarColorArray[2] : Blue
appBarColorArray[3] : Alpha