From richfaces-svn-commits at lists.jboss.org Thu Apr 2 11:10:24 2009 Content-Type: multipart/mixed; boundary="===============4861327886158787890==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r13362 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory. Date: Thu, 02 Apr 2009 11:10:23 -0400 Message-ID: --===============4861327886158787890== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: artdaw Date: 2009-04-02 11:10:23 -0400 (Thu, 02 Apr 2009) New Revision: 13362 Added: trunk/docs/userguide/en/src/main/resources/images/colorPicker_cn.png trunk/docs/userguide/en/src/main/resources/images/colorPicker_pc.png Modified: trunk/docs/userguide/en/src/main/docbook/included/colorPicker.xml Log: https://jira.jboss.org/jira/browse/RF-6581 - Look and Feel customization is= added Modified: trunk/docs/userguide/en/src/main/docbook/included/colorPicker.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/included/colorPicker.xml 2009-= 04-02 14:48:10 UTC (rev 13361) +++ trunk/docs/userguide/en/src/main/docbook/included/colorPicker.xml 2009-= 04-02 15:10:23 UTC (rev 13362) @@ -101,7 +101,8 @@ ...]]> - + + This is the result:
Usage of the = @@ -172,19 +173,20 @@ </f:facet> <f:facet name=3D"arrows"> <f:verbatim> = - <div style=3D"width: 33px; height: 5px; border: 1px solid #bed6f8; back= ground:none;"></div> + <div style=3D"width: 33px; height: 5px; border: 1px solid #bed6f8; back= ground:none;" /> </f:verbatim> </f:facet> </rich:colorPicker> ...]]> </programlisting> + <para>This is the result:</para> <figure> <title> Usage of the = <emphasis> - <property><icon></property> + <property>"icon"</property> </emphasis>, and <emphasis> - <property><arrows></property> + <property>"arrows"</property> </emphasis> facets @@ -195,7 +197,173 @@
- = + +
+ Look-and-Feel Customization + For skinnability implementation, the components use a + style class redefinition method. + Default style classes are mapped on + skin parameters. + + There are two ways to redefine the appearance of all + <rich:colorPicker> + components at once: = + + Redefine the corresponding skin parameters + Add to your style sheets style classes used b= y a + <rich:colorPicker> + component + + +
+
+ Skin Parameters Redefinition + + Skin parameters redefinition for the input field that contain= s selected color + + + + Skin parameters + CSS properties + + + + + panelBorderColor + border-color + + + generalSizeFont + font-size + + + generalFamilyFont + font-family + + + +
= + + Skin parameters redefinition for the wrapper <div> elem= ent of a widget + + + + Skin parameters + CSS properties + + + + + panelBorderColor + border-color + + + generalBackgroundColor + background-color + + + generalFamilyFont + font-family + + + +
= + + Skin parameters redefinition for the icon, color palette, cur= rent color, and new color + + + + Skin parameters + CSS properties + + + + + panelBorderColor + border-color + + + +
= + + Skin parameters redefinition for the hex, RGB, and HSB input = fileds + + + + Skin parameters + CSS properties + + + + + generalSizeFont + font-size + + + generalFamilyFont + font-family + + + generalTextColor + color + + + panelBorderColor + border-color + + + controlBackgroundColor + background-color + + + +
+ + Skin parameters redefinition for the "Apply" and &= quot;Cancel" button + + + + Skin parameters + CSS properties + + + + + buttonFontSize + font-size + + + buttonFamilyFont + font-family + + + headerTextColor + color + + + headerBackgroundColor + border-color + + + panelBorderColor + border-color + + + generalSizeFont + font-size + + + generalFamilyFont + font-family + + + headerBackgroundColor + background-color + + + +
= +
=
Definition of Custom Style Classes @@ -216,14 +384,14 @@ - Class name + Selector name Description .rich-colorPicker-span input - Defines styles for the input filed containing selected = color + Defines styles for the input field that contains select= ed color .rich-colorPicker-icon @@ -285,15 +453,72 @@ - -
- = -
+ + In order to redefine styles for all + <rich:colorPicker> + components on a page using CSS, it's enough to create= classes with the + same names (possible classes could be found in the tables above) and define necessary propertie= s in them. = + + Example: + + = + = + This is the result: +
+ Redefinition styles with predefined classes + + + + + +
+ In the shown example the background color for the widget is chan= ged. + = + + + +
+
Relevant Resources Links Here you can see the example of - <rich:colorPicker> component - usage and sources for the given example. + <rich:colorPicker> = + component usage and sources for the given example.
Added: trunk/docs/userguide/en/src/main/resources/images/colorPicker_cn.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/docs/userguide/en/src/main/resources/images/colo= rPicker_cn.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/docs/userguide/en/src/main/resources/images/colorPicker_pc.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: trunk/docs/userguide/en/src/main/resources/images/colo= rPicker_pc.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream --===============4861327886158787890==--