Implement show_colorname for cables
This commit is contained in:
parent
8c69a0030e
commit
5e4271df1c
@ -271,6 +271,7 @@ class Cable:
|
|||||||
show_name: Optional[bool] = None
|
show_name: Optional[bool] = None
|
||||||
show_wirecount: bool = True
|
show_wirecount: bool = True
|
||||||
show_wirenumbers: Optional[bool] = None
|
show_wirenumbers: Optional[bool] = None
|
||||||
|
show_colorname: bool = True
|
||||||
ignore_in_bom: bool = False
|
ignore_in_bom: bool = False
|
||||||
additional_components: List[AdditionalComponent] = field(default_factory=list)
|
additional_components: List[AdditionalComponent] = field(default_factory=list)
|
||||||
|
|
||||||
|
|||||||
@ -352,7 +352,7 @@ class Harness:
|
|||||||
colorstr = wv_colors.translate_color(
|
colorstr = wv_colors.translate_color(
|
||||||
connection_color, self.options.color_mode
|
connection_color, self.options.color_mode
|
||||||
)
|
)
|
||||||
if colorstr:
|
if colorstr and cable.show_colorname:
|
||||||
wireinfo.append(colorstr)
|
wireinfo.append(colorstr)
|
||||||
if cable.wirelabels:
|
if cable.wirelabels:
|
||||||
wireinfo.append(wirelabel if wirelabel is not None else "")
|
wireinfo.append(wirelabel if wirelabel is not None else "")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user