On Fri, 12 Sep 2014 09:33:34 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:

> If you like, we can chat on irc.
> 
> Present status:
> 
> 1. Added reload-styles button in leoSettings.leo: it just does: 
> c.k.simulateCommand('style-reload')
> 
> 2. The button reported: "WARNING: styles in use do not match applied 
> styles" and then changed the styles.

I think that's bogus - I was trying to compare the generated stylesheet
with the one returned by Qt after the generated stylesheet was applied,
but Qt munges whitespace in the returned stylesheet so much I think my
attempt to normalize away the differences failed.  So basically that
test / warning should be removed and the user will have to decide for
itself whether the changed stylesheet was applied successfully - Qt
should give a warning in case of unparseable sheets.

> So I reloaded and began studying the style-reload command in 
> qt_commands.py.  This was the missing piece of the puzzle for me.  
> 
> For testing, I've added a "safe" switch so that settings don't really
> get changed.  Not strictly necessary: I could always do the
> reload-styles from a small test file.
> 
> It's cool to see the logic in reload_styles.  For instance, it allows
> at least some stylesheets to be composed from their descendants.  If
> it hasn't already been done, it will be done for @data @data 
> qt-gui-plugin-style-sheet: it will make it much more Leonine.

Sounds good.

Cheers -Terry
 
> In short, I am confident that I can get everything working in a day
> or three :-)  I'll be writing up my experiences as pre-writing for
> improved docs.
> 
> Edward
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to