frame: Fix window border shadow, will be improved with the configuration file.

This commit is contained in:
Martin Duquesnoy
2008-11-12 18:55:27 +01:00
parent b28327f7af
commit 7c77a4b5ae
4 changed files with 46 additions and 21 deletions

View File

@@ -74,6 +74,23 @@ getcolor(char *color)
return xcolor.pixel;
}
/** Enlight an hexadecimal color
* \param col Color
* \return The clarified color
*/
ulong
color_enlight(ulong col)
{
ulong ret = col;
if((col + 0x330000) < 0xffffff
&& (col + 0x003300) < 0xffffff
&& (col + 0x000033) < 0xffffff)
ret += 0x333333;
return ret;
}
/** Get a Window WM State
* \param win Window
* \return The state