|
|
|
There is now a color map file called ColorMap.txt that controls all system colors used within the CNA GUI. The file is an XML file that lists all the colors that can be configured. Here is the default file:
<colorMap type="global">
<colorDefinition id="1" hex="FF9900"/>
<colorDefinition id="2" hex="9900CC"/>
<colorDefinition id="3" hex="66FF33"/>
<colorDefinition id="4" hex="999999"/>
<colorDefinition id="5" hex="00CCFF"/>
<colorDefinition id="6" hex="FF3333"/>
<colorDefinition id="7" hex="009999"/>
<colorDefinition id="8" hex="336600"/>
<colorDefinition id="9" hex="CC9999"/>
<colorDefinition id="10" hex="666666"/>
<colorDefinition id="11" hex="FFCC33"/>
<colorDefinition id="12" hex="CC9966"/>
<colorDefinition id="13" hex="993366"/>
<colorDefinition id="14" hex="CC99CC"/>
<colorDefinition id="15" hex="996666"/>
<colorDefinition id="16" hex="6699CC"/>
<colorDefinition id="background" hex="FFFFFF"/>
<colorDefinition id="optimal" hex="9CC3FF"/>
<colorDefinition id="pathControl" hex="0000FF"/>
<colorDefinition id="notRescued" hex="CC0000"/>
<colorDefinition id="star1" hex="FF0000"/>
<colorDefinition id="star2" hex="FFB200"/>
<colorDefinition id="star3" hex="FFFF00"/>
<colorDefinition id="star4" hex="00FF00"/>
<colorDefinition id="star5" hex="00B200"/>
</colorMap>
The colors correspond to all the items that are currently in the Control Panel. The hex value is the standard html format for specifying color. This page can be helpful when choosing colors: http://www.w3schools.com/html/html_colornames.asp
If the ColorMap.txt file is missing or corrupted, the default set of colors will be used and an error message will be printed. Also, keep in mind that loading a new image will overwrite the current file, so if it is changed, it should be backed up before loading a new image. In order to see changes that are made in the file, any running instances of the GUI have to be restarted. Please note that the ColorMap.txt will get re-initialized as part of an CNA upgrade. It is recommended that a copy of the customized ColorMap.txt file be maintained within the CNA file system, so that it can be re-copied after the upgrade is complete.
|
|
|