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

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

Postby pablogil » Tue Jun 23, 2015 3:10 pm

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
Posts: 2012
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

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

Postby Jee-Bee » Tue Jun 23, 2015 3:15 pm

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

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

Postby pablogil » Tue Jun 23, 2015 3:31 pm

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

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

Postby pablogil » Tue Jun 23, 2015 4:22 pm

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
Posts: 4690
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

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

Postby microelly2 » Tue Jun 23, 2015 4:39 pm

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

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

Postby pablogil » Mon Jun 29, 2015 7:10 am

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 1412 times
Thank you!
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
wmayer
Site Admin
Posts: 15747
Joined: Thu Feb 19, 2009 10:32 am

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

Postby wmayer » Mon Jun 29, 2015 8:12 am

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

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

Postby pablogil » Mon Jun 29, 2015 8:31 am

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
Site Admin
Posts: 15747
Joined: Thu Feb 19, 2009 10:32 am

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

Postby wmayer » Mon Jun 29, 2015 9:25 am

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

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

Postby pablogil » Mon Jun 29, 2015 10:05 am

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 1384 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