Re: Update re: new model

2018-08-03 Thread Terry Brown
Outline -> Insert/Delete Icons -> Insert Icon just places persistent icons with no particularly meaning to any plugin, even though I was using icons from the todo plugin. I think you might see the coloring of the "top" node issue if you experiment with an outline with a really small number of

Re: Update re: new model

2018-08-03 Thread vitalije
How do you add those icons? When I click in any icon in the Task pane, it always replaces previous icon with the new one. I see that icons are smaller than in old tree. Rev 9d7adae1c now respects setting `@int icon-height` when drawing icons. Vitalije -- You received this message because

Re: Update re: new model

2018-08-03 Thread vitalije
I don't know how you got this top node in the different background color. I have pushed slightly changed version. Icons are now painted over background rectangle. Also I have enlarged font size used for tree. Must say I'm surprised by the "draw the tree yourself" approach, but > will see how

Re: Update re: new model

2018-08-03 Thread Terry Brown
Works better. Attached shows a couple of issues - top node background is a different color, and adding icons shrinks icons vertically, at least the first time you add one. Must say I'm surprised by the "draw the tree yourself" approach, but will see how it pans out. Cheers -Terry On Fri, Aug 3,

Re: Update re: new model

2018-08-03 Thread vitalije
@Terry, please try 5ee7b406 . When running without theme and without myLeoSettings.leo it couldn't find icons for the NewTreeWidget. Now some defaults are set. Vitalije -- You received this message

Re: About unit testing Leo

2018-08-03 Thread vitalije
My initial post on this thread was quite a long one, tackling many things at once. So is Edward's reply. I can't discuss ATM every Edward's point but I will focus just on the settings and plugins stuff. The other points are very well worth discussing but let's skip them for now. How do you

Re: About unit testing Leo

2018-08-03 Thread Terry Brown
Re gui layers etc., I've mentioned it before, but I wonder how using something like https://pythonhosted.org/blinker/ would work, performance wise. Imagine being able to say: body_change = signal('body-change') ... body_change.send('reformat', gnx=gnx, body=new_body) and not needing to know /

Re: Update re: new model

2018-08-03 Thread Terry Brown
Just FYI the tree did not render for me. Leo 5.7.4 devel, build 20180607085129, Thu Jun 7 08:51:29 CDT 2018 Git repo info: branch = ltm-leo, commit = eb3b09169816 Python 3.6.6, PyQt version 5.6.2 Windows 10 AMD64 (build 10.0.14393) SP0 isPython3: True probing with g.log(p.h) suggested node

Re: Update re: new model

2018-08-03 Thread vitalije
Revision eb3b09169 added support for visual declutter in NewTreeWidget. It also supports styling via themes qt style sheet like Leo tree currently does. All unit tests pass. I am going to use this code