Hello,
how can i change only some icons of the partdesign workbench.
For example the body icon.
I know that there is somewhere a svg called PartDesign_Body_Tree.svg but i can not find it in the icons folder of freecad.
I only find the svg for the workbench it self. And when i change that svg the svg of the workbench in freecad also changed.
So is it possible to change some icons with changing the svg or is it a bit more complex?
thank
Kevin
Change GUI Icons of PartDesign
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 33
- Joined: Wed Jun 12, 2019 10:41 am
Re: Change GUI Icons of PartDesign
AFAIK, those icons are compiled into the FreeCAD binary. You need to recompile FreeCAD to change them.
They body icon is here: https://github.com/FreeCAD/FreeCAD/blob ... n_Body.svg
They body icon is here: https://github.com/FreeCAD/FreeCAD/blob ... n_Body.svg
-
- Posts: 33
- Joined: Wed Jun 12, 2019 10:41 am
Re: Change GUI Icons of PartDesign
thank you for the answer.
but i dont have this in my version.
but i dont have this in my version.
Re: Change GUI Icons of PartDesign
Are you sure this is a source code download? "Win64" suggests it's a complied binary version.HelloWorldXD wrote: ↑Sat Aug 29, 2020 2:41 pm thank you for the answer.
but i dont have this in my version.
-
- Posts: 33
- Joined: Wed Jun 12, 2019 10:41 am
Re: Change GUI Icons of PartDesign
okay thank you.
i think i have no idea how this works xD
i think i have no idea how this works xD
Re: Change GUI Icons of PartDesign
This is a development part of the forum. So you have to have some idea of programming languages, libraries and frameworks.HelloWorldXD wrote: ↑Sat Aug 29, 2020 3:57 pm okay thank you.
i think i have no idea how this works xD
Some developers here get away with only some knowledge (e.g. Python). Unfortunately, in this case, you have to learn about the Qt Resource system: https://doc.qt.io/qt-5/resources.html and how to compile FreeCAD with changed resources.
If you want to propose a new set of icons just post them here. But there are already some nice suggestions.
Re: Change GUI Icons of PartDesign
Like vanuan says, most icons in FreeCAD are compiled together with the binaries of the program (FreeCAD.so, Part.so, Draft_rc.py, etc.), so the icons can no longer be changed when using the pre-compiled distributions of the program.HelloWorldXD wrote: ↑Sat Aug 29, 2020 2:01 pm how can i change only some icons of the partdesign workbench...
In your case, you seem to be using a pre-compiled version, so in this case the PartDesign/Gui/Resources directory doesn't exist. The code in this directory is compiled into the binaries, so the directory is not needed for distribution any more.
In order to change the icons, you would need to get the source code of FreeCAD, change the icon that you wish, and then compile your own version of FreeCAD (Compiling). This is not too difficult, although doing it just to change a single icon is a bit excessive.
What you could do is create your own Command to launch the old command (PartDesign Body), but assign your custom icon to this new command. It's basically adding a mask to the older command. It's an elaborate solution just to deal with a simple issue; it's probably not worth the trouble.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.