Branch: Tag:

2004-03-07

2004-03-07 00:09:53 by Jonas Wallden <jonasw@roxen.com>

Nicer borders on popup layer. Added shortcuts for black and white.

Rev: server/base_server/wizard.pike:1.146

2:   // Copyright © 1997 - 2001, Roxen IS.   //   // Wizard generator - // $Id: wizard.pike,v 1.145 2004/03/06 22:39:45 jonasw Exp $ + // $Id: wizard.pike,v 1.146 2004/03/07 00:09:53 jonasw Exp $      /* wizard_automaton operation (old behavior if it isn't defined):   
334:    " var PREFIX_v = " + v + ";\n"    " function PREFIX_colsel_click(event, in_bar)\n"    " {\n" -  " var new_hsv = colsel_click(event, \"PREFIX_\", PREFIX_h,\n" -  " PREFIX_s, PREFIX_v, in_bar);\n" -  " PREFIX_h = new_hsv[0];\n" -  " PREFIX_s = new_hsv[1];\n" -  " PREFIX_v = new_hsv[2];\n" +  " var hsv = colsel_click(event, \"PREFIX_\", PREFIX_h,\n" +  " PREFIX_s, PREFIX_v, in_bar);\n" +  " PREFIX_h = hsv[0];\n" +  " PREFIX_s = hsv[1];\n" +  " PREFIX_v = hsv[2];\n"    " }\n"    " function PREFIX_colsel_type(value, update_field)\n"    " {\n" -  " var new_hsv = colsel_type(\"PREFIX_\", value, update_field);\n" -  " PREFIX_h = new_hsv[0];\n" -  " PREFIX_s = new_hsv[1];\n" -  " PREFIX_v = new_hsv[2];\n" +  " var hsv = colsel_type(\"PREFIX_\", value, update_field);\n" +  " PREFIX_h = hsv[0];\n" +  " PREFIX_s = hsv[1];\n" +  " PREFIX_v = hsv[2];\n"    " }\n"    "</script>"    "<js-popup args-variable='__popup' event='onClick' props='color_props'>" -  " <table border='0' cellspacing='0' cellpadding='4' bgcolor='#ffffff'>" +  " <table border='0' cellspacing='0' cellpadding='4' bgcolor='#ffffff'" +  " style='border-top: 1px solid #888888;" +  " border-left: 1px solid #888888;" +  " border-bottom: 2px solid #888888;" +  " border-right: 2px solid #888888'>"    " <tr>" -  " <td style='border: 1px solid #888888'>" -  " <img src='/internal-roxen-colsel-small'" -  " width='128' height='128'" -  " onClick='PREFIX_colsel_click(event, 0); return false;' />" -  " </td>" -  " <td style='border: 1px solid #888888; border-left: 0px'>" -  " <img id='PREFIX_colorbar' width='16' height='128'" -  " src='/internal-roxen-colorbar:" + h + "," + v + "," + s + "'" -  " onClick='PREFIX_colsel_click(event, 1); return false;' />" -  " </td>" +  " <td style='border-right: 1px solid #888888'" +  " ><img src='/internal-roxen-colsel-small'" +  " width='128' height='128'" +  " onClick='PREFIX_colsel_click(event, 0); return false;'" +  " /></td>" +  " <td><img id='PREFIX_colorbar' width='16' height='128'" +  " src='/internal-roxen-colorbar:" +h+ "," +v+ "," +s+ "'" +  " onClick='PREFIX_colsel_click(event, 1); return false;'" +  " /></td>" +  " </tr><tr>" +  " <td colspan='2' style='border-top: 1px solid #888888'" +  " ><img src='/internal-roxen-pixel-000000'" +  " width='76' height='10'" +  " onClick='PREFIX_colsel_type(\"#000000\", 1);' " +  " /><img src='/internal-roxen-pixel-ffffff'" +  " width='76' height='10'" +  " onClick='PREFIX_colsel_type(\"#FFFFFF\", 1);' " +  " /></td>"    " </tr>"    " </table>"    "</js-popup>"
375:    " <tr>"    " <td style='background: " + current + "; border: 1px solid #888888' "    " id='PREFIX_preview'" -  " ><img src='/internal-roxen-colsel-arrow' width='49' height='16' border='0'" -  " style='border: 4px solid #ffffff' ::='&form.__popup;'" +  " ><img src='/internal-roxen-colsel-arrow'" +  " width='49' height='16' border='0'" +  " style='border: 4px solid #ffffff; cursor: pointer'" +  " ::='&form.__popup;'"    " ></td>"    " </tr>"    " </table>"