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
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by pablogil »

microelly2 wrote:try please
menu -> tools -> edit parameters

Plugins -> configfile

change its value to the place where the pluginloaderconfig.yaml is installed on your computer.
and restart freecad

By the way - on your system the yaml module is installed !?
how did you install it?
there was a question yesterday and I was not able to help.
Now it doesn't pop up the error, but the plugin manager does not list the plugins, tabs, and stuff. It just shows blank.
I guess it could be related to the not installation of yaml... so in OSX should I install it? how? it wasn't necessary in Windows or Ubuntu...
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by Jee-Bee »

In ubuntu it is also necessary i did that this weekend…
Probably you already had Yaml
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by pablogil »

Jee-Bee wrote:In ubuntu it is also necessary i did that this weekend…
Probably you already had Yaml
Yeah, you are right, I double checked it and it happens the same than in OSX so I should correctly install yaml, I'll try and let you know.
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by pablogil »

I got it to work in Ubuntu but I gave up trying it in OSX, have no idea how to install YAML... actually, I think I installed it but have no clue how to check if it's installed or why it's not working in FreeCAD...
Any idea? (maybe we should move this problems to other thread...)
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by microelly2 »

pablogil wrote:Any idea? (maybe we should move this problems to other thread...)
lets continue this problem there:
viewtopic.php?f=4&t=11483
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by pablogil »

Could any of you tell me how color picker are coded so that I can style them?
color_picker.png
color_picker.png (98.21 KiB) Viewed 2835 times
Thank you!
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
wmayer
Founder
Posts: 20298
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by wmayer »

What do you mean with "how coded"? In case it helps here is the source code:
https://github.com/FreeCAD/FreeCAD_sf_m ... ets.h#L170
https://github.com/FreeCAD/FreeCAD_sf_m ... s.cpp#L512
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by pablogil »

I mean what kind of Qt object it is.
Yes, I have the source but I'm not a coder and don't know where to locate the part of code where the "color picker" is... That's why I asked for help, hehehe
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
wmayer
Founder
Posts: 20298
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by wmayer »

The class ColorButton is our implementation and it derives from QPushButton.
User avatar
pablogil
Posts: 882
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Dark and Light FreeCAD stylesheets (v1.3)

Post by pablogil »

I have tried everything and I can't style it... (I just "reach" the QPushButton border color, cyan in the following screenshot but not usable as you see):
colors.png
colors.png (11.37 KiB) Viewed 2807 times
Any idea how can I change size, border color and border radius of the ColorButton itself?
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
Post Reply