Changing Icon Colours

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Changing Icon Colours

Post by Vagulus »

Bance wrote: Sat Sep 04, 2021 8:19 pm Create a directory named constraintsLight in your location equivilent to /.FreeCAD/Gui/Icons ...
Fell at the first hurdle! :(

I have a brand new, clean, Installation of FC 19.2 and I do not have any folder /.FreeCAD/Gui/Icons
The Installation does have C:\Program Files\FreeCAD 0.19\data\Gui

In my Source Code Folder I have
D:\Desktop\FreeCAD Source Code\FreeCAD-0.19.2\src\Mod\Sketcher\Gui\Resources\icons

Where are we working?
"It is much harder to simplify than to complicate."
Joseph Kimble
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Changing Icon Colours

Post by TheMarkster »

In file explorer enter %appdata%\FreeCAD

You can try putting it there. I don't know if it'll work or not. I've never bothered with themes.
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Changing Icon Colours

Post by Bance »

Vagulus wrote: Sat Sep 04, 2021 11:52 pmI do not have any folder /.FreeCAD/Gui/Icons


I knew that, which is why I said to put it in the equivalent. Which on windoze would be C:\Program Files\FreeCAD 0.19\data\Gui.

Sorry you need to create first the directory \Icons then \constraintsLight within it.

But really, considering you were about to alter source code and compile your very own specific version of FC, it wouldn't have hurt to try either or both the locations you mentioned. These files are only text files they won't affect anything if they are in the wrong place they just won't work!

EDIT:- Added info
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Changing Icon Colours

Post by Vagulus »

I agree, I might have done that but I have some nasty memories of charging ahead doing things in my software installations and coming unstuck. These days I like to know exactly where I am going.

https://github.com/triplus/IconThemes#prerequisites tells me I have to have some other files. Currently, I have
210905 ConstraintsLight.png
210905 ConstraintsLight.png (178.27 KiB) Viewed 1240 times
in C:\Program Files\FreeCAD 0.19\data\Gui\Icons\ConstraintsLight.

The Icon.Theme file is
[Icon Theme]
Name=ConstraintsLight
Comment=Constraints Light icon theme pack
Inherits=FreeCAD-default
Directories=scalable

[scalable]
Size=64
Type=Scalable
MinSize=1
MaxSize=256


I am assuming that the RCC file is the equivalent of the QRC file the webpage mentions.

So, if all the above is kosher, the last hurdle is getting FC to know the Theme is there.
How do I do that? Uncle Google is being very quiet about that and I don't see anything in the Wiki. :(
"It is much harder to simplify than to complicate."
Joseph Kimble
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Changing Icon Colours

Post by Bance »

Vagulus wrote: Sun Sep 05, 2021 9:27 amI am assuming that the RCC file is the equivalent of the QRC file the webpage mentions.
It is not. I think you have comprehension problems.

The .rcc (lowercase) should be in the directory Icons. That is all that is required.
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Changing Icon Colours

Post by Vagulus »

Bance wrote: Sun Sep 05, 2021 9:36 am It is not. I think you have comprehension problems.
My plea here us that this has been a long road - this thread is now up to page six. My eyes are getting a bit blurry. :oops: I am hoping (and I bet you are too) that this is the last step. :D
Bance wrote: Sun Sep 05, 2021 9:36 am The .rcc (lowercase) should be in the directory Icons.

Done. :)
Bance wrote: Sun Sep 05, 2021 9:36 am That is all that is required.
I click on Accessories --> Icon Themes and constraintsLight is a no show.
"It is much harder to simplify than to complicate."
Joseph Kimble
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Changing Icon Colours

Post by Bance »

Your directory is called ConstraintsLight not constraintsLight, detail is important.
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Changing Icon Colours

Post by Vagulus »

I have decapitalised folder names back up the tree, folder by folder - checking each change, until I have
C:\Program Files\FreeCAD 0.19\data\gui\icons\constraintsLight

At no stage any response to Accessories --> Icon Themes.

I have completely re-booted the PC. No change.
"It is much harder to simplify than to complicate."
Joseph Kimble
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Changing Icon Colours

Post by Bance »

Vagulus wrote: Sun Sep 05, 2021 10:51 am I have decapitalised folder names back up the tree, folder by folder - checking each change, until I have
C:\Program Files\FreeCAD 0.19\data\gui\icons\constraintsLight

At no stage any response to Accessories --> Icon Themes.

I have completely re-booted the PC. No change.
I'm sorry did I ask you to do that?
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Changing Icon Colours

Post by Vagulus »

Bance wrote: Sun Sep 05, 2021 11:02 am I'm sorry did I ask you to do that?
No, but you did say that detail was important.

I am clutching at straws here. Frustration does not fully describe my state of mind.
I had a look at the text of the .rcc file you sent. I noted what looks like path definitions at lines 425, 622 and 797 (and probably elsewhere). These lines refer to .svg files with names in the form Constraint_PointOnObject.svg which is the same as the names of the SVGs I posted (which is the same as the names of the SVGs in the source code folder). The SVGs in your .tar file have names in the form Sketcher_Constraint_PointOnObject.svg.

Is that significant?
"It is much harder to simplify than to complicate."
Joseph Kimble
Post Reply