On Fri, 3 Jun 2011 06:32:47 -0500 "Edward K. Ream" <[email protected]> wrote:
> On Thu, Jun 2, 2011 at 2:08 PM, Terry Brown <[email protected]> wrote: > > > I was thinking that setting the fore/background color of nodes in the > > tree should be a "gui core" function, and that the info. should be > > stored in uA, and so wanted to know what key should be used in uA for > > that. > > Thanks. I dimly remember now. It seems like something good to do. > > > I think the docs say top level keys starting with "leo_" are > > reserved, and probably wanted a ruling on > > > > v.u['leo_fg'] = 'red' > > > > vs > > > > v.u['leo_tree_style']['fg'] = 'red' > > > > etc. > > > > I think the question may be more complicated than just what to call the > > key, so you can probably retire the todo item. > > I'd like to do this for b2. It seems worth doing, and if it doesn't > get done for b2 there is no telling when it might happen :-) Picking a key for storing this info. in v.u and making the gui use it is fine, it seems like something the gui core should handle, but there's also the issue of task specific callback driven styling of tree node widgets. I think that will be useful, but I don't think it's incompatible with entries in v.u for coloring headlines. Also graphcanvas uses some kind of callback to color tree headlines, but it should be easy to convert it to use methods provided by gui core. Cheers -Terry > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
