
Windows Border Color Formula
Does anyone know the formula microsoft uses to calculate the RGB values for
the light and dark borders that surround windows boxes and other standard
windows objects? Like when the user selects the background color for
3d-objects in the control panel display properties, it automatically
calculates related light and dark colors based on the background color and
uses that for the borders. I'd like to create similar looking windows boxes
in DHTML using javascript, but I'd like to know the formula to come up with
these border color values.
Any help is appreciated. Thanks.