dperez <[EMAIL PROTECTED]> writes:

> If I change the label style of a node with for example:
>
>    dataModel.setState(node, {labelStyle: "color:#888"});
>
> it works ok.
>
> But when the node is selected or highlighted, the background color is
> changed, and the foreground color doesn't contrast.  How do I control the
> color depending of the state?  Does it use appearances?

Hi David,

You can't currently control the color of a cell based on a state.  You can,
however, control the background colors used for selection and focus.  Look at
the setRowColors() method in qx.ui.table.DefaultDataRowRenderer for how to
change the various colors.

You may want to do this to help determine which is which:

    tree.setRowColors(
    {
      bgcolFocusedSelected     : "cyan",
      bgcolFocusedSelectedBlur : "green",
      bgcolFocused             : "yellow",
      bgcolFocusedBlur         : "blue",
      bgcolSelected            : "red",
      bgcolSelectedBlur        : "pink"
    });

Cheers,

Derrell

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to