On Wed, 26 Oct 2011 13:07:09 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:
> There is a bad interaction between setEditorColors and add_border.
> Setting the colors (in the body pane's viewport) destroys the border
> in the same place.
>
> Would you like to do the work of saving/restoring/patching stylesheet
> attributes, or shall I?
I've been working on getting CSS like class behavior, which I think
would avoid this problem. As long as it's fast enough. Let's see
where I get to with that. If it works, add_border would become:
def add_border(self,c,w):
if c.use_focus_border:
w.add_sclass('focused_pane')
w.remove_sclass('unfocused_pane')
where .add_sclass and .remove_sclass are monkey-patched functions for
manipulating the QObject property 'style_class', which is used in the
style sheet.
Of course, if it doesn't work, the sentinel based sheet manipulation
option, which I think you're referring to above, would look very
similar.
Cheers -Terry
--
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.