views:

125

answers:

1

The examples I've seen seem to show how to change the color that shows when the user actually hovers over the textinput field.

However when the validation fails, a generic textInput border qill have a red line over it. My CSS file uses a border skin for the textInput, so I can't see this line.

I was hoping there was a way to highlight the text box when it failed validation, or re-enable the red line feature. I don't want to get rid of my CSS cos it'll totally blow my color-scheme, but any tweak allowing the error line to show would be much appreciated.

This is the CSS:

TextInput, TextArea
{
    border-skin: Embed(source='/../assets/images/input_bg.png', scaleGridLeft=8, scaleGridRight=20, scaleGridTop=8,scaleGridBottom=9);
    padding-top:2;
    padding-left:2;
    font-size:11;
}
A: 

anything that extends UIComponent (both TextInput and TextArea do) has a style called errorColor. It defaults to red. You can change this to whatever you want.

Additionally, if you've got an image that you are using as a border, you should probably remove the pixels from the middle so that it is an actual border instead of an overlay.

Jeff
I dont really want to use the image as a border, but its the only way I could change the color of the input area. I don't know the actual color of the image, which is why I can't just set the background color to be the same as the image color.
You should be able to use the eyedrop tool of any basic image editor to get the color from the image. Open up the image in something like Paint, or Paint.Net or IrfanView, select the tool, and then click on the image over the color that you want.
Jeff