summaryrefslogtreecommitdiff
path: root/gerber/pcb.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-07-20 23:37:18 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-07-20 23:37:18 +0800
commitb0e13cc596a380b042a5db1f62a5c850b3573519 (patch)
tree2f25348808975986f33c572912ac893bbb64fbe2 /gerber/pcb.py
parente8327fda79ede786e2fbc79eaf1b394f12fe66ce (diff)
parent6a005436b475e3517fd6a583473b60e601bcc661 (diff)
downloadgerbonara-b0e13cc596a380b042a5db1f62a5c850b3573519.tar.gz
gerbonara-b0e13cc596a380b042a5db1f62a5c850b3573519.tar.bz2
gerbonara-b0e13cc596a380b042a5db1f62a5c850b3573519.zip
Merge in 6a005436b475e3517fd6a583473b60e601bcc661
Diffstat (limited to 'gerber/pcb.py')
-rw-r--r--gerber/pcb.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/gerber/pcb.py b/gerber/pcb.py
index 990a05c..0518dd4 100644
--- a/gerber/pcb.py
+++ b/gerber/pcb.py
@@ -21,7 +21,6 @@ from .exceptions import ParseError
from .layers import PCBLayer, LayerSet, sort_layers
from .common import read as gerber_read
from .utils import listdir
-from .render import theme
class PCB(object):
@@ -58,23 +57,11 @@ class PCB(object):
def __init__(self, layers, name=None):
self.layers = sort_layers(layers)
self.name = name
- self._theme = theme.THEMES['Default']
- self.theme = self._theme
def __len__(self):
return len(self.layers)
@property
- def theme(self):
- return self._theme
-
- @theme.setter
- def theme(self, theme):
- self._theme = theme
- for layer in self.layers:
- layer.settings = theme[layer.layer_class]
-
- @property
def top_layers(self):
board_layers = [l for l in reversed(self.layers) if l.layer_class in ('topsilk', 'topmask', 'top')]
drill_layers = [l for l in self.drill_layers if 'top' in l.layers]