Skip to content

Net Highlights Not Applied to Pads #511

@MikahB

Description

@MikahB

In the Net List, there is an option on each row to set a custom color (which is very helpful). While the color-selection works, the color is never actually rendered.

I was able to make a small change to drawFootprint which resolves this:

Original Code:

if (pad.layers.includes(layer)) {
    drawPad(ctx, pad, colors.pad, outline);
...

Updated Code:

if (pad.layers.includes(layer)) {
    var padColor = (highlight) ? colors.pad : (settings.netColors[pad.net] || colors.pad);
    drawPad(ctx, pad, padColor, outline);
...

This works on both the interactive display and when saving images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions