Theme colors - Change the color of buttons

Hi

I went through the tuttorial, "Adding Styles to Components"

I were able to change different properties of buttons by creating a Style Class with the same name as that of the theme but with different style attributes.

This had the desired effect except for the background color.

I played around abit with the style editor settings of a button with a theme applied on it, and found that when you are in the background tab of the editor and you select your desired new color, that there are no changes EXCEPT for when you select the " Repeat-y" from the "Tile" drop-down list. Only problem is you get a funny stripe through the middle of the button.

Is this the only way to change the color of buttons, linked to a theme, to a new color?

Any Advise

Thank you

[808 byte] By [Mithra00] at [2007-11-26 9:44:29]
# 1

To find the style properties defined in class Btn2, go to the theme's read-only css_master.css file:

In the Projects window, expand Libraries > Default Theme > com.sun.rave.web.ui.defaultheme.css.

Double-click the css_master.css file to open the file.

Search the file for the style class of interest, such as Btn2.

For example, to set a Btn2 background-color, both background-color and background-image must be defined to override the existing style class. Since you cannot make edits to the read-only css_master.css, use the style property editor to set the background-image to null and the background-color to the one desired for your component.

Mithra00 at 2007-7-7 0:46:25 > top of Java-index,Development Tools,Java Tools...
# 2
Hello,Also, the DOM inspector for firefox is well handy for finding out which class of a component, cheersGaz
b0wm0re at 2007-7-7 0:46:25 > top of Java-index,Development Tools,Java Tools...