// https://sites.google.com/a/jsc-solutions.net/work/knowledge-base/15-dualvr/20150812/cssstereo // https://zproxy.wordpress.com/2012/11/13/dos-warcraft/ // https://zproxy.wordpress.com/2015/07/14/warcraft-360/ // jsc should do correctly uri escapes // \kennedy.greg%40gmail.com\warcraft\dungeon1.png public static void SetDialogColor(IHTMLDiv toolbar, Color toolbar_color, bool up) { if (up) { toolbar.style.backgroundColor = toolbar_color; var toolbar_color_light = toolbar_color.AddLum(+20); var toolbar_color_shadow = toolbar_color.AddLum(-20); toolbar.style.borderLeft = "1px solid " + toolbar_color_light; toolbar.style.borderTop = "1px solid " + toolbar_color_light; toolbar.style.borderRight = "1px solid " + toolbar_color_shadow; toolbar.style.borderBottom = "1px solid " + toolbar_color_shadow; toolbar.style.backgroundPosition = "0px 0px"; } else { toolbar.style.backgroundColor = toolbar_color.AddLum(+15); var toolbar_color_light = toolbar_color.AddLum(+20 + 15); var toolbar_color_shadow = toolbar_color.AddLum(-20 + 15); toolbar.style.borderLeft = "1px solid " + toolbar_color_shadow; toolbar.style.borderTop = "1px solid " + toolbar_color_shadow; toolbar.style.borderRight = "1px solid " + toolbar_color_light; toolbar.style.borderBottom = "1px solid " + toolbar_color_light; toolbar.style.backgroundPosition = "1px 1px"; } }