- fixed the multi-color feature in the Gerber object UI

- fixed the marking of apertures in Gerber object UI and in Extract plugin
This commit is contained in:
Marius Stanciu
2022-02-01 04:48:05 +02:00
committed by Marius
parent 103f2c42a8
commit 93b1c5c3a2
3 changed files with 26 additions and 16 deletions

View File

@@ -928,8 +928,9 @@ class ToolExtract(AppTool):
if self.ui.apertures_table.cellWidget(cw_row, 3).isChecked():
# self.plot_aperture(color='#2d4606bf', marked_aperture=aperture, visible=True)
grb_obj.plot_aperture(color=self.app.defaults['global_sel_draw_color'] + 'AA',
marked_aperture=aperture, visible=True, run_thread=True)
color = self.app.defaults['global_sel_draw_color']
color = (color + 'AA') if len(color) == 7 else (color[:-2] + 'AA')
grb_obj.plot_aperture(color=color, marked_aperture=aperture, visible=True, run_thread=True)
else:
grb_obj.clear_plot_apertures(aperture=aperture)