Hi Omri,
basically, you've been on the right track. However, if you are using the
Modern theme with a CSS3-capable browser setting the backgroundColor in the
decorator won't help because the background is created by a
qx.ui.decoration.MLinearBackgroundGradient which needs a startColor and an
endColor. Both of these values are defined in ../theme/Color.js
("input-start", "input-end"), and I assume you know what to do in order to
adjust them.
If you also want to change the backgroundColor for browsers that know
nothing about CSS3, just go ahead with your first approach using
setBackgroundColor on the actual textfield.
Cheers,
Norbert
omrihar wrote
>
> Hi All,
>
> I feel really stupid asking this, but since I tried several things and
> didn't manage to solve this problem I ask here. How do I change the
> background color of a TextField?
>
> I tried to use setBackgroundColor without success. I also tried to define
> a decorator which includes input-css and sets backgroundColor in the style
> section, without success (it identifies the decorator since it gives no
> errors, but it simply does not change the color!)
>
> Any help will be appreciated :)
> Omri
>
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Change-the-background-color-of-a-TextField-tp7304425p7304640.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel