diff --git a/CHANGELOG.md b/CHANGELOG.md index 043c6469..a0f1cbb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ CHANGELOG for FlatCAM beta - in Corner Markers Plugin I added a new feature, ability to insert existing markers into external objects. Finished the work for external Gerbers and work in progress for the external Geometry - the Editors require an Object UI build before launching; I've added the required code so the shortcut keys work even if the Properties tab is not current - in Corner Markers Plugin - finished the feature of adding markers geometry to an external Geometry object +- changing the Excellon Object color from Project Tab context menu is now persistent 7.10.2021 diff --git a/appObjects/AppObject.py b/appObjects/AppObject.py index efb3d76d..a6865664 100644 --- a/appObjects/AppObject.py +++ b/appObjects/AppObject.py @@ -300,8 +300,12 @@ class AppObject(QtCore.QObject): if obj.kind != 'document' and obj.kind != 'script': try: if obj.kind == 'excellon': - obj.fill_color = self.app.defaults["excellon_plot_fill"] - obj.outline_color = self.app.defaults["excellon_plot_line"] + if self.app.defaults["excellon_color"]: + obj.fill_color = self.app.defaults["excellon_color"][0] + obj.outline_color = self.app.defaults["excellon_color"][1] + else: + obj.fill_color = self.app.defaults["excellon_plot_fill"] + obj.outline_color = self.app.defaults["excellon_plot_line"] if obj.kind == 'gerber': if self.app.defaults["gerber_store_color_list"] is True: diff --git a/app_Main.py b/app_Main.py index 12c8377c..6a1fb22d 100644 --- a/app_Main.py +++ b/app_Main.py @@ -8982,6 +8982,8 @@ class App(QtCore.QObject): (self.defaults["gerber_plot_fill"], self.defaults["gerber_plot_line"]) ) self.defaults["gerber_color_list"][idx] = new_c + elif sel_obj.kind == 'excellon': + self.defaults["excellon_color"] = new_c def start_delayed_quit(self, delay, filename, should_quit=None): """ diff --git a/defaults.py b/defaults.py index 9b52a1f8..3367f6d5 100644 --- a/defaults.py +++ b/defaults.py @@ -239,6 +239,7 @@ class FlatCAMDefaults: "excellon_circle_steps": 16, "excellon_solid": True, "excellon_multicolored": False, + "excellon_color": None, "excellon_merge_fuse_tools": True, "excellon_format_upper_in": 2, "excellon_format_lower_in": 4,