Hello Fritz!
It not easy to achieve this, since the tree's appearance depends on the
application's theme and to gain a consistent look each folder has the
same icon for it's indend object (the +/- sign).
However, you can work this way:
1. The tree must be rendered (flushTree() must have been called.)
2. Access the indent object via treenode.getIndentObject(); [1]
3. Unfortunately in 0.7, the indent object is a htmlembed. Working with
it is a bit complicated. You could use
indentObject.getElement().firstChild.src to get or set the src. (Have a
look of the HTML inside this htmlembed:
indentObject.getElement().getHtml().)
4. You can access the label via treenode.getLabelObject()
5. Change the label's color via label.setTextColor("red");
Cheers,
Jonathan
[1]
http://demo.qooxdoo.org/0.7.x/apiviewer/#qx.ui.tree.AbstractTreeElement~getIndentObject
[2]
http://demo.qooxdoo.org/0.7.x/apiviewer/#qx.ui.tree.AbstractTreeElement~getLabelObject
Fritz Zaucker wrote:
> Hi,
>
> I'd like to customize the +- (PlusMinus) Sign in a tree, so that different
> versions (colors) of the +- folder opening/closing icon are used on
> different folders? Alternatively/additionally, I'd like to have different
> text colors for some tree folder labels. Is this doable?
>
> Thanks,
> Fritz
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel