Mail Archives: geda-user/2011/10/02/16:56:24
On Sun, Oct 02, 2011 at 09:27:33PM +0100, Peter Clifton wrote:
> On Sun, 2011-10-02 at 12:51 -0500, John Griessen wrote:
> > I just finished building pcb and the docs and noticed fine looking transparency.
> >
> > When I have some colors defined in ~/.pcb/colors/Default,
> > can I define project dir colors somehow?
>
> Unfortunately, no. Sorry.
>
> There was a patch some while back (or at least a discussion) to add
> layer colours to the PCB file (and let the user choose which set to
> load). I don't fully recall where this was left off though.
>
It would require a proper layer data structure to do cleanly.
(Though for that matter, we also need such a layer structure
to save/load layer names cleanly, but we do it anyway.)
IMHO this should be a priority. But given that I have no development
time to spare, all I can do is suggest it. :(
Ignoring "do it cleanly", it should be really easy to implement, at
least for copper layers. You can already add, say,
Attribute ("PCB::layer::color" "#883300")
to a layer in an existing .pcb file, and pcb save/loads it correctly.
Modifying the color-handling code to modify this attribute alongside
its Settings.LayerColor[] array would take an hour, maybe.
The hard part would be making --layer-color-N and --layer-selected-color-N
command-line options work sensibly, as well as the .preferences settings.
The colors dialog would need "Save Defaults"/"Load Defaults" buttons
alongside "Save"/"Load", which would only affect the current board.
--
Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web: http://www.wpsoftware.net/andrew
- Raw text -