Yesterday I tried to change the colour of the value text items in layer F.Fab for my documentation.
It did this by selecting the value text and changing the colour at the Properties panel.
But it didn’t seem to have any effect on the screen.
Unfortunately, it has an effect:
This morning I tried to load my project but loading the PCB failed with an error pointing to the text line which contains the additional “color” tag for the value item.
After deleting the corresponding line I could load my PCB file again.
I created a little demo project to show the problem:
To change colors you first need to use a personal color scheme. Kicad color schemes are read only.
Go to preferences > Symbol/Schematic/Footprint/PCB Editors and select Colors.
At the top centre you will see Theme: Kicad (read only).
Click the small triangle.
Select “New Theme”
Place a name in the Box and you will now have the same theme colors as shown in the read only theme, but with a different, new name.
This new named theme is read/write.
Completing this action will probably solve your opening problem.
See example below. All the JMK themes are read/write versions of other read only color themes.
I use my own colour scheme, that’s not the cause of the issue.
What I wanted to do is to change just the colour of the value text items on layer F.Fab. All other items on this layer should appear in default colour of this layer.
So I found that option in properties pane but:
a) it didn’t work
b) it will add a “color” tag to the value text items in the PCB file which KiCAD can’t understand when loading my PCB file again.
You’re right.
Looks like you’ve discovered a pretty nasty bug. I tried your action with a Ref. text and I can no longer open my PCB, just an empty workspace.
I am using Linux Mint 21.3 & Kicad 8.0.3
Upgraded to 8.0.4-rc2 and tested. Also tested 8.99. Fault occurs on both.
I don’t know if I’m ruining anyone’s fun, but the point is that KiCad doesn’t support color in individual PCB items in any way. Colors are for layers and item types and don’t belong to the design, they are just for the UI (board view) and totally separate from the design itself. Being able to set (or write to the file or read from the file) the color of any individual item would be illogical. Even if KiCad could read the color value from the file without an error it would just be ignored.
Thanks Eelik.
There was not really a need for further explanation. I was not at all concerned if the function worked or not. The loss of the PCB was of more interest.
The reaction to the Issue, with the quick change of “Issue Title” and the almost “Woops, that shouldn’t be there” comment appealed to me.
I wasn’t finger pointing. I wasn’t complaining or criticizing or winging or anything else; just smiling to myself.