On Mon, Oct 24, 2011 at 4:24 PM, Terry Brown <[email protected]> wrote:

> I fear that it's only working by the skin of its teeth.

I agree.  This is not a completely satisfactory situation.

I just realized that calling qtBody.setEditorColors wipes out the
background color of scrollbar.  The fix (not yet on the trunk) is to
move into the viewport:

    if hasattr(obj,'viewport'):
        obj = obj.viewport()

> I think things are working in Leo because you're dealing with extant widgets, 
> where rendering is occurring between each single stylesheet change.

I agree.

> but I bet if you try and apply two sheets at once, say in add_border(), only 
> the last one has an impact.

I agree.

The point I am trying to make, and apparently none-too-clearly, is Leo
must have a way of making stylistic changes dynamically.

Stylesheets are a not-very-convincing way to do this, but in the
absence of what might be called a proper api to change styles we must
make do with what we have.

That being so, I want to stay with the simple way that works for now.
I'll be happy to create more complex tools if they become necessary.

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.

Reply via email to