delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2011/10/02/16:56:24

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 2 Oct 2011 21:13:02 -0700
From: Andrew Poelstra <asp11 AT sfu DOT ca>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] PCB linux git head questions
Message-ID: <20111003041302.GB2946@malakian.lan>
References: <4E88A49F DOT 50904 AT ecosensory DOT com>
<1317587253 DOT 5335 DOT 1 DOT camel AT localhost>
MIME-Version: 1.0
In-Reply-To: <1317587253.5335.1.camel@localhost>
User-Agent: Mutt/1.5.20 (2009-12-10)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019