This has worked out very well, I'm definitely going to need to add in a section to the theme stylesheets for my plugin though, lots of widgets I use are not covered by the base set.
On Thursday, August 27, 2015 at 5:09:15 PM UTC-4, Terry Brown wrote: > > On Thu, 27 Aug 2015 13:57:08 -0700 (PDT) > john lunzer <[email protected] <javascript:>> wrote: > > > Thanks Terry, I'll check out free_layout in the future but for the > > moment I think this will get me there (I think there will be less > > redesign/refactoring this way). Thanks for pointing me in the right > > direction. > > Sure - just to be sure we're on the same page, which seems like it > should be a pun in this context but somehow isn't :-) > > c.styleSheetManager.get_master_widget(c.frame.top).styleSheet() > > seems like the easiest way. > > Cheers -Terry > > > > On Thursday, August 27, 2015 at 4:40:41 PM UTC-4, Terry Brown wrote: > > > > > > On Thu, 27 Aug 2015 15:38:22 -0500 > > > "'Terry Brown' via leo-editor" <[email protected] > > > <javascript:>> wrote: > > > > > > > c.styleSheetManager.get_master_widget(c.frame.top).styleSheet() > > > > > > Just for completeness, > > > c.config.getData('qt-gui-plugin-style-sheet') wasn't a bad idea, > > > but it would be something like > > > > > > > c.styleSheetManager.expand_css_constants(c.config.getData('qt-gui-plugin-style-sheet')) > > > > > + > > > > c.styleSheetManager.expand_css_constants(c.config.getData('qt-gui-user-style-sheet')) > > > > > > > > > > > Definitely better to grab the existing one. > > > > > > Cheers -Terry > > > > > > -- 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.
