Assuming that you're sticking with the current JavaScript to pick the colors, here's a slight untested improvement on the color picker in terms of the interface. The changes should be in colorpicker.js, around line 233:
[code:1]function hColorPickerMouseDown(){
if(cp.cpColor.r || (cp.cpColor.r===0)) cp.cpColor = '#'+hex(cp.cpColor.r)+hex(cp.cpColor.g)+hex(cp.cpColor.b);
cp.cpInput.value = cp.cpColor;
cp.cpInput.style.color = cp.cpColor;
cp.cpInput.style.backgroundColor = cp.cpColor;
hideColorPicker();
}[/code:1]
and in customize.php lines 337-343 to load the colors in when loading the dialog:
[code:1]function makeColorRow($name, $desc, $current, $row){
$return = '<tr class="row'.$row.'">'
.'<td class="sectiontableentry'.$row.'">'.$desc.':</td>'
.'<td class="sectiontableentry'.$row.'"><input size="7" id="'.$name.'" name="'.$name.'" '
.'value="'.$current.'" style="background-color:'.$current.'; color:'.$current.';" onclick="attachColorPicker(this);" /></td></tr>';
return $return;
}[/code:1]
It just makes the input's background the color chosen. I have an allergy to hex numerals.
Post edited by: pointri, at: 2007/03/19 22:33