Interface CustomizationThis is a featured page

Many default styles for Wetpaint application components (dialogs, lightboxes, tooltips, menus, and the WYSIWYG toolbar) can be overridden via the following Javascript methods. These methods must be called after the Client Application is requested. For an explanation of how these can be implemented, view step 4 of the integration guide.

Style Value Format Rules

Style
Rules
Examples
Color valuesColor values may be defined with standard CSS syntax. When setting borders, top-right-bottom-left ordering may be used.WPCAPI.setFontColor("grey");
WPCAPI.setBackgroundColor("rgb(100%, 100%, 100%)");
WPCAPI.setButtonColor("
rgb(255, 255, 255)");
WPCAPI.setBorderColor('#813823');
WPCAPI.setBorderBevelColor("#CAB7AE #866659 #866659 #CAB7AE");
WPCAPI.setSubmitButtonColor("#FFF");
WPCAPI.setCancelButtonBorderColor('#CAB7AE');
Font family valuesCan include both specific and generic font families. Make sure that values with spaces are wrapped with quotes.

You can set alternative font family values (font1, font2, font3)
WPCAPI.setFontFamily("Georgia,'Times New Roman', serif");
WPCAPI.setFontFamily("New Century Schoolbook");
Size valuesCan be a pixel size between 10px and 30px. Sizes outside that range will default to 10px or 30px, when too small or large respectively.

Sizes may be passed as a string ('14') or number (14). If an invalid argument is passed in (e.g. "fifteen"), the application defaults to 13px.
WPCAPI.setFontSize("15px");
WPCAPI.setFontSize(20);
WPCAPI.setTitleBarFontSize(14);

Setting Styles with CSS

Interface styles can also be modified by setting CSS rules. Most users will likely use the JavaScript examples given above; however, if your environment requires that your style values be contained in your CSS files, this option may be useful.

To apply a style using CSS, set a rule prefixed with "#WPCAPI-" and write the definition in camel case (e.g., backgroundColor or titleBarFontSize). For each rule, be sure to set the definition for the style that you're referring to (e.g., background-color:#FFF or font-size:12px). When the client application loads, it will inspect those rules and pull the appropriate value from them.

Examples
#WPCAPI-linkColor { color:#497FB1; }
#WPCAPI-fontSize { font-size:15px; }
#WPCAPI-borderBackgroundColor { background-color:#F7ABCB; }
#WPCAPI-borderBevelColor { border-color:#F7D2DF #CC57A0 #CC57A0 #F7D2DF; }


Function Reference

String
get
set
BackgroundColorThe custom background color of Wetpaint application components, if any.
String
get
set
BorderColorThe custom border color of Wetpaint application components, if any. Note that the border is outlined by a "bevel," which allows the components to have a 3D effect; be sure to modify the border bevel color if you modify the border color.
String
get
set
BorderBevelColorThe custom border bevel color of Wetpaint application components, if any.
String
get
set
ButtonBackgroundColorThe custom background color for buttons within Wetpaint application components, if any.
String
get
set
ButtonBorderColorThe custom border color for buttons within Wetpaint application components, if any.
String
get
set
ButtonFontColorThe custom font color for buttons within Wetpaint application components, if any.
String
get
set
ButtonFontFamilyThe custom font family for buttons within Wetpaint application components, if any.
String
get
set
ButtonFontSizeThe custom font size for buttons within Wetpaint application components, if any.
String
get
set
SubmitButtonBackgroundColorThe custom background color for Submit buttons within Wetpaint application components, if any.
String
get
set
SubmitButtonBorderColorThe custom border color for Submit buttons within Wetpaint application components, if any.
Stringget
set
SubmitButtonFontColorThe custom font color for Submit buttons within Wetpaint application components, if any.
Stringget
set
SubmitButtonFontFamilyThe custom font family for Submit buttons within Wetpaint application components, if any.
Stringget
set
SubmitButtonFontSizeThe custom font size for Submit buttons within Wetpaint application components, if any.
Stringget
set
CancelButtonBackgroundColorThe custom background color for Cancel buttons within Wetpaint application components, if any.
Stringget
set
CancelButtonBorderColorThe custom border color for Cancel buttons within Wetpaint application components, if any.
Stringget
set
CancelButtonFontColorThe custom font color for Cancel buttons within Wetpaint application components, if any.
Stringget
set
CancelButtonFontFamilyThe custom font family for Cancel buttons within Wetpaint application components, if any.
Stringget
set
CancelButtonFontSizeThe custom font size for Cancel buttons within Wetpaint application components, if any.
String
get
set
FontColorThe custom font color for Wetpaint application components, if any.
String
get
set
FontFamilyThe custom font family for Wetpaint application components, if any.
String
get
set
FontSizeThe custom font size for Wetpaint application components, if any.
String
get
set
ActiveLinkColorThe custom font color for active hyperlinks within Wetpaint application components, if any.
String
get
set
HoverLinkColorThe custom font color for hover hyperlinks within Wetpaint application components, if any.
String
get
set
LinkColorThe custom font color for unvisited hyperlinks within Wetpaint application components, if any.
String
get
set
VisitedLinkColorThe custom font color for visited hyperlinks within Wetpaint application components, if any.
Stringget
set
TitleBarFontColorThe custom font color for the title bars of Wetpaint application components, if any.
Stringget
set
TitleBarFontFamilyThe custom font family for the title bars of Wetpaint application components, if any.
Stringget
set
TitleBarFontSizeThe custom font size for the title bars of Wetpaint application components, if any.
Stringget
set
AlternativeBackgroundColorThe custom alternative background color for reports within the Wetpaint application, if any.
Stringget
set
SelectedBackgroundColorThe custom background color for selected items within Wetpaint application components, if any.
String
get
set
TableHeaderBackgroundColorThe custom background color for table headers within Wetpaint application components, if any.
StringgetsetTableHeaderColorThe custom font color for table headers within Wetpaint application components, if any.





ryan_wetpaint
ryan_wetpaint
Latest page update: made by ryan_wetpaint , Dec 18 2008, 11:24 AM EST (about this update About This Update ryan_wetpaint Edited by ryan_wetpaint

27 words added
4 words deleted

view changes

- complete history)
Keyword tags: css style overrides styles
More Info: links to this page
Started By Thread Subject Replies Last Post
justia Customization of EasyEdit Button 1 Nov 20 2008, 3:09 PM EST by ryan_wetpaint
Thread started: Nov 19 2008, 1:35 PM EST  Watch
Is there currently, or is there planned, a means of modifying the EasyEdit Button? It would be nice if we could use a custom edit button image, or at the very least change that green to something that matches our site's color scheme
0  out of 1 found this valuable. Do you?    
Keyword tags: None
Show Last Reply
wishpot EasyEdit button position 1 Nov 18 2008, 3:25 PM EST by boe_wetpaint
Thread started: Nov 15 2008, 11:13 PM EST  Watch
Is there a way to make the EasyEdit button appear beneath the editable area instead of on top of it?
1  out of 1 found this valuable. Do you?    
Keyword tags: easyedit button position
Show Last Reply
Showing 2 of 2 threads for this page

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)