Hi,
I'm doing something very similar but can't determine the correct
style(s) to use. The style(s) I want are the ones which are used when a
treerow is selected/highlighted. In Windows, it gets a blue background
and white lettering--assuming you're using the default Windows theme. I
tried using DOM Inspector (Computed Style), but there are *so* many
styles that I don't know which ones to use... I imagine there is a
"shortcut" style which represents active/foreground?
Thanks for any ideas,
Eric
--- Brian King <[EMAIL PROTECTED]> wrote:
> Sudhakar Chandra wrote:
> > Hi,
> >
> > My extension, a news aggregator, uses trees (actually, everything
> under
> > one folder in the bookmarks) to store the subscriptions of the
> user.
> >
> > I currently style the rows in the trees like so:
> >
> > treechildren::-moz-tree-cell-text(rss, hxnew) {
> > font-weight: bold !important;
> > }
> >
> > treechildren::-moz-tree-cell-text(rss, hxold) {
> > font-weight: normal !important;
> > }
> >
> > Thus, if the description field of the bookmark (i.e. row in the
> tree)
> > contains the word 'hxnew', it is shown as bold. If it has the term
> > 'hxold', it shows the row as normal (unbolded).
> >
> > I would also like to extend this to be able to bold or unbold the
> parent
> > of this tree row. I.e., if one of the rows inside a tree folder
> contains
> > the word 'hxnew', I want the parent folder to be bolded. How do I
> style
> > my tree to do this?
>
> Try using the 'container' e.g.
>
> treechildren::-moz-tree-cell-text(container, rss, hxnew) {
> font-weight: bold !important;
> }
>
> You may have to set the hxnew property by script though, because I'm
> not
> sure if it propagates up the tree hierarchy.
>
> --
> Brian King
> www.mozdev.org - free project hosting for the Mozilla community
> _______________________________________________
> Project_owners mailing list
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners