Dark and Light FreeCAD stylesheets (v1.8a)

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by easyw-fc »

pablogil wrote: I don't know, I just know how to style QT, I'm not C++ or Python coder... :(
Hi, I found a way to get if a StykeSheet is applied and in case list all the attributes

Code: Select all

print QtGui.QApplication.style().metaObject().className()    # 
print QtGui.QApplication.instance().styleSheet()    # list all applied styles   
Then I can manage the button styles :)

Thank you for your nice stylesheets :D
Maurice
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by pablogil »

easyw-fc wrote:
pablogil wrote: I don't know, I just know how to style QT, I'm not C++ or Python coder... :(
Hi, I found a way to get if a StykeSheet is applied and in case list all the attributes

Code: Select all

print QtGui.QApplication.style().metaObject().className()    # 
print QtGui.QApplication.instance().styleSheet()    # list all applied styles   
Then I can manage the button styles :)

Thank you for your nice stylesheets :D
Maurice
Cool!
I'm happy to found the way :D
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
User avatar
bill
Posts: 376
Joined: Fri Jan 09, 2015 9:25 pm

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by bill »

Is this a problem with Stylesheets or the Widget itself?
touchpadcrop.png
touchpadcrop.png (5.15 KiB) Viewed 6334 times
User avatar
yorik
Founder
Posts: 13664
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by yorik »

It looks like french :D "touche pas!"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by triplus »

bill wrote:Is this a problem with Stylesheets or the Widget itself?
touchpadcrop.png
Hi @bill.

I would say it goes more in the direction of feature request. That is UX element like navigation indicator was never done before yet in FreeCAD and therefore Dark and Light stylesheets don't yet have optimal support for styling it.

P.S. I likely won't be able to have a look before weekend.
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by pablogil »

Hi,

Yes, that feature has been introduced after the last stylesheet update so it needs a little tweaking... @triplus, could you add an ID to the QPushButton so that I can theme it without interfering the rest of elements? I know where is the problem and it has a difficult solutionif not introducing this new ID...

thanks
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by triplus »

pablogil wrote:@triplus, could you add an ID to the QPushButton so that I can theme it without interfering the rest of elements?
Hi Pablo. Try using:

Code: Select all

NavigationIndicator
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by triplus »

Light.png
Light.png (9.23 KiB) Viewed 6148 times
Dark.png
Dark.png (8.62 KiB) Viewed 6148 times
https://github.com/FreeCAD/FreeCAD/pull/672
https://github.com/pgilfernandez/FreeCA ... ets/pull/4
zmp2000
Posts: 7
Joined: Sat May 04, 2019 6:44 pm

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by zmp2000 »

Hi I have created a new stylesheet , a darker one that looks like Blender 2.8.
It´s on my Fork https://github.com/zmp2000/FreeCAD/blob ... e-dark.qss

I would like to null if a pull request would be welcome or not?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Dark and Light FreeCAD stylesheets (v1.8a)

Post by NormandC »

Hello zmp2000,

Welcome here.

That sounds intriguing. Could you please post a screenshot? (I'm replying on my phone) I'm sure users would be interested in your theme.
Post Reply