p.s. search
http://doc.qt.io/qt-5.8/stylesheet-syntax.html
for ~, it seems like it should still work.

Cheers -Terry

On Wed, 15 Mar 2017 07:02:17 -0500
Terry Brown <[email protected]> wrote:

> On Wed, 15 Mar 2017 01:18:35 -0700 (PDT)
> Milan Melena <[email protected]> wrote:
> 
> > Hi,
> > 
> > I have found out, that problem is with selectors using ~= (tilda) 
> > 
> > for example:
> > 
> > QLineEdit#lineEdit[style_class ~= 'minibuffer_warning'] {
> >     background-color: @minibuffer_warning_color;
> > }  
> 
> Ah, ok, thanks for the detective work.  Leo uses that construct to
> emulate HTML-CSS's `class` attribute, which Qt-CSS doesn't have.  Or
> at least didn't have, maybe it has something like that now.  Will
> have to see if Qt-CSS supports ~= in some other way now.  ~= means
> "contains".
> 
> Cheers -Terry
> 
> > When you try replace all occurences of "~=" with "=" in stylesheet, 
> > everything seems work right even in PyQ 5.8.
> > 
> > Milan Melena
> > 
> > Dne středa 15. března 2017 3:39:22 UTC+1 Terry Brown napsal(a):
> >   
> > > Just confirmed in a Windows 7 VM switching back and forth between
> > > PyQt 5.7.1 and 5.8 (Python 3 for both) that stylesheets that work
> > > fine in 5.7.1 (my personal one, and EKR Windows Dark) have issues
> > > in PyQt 5.8. 
> > >
> > > My backgrounds are ok, but font sizes are wrong.  EKR Dark had
> > > light backgrounds and some fonts aren't sized right, but some
> > > are. 
> > >
> > > I can not google up any reports of this issue, but it might be
> > > only PyQt, not Qt, or just too early to be being reported yet? 
> > >
> > > So it might be possible to write stylesheets that work in 5.8 and
> > > lower versions, seeing addressed the right way fonts and
> > > backgrounds can be changed, but what a pain. 
> > >
> > > Haven't looked into it beyond this observation yet. 
> > >
> > > 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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to