From e2770776b72773606bc97bddde4490b123520523 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Apr 2022 01:23:01 +0300 Subject: [PATCH 1/6] - in Geometry Editor, in Copy Tool added the 2D copy-as-array feature therefore finishing this editor plugin upgrade --- CHANGELOG.md | 6 +- appEditors/AppGeoEditor.py | 201 ++++++++++++------ appEditors/geo_plugins/GeoCopyPlugin.py | 201 ++++++++++++++++-- .../geo_plugins/GeoTransformationPlugin.py | 2 +- appGUI/MainGUI.py | 6 +- .../tools/ToolsPanelizePrefGroupUI.py | 8 +- appPlugins/ToolPanelize.py | 8 +- 7 files changed, 341 insertions(+), 91 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a11a43..2c9d283e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,15 @@ CHANGELOG for FlatCAM Evo beta ================================================= +18.04.2022 + +- in Geometry Editor, in Copy Tool added the 2D copy-as-array feature therefore finishing this editor plugin upgrade + 17.04.2022 - in Geometry Editor, in Copy Tool - work in progress (adding utility geometry for the array mode) - in Geometry Editor, in Copy Tool - linear array utility geometry is working -- in Geometry Editor, COpy Tool, finished the copy-as-array feature except the 2D array type which was not implemented yet +- in Geometry Editor, Copy Tool, finished the copy-as-array feature except the 2D array type which was not implemented yet 16.04.2022 diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index e1792871..94189b45 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -2281,82 +2281,157 @@ class FCCopy(FCShapeTool): return self.util_geo def array_util_geometry(self, pos, static=None): - axis = self.copy_tool.ui.axis_radio.get_value() # X, Y or A array_type = self.copy_tool.ui.array_type_radio.get_value() # 'linear', '2D', 'circular' - array_size = int(self.copy_tool.ui.array_size_entry.get_value()) - pitch = float(self.copy_tool.ui.pitch_entry.get_value()) - linear_angle = float(self.copy_tool.ui.linear_angle_spinner.get_value()) if array_type == 'linear': # 'Linear' - if pos[0] is None and pos[1] is None: - dx = self.draw_app.x - dy = self.draw_app.y - else: - dx = pos[0] - dy = pos[1] - - geo_list = [] - self.points = [(dx, dy)] - - for item in range(array_size): - if axis == 'X': - new_pos = ((dx + (pitch * item)), dy) - elif axis == 'Y': - new_pos = (dx, (dy + (pitch * item))) - else: # 'A' - x_adj = pitch * math.cos(math.radians(linear_angle)) - y_adj = pitch * math.sin(math.radians(linear_angle)) - new_pos = ((dx + (x_adj * item)), (dy + (y_adj * item))) - - for g in self.draw_app.get_selected(): - if static is None or static is False: - geo_list.append(translate(g.geo, xoff=new_pos[0], yoff=new_pos[1])) - else: - geo_list.append(g.geo) - - return DrawToolUtilityShape(geo_list) + return self.linear_geo(pos, static) elif array_type == '2D': - pass + return self.dd_geo(pos) elif array_type == 'circular': # 'Circular' - if pos[0] is None and pos[1] is None: - cdx = self.draw_app.x - cdy = self.draw_app.y + return self.circular_geo(pos) + + def linear_geo(self, pos, static): + axis = self.copy_tool.ui.axis_radio.get_value() # X, Y or A + pitch = float(self.copy_tool.ui.pitch_entry.get_value()) + linear_angle = float(self.copy_tool.ui.linear_angle_spinner.get_value()) + array_size = int(self.copy_tool.ui.array_size_entry.get_value()) + + if pos[0] is None and pos[1] is None: + dx = self.draw_app.x + dy = self.draw_app.y + else: + dx = pos[0] + dy = pos[1] + + geo_list = [] + self.points = [(dx, dy)] + + for item in range(array_size): + if axis == 'X': + new_pos = ((dx + (pitch * item)), dy) + elif axis == 'Y': + new_pos = (dx, (dy + (pitch * item))) + else: # 'A' + x_adj = pitch * math.cos(math.radians(linear_angle)) + y_adj = pitch * math.sin(math.radians(linear_angle)) + new_pos = ((dx + (x_adj * item)), (dy + (y_adj * item))) + + for g in self.draw_app.get_selected(): + if static is None or static is False: + geo_list.append(translate(g.geo, xoff=new_pos[0], yoff=new_pos[1])) + else: + geo_list.append(g.geo) + + return DrawToolUtilityShape(geo_list) + + def dd_geo(self, pos): + trans_geo = [] + array_2d_type = self.copy_tool.ui.placement_radio.get_value() + + rows = self.copy_tool.ui.rows.get_value() + columns = self.copy_tool.ui.columns.get_value() + + spacing_rows = self.copy_tool.ui.spacing_rows.get_value() + spacing_columns = self.copy_tool.ui.spacing_columns.get_value() + + off_x = self.copy_tool.ui.offsetx_entry.get_value() + off_y = self.copy_tool.ui.offsety_entry.get_value() + + geo_source = [s.geo for s in self.draw_app.get_selected()] + + def geo_bounds(geo: (BaseGeometry, list)): + minx = np.Inf + miny = np.Inf + maxx = -np.Inf + maxy = -np.Inf + + if type(geo) == list: + for shp in geo: + minx_, miny_, maxx_, maxy_ = geo_bounds(shp) + minx = min(minx, minx_) + miny = min(miny, miny_) + maxx = max(maxx, maxx_) + maxy = max(maxy, maxy_) + return minx, miny, maxx, maxy else: - cdx = pos[0] + self.origin[0] - cdy = pos[1] + self.origin[1] + # it's an object, return its bounds + return geo.bounds - utility_list = [] + xmin, ymin, xmax, ymax = geo_bounds(geo_source) + currentx = pos[0] + currenty = pos[1] + + def translate_recursion(geom): + if type(geom) == list: + geoms = [] + for local_geom in geom: + res_geo = translate_recursion(local_geom) + try: + geoms += res_geo + except TypeError: + geoms.append(res_geo) + return geoms + else: + return translate(geom, xoff=currentx, yoff=currenty) + + for row in range(rows): + currentx = pos[0] + + for col in range(columns): + trans_geo += translate_recursion(geo_source) + if array_2d_type == 's': # 'spacing' + currentx += (xmax - xmin + spacing_columns) + else: # 'offset' + currentx = pos[0] + off_x * (col + 1) # because 'col' starts from 0 we increment by 1 + + if array_2d_type == 's': # 'spacing' + currenty += (ymax - ymin + spacing_rows) + else: # 'offset; + currenty = pos[1] + off_y * (row + 1) # because 'row' starts from 0 we increment by 1 + + return DrawToolUtilityShape(trans_geo) + + def circular_geo(self, pos): + if pos[0] is None and pos[1] is None: + cdx = self.draw_app.x + cdy = self.draw_app.y + else: + cdx = pos[0] + self.origin[0] + cdy = pos[1] + self.origin[1] + + utility_list = [] + + try: + radius = distance((cdx, cdy), self.origin) + except Exception: + radius = 0 + + if radius == 0: + self.draw_app.delete_utility_geometry() + + if len(self.points) >= 1 and radius > 0: try: - radius = distance((cdx, cdy), self.origin) - except Exception: - radius = 0 + if cdx < self.origin[0]: + radius = -radius - if radius == 0: - self.draw_app.delete_utility_geometry() + # draw the temp geometry + initial_angle = math.asin((cdy - self.origin[1]) / radius) + temp_circular_geo = self.circular_util_shape(radius, initial_angle) - if len(self.points) >= 1 and radius > 0: - try: - if cdx < self.origin[0]: - radius = -radius + temp_points = [ + (self.origin[0], self.origin[1]), + (self.origin[0] + pos[0], self.origin[1] + pos[1]) + ] + temp_line = LineString(temp_points) - # draw the temp geometry - initial_angle = math.asin((cdy - self.origin[1]) / radius) - temp_circular_geo = self.circular_util_shape(radius, initial_angle) + for geo_shape in temp_circular_geo: + utility_list.append(geo_shape.geo) + utility_list.append(temp_line) - temp_points = [ - (self.origin[0], self.origin[1]), - (self.origin[0]+pos[0], self.origin[1]+pos[1]) - ] - temp_line = LineString(temp_points) - - for geo_shape in temp_circular_geo: - utility_list.append(geo_shape.geo) - utility_list.append(temp_line) - - return DrawToolUtilityShape(utility_list) - except Exception as e: - log.error("DrillArray.utility_geometry -- circular -> %s" % str(e)) + return DrawToolUtilityShape(utility_list) + except Exception as e: + log.error("DrillArray.utility_geometry -- circular -> %s" % str(e)) def circular_util_shape(self, radius, ini_angle): direction = self.copy_tool.ui.array_dir_radio.get_value() # CW or CCW diff --git a/appEditors/geo_plugins/GeoCopyPlugin.py b/appEditors/geo_plugins/GeoCopyPlugin.py index 1aa1ab9a..fb71cd2f 100644 --- a/appEditors/geo_plugins/GeoCopyPlugin.py +++ b/appEditors/geo_plugins/GeoCopyPlugin.py @@ -82,6 +82,14 @@ class CopyEditorTool(AppTool): self.ui.array_dir_radio.set_value('CW') self.ui.placement_radio.set_value('s') + self.ui.on_placement_radio(self.ui.placement_radio.get_value()) + + self.ui.spacing_rows.set_value(0) + self.ui.spacing_columns.set_value(0) + self.ui.rows.set_value(1) + self.ui.columns.set_value(1) + self.ui.offsetx_entry.set_value(0) + self.ui.offsety_entry.set_value(0) def on_tab_close(self): self.disconnect_signals() @@ -158,10 +166,10 @@ class CopyEditorUI: # Type of Array self.mode_label = FCLabel('%s:' % _("Mode")) self.mode_label.setToolTip( - _("Normal copy or special (array of copies)") + _("Single copy or special (array of copies)") ) self.mode_radio = RadioSet([ - {'label': _('Normal'), 'value': 'n'}, + {'label': _('Single'), 'value': 'n'}, {'label': _('Array'), 'value': 'a'} ]) @@ -185,7 +193,7 @@ class CopyEditorUI: self.array_size_label.setToolTip(_("Specify how many items to be in the array.")) self.array_size_entry = FCSpinner(policy=False) - self.array_size_entry.set_range(1, 10000) + self.array_size_entry.set_range(1, 100000) self.array_grid.addWidget(self.array_size_label, 2, 0) self.array_grid.addWidget(self.array_size_entry, 2, 1) @@ -282,11 +290,11 @@ class CopyEditorUI: self.two_dim_array_frame.setLayout(self.dd_grid) # 2D placement - self.place_label = FCLabel('%s:' % _('Direction')) + self.place_label = FCLabel('%s:' % _('Placement')) self.place_label.setToolTip( _("Placement of array items:\n" - "- 'Spacing' - define space between rows and columns \n" - "- 'Offset' - each row (and column) will be placed at a multiple of a value, from origin") + "'Spacing' - define space between rows and columns \n" + "'Offset' - each row (and column) will be placed at a multiple of a value, from origin") ) self.placement_radio = RadioSet([ @@ -297,6 +305,102 @@ class CopyEditorUI: self.dd_grid.addWidget(self.place_label, 0, 0) self.dd_grid.addWidget(self.placement_radio, 0, 1) + # Rows + self.rows = FCSpinner(callback=self.confirmation_message_int) + self.rows.set_range(0, 10000) + + self.rows_label = FCLabel('%s:' % _("Rows")) + self.rows_label.setToolTip( + _("Number of rows") + ) + self.dd_grid.addWidget(self.rows_label, 2, 0) + self.dd_grid.addWidget(self.rows, 2, 1) + + # Columns + self.columns = FCSpinner(callback=self.confirmation_message_int) + self.columns.set_range(0, 10000) + + self.columns_label = FCLabel('%s:' % _("Columns")) + self.columns_label.setToolTip( + _("Number of columns") + ) + self.dd_grid.addWidget(self.columns_label, 4, 0) + self.dd_grid.addWidget(self.columns, 4, 1) + + # ------------------------------------------------ + # ############## Spacing Frame ################# + # ------------------------------------------------ + self.spacing_frame = QtWidgets.QFrame() + self.spacing_frame.setContentsMargins(0, 0, 0, 0) + self.dd_grid.addWidget(self.spacing_frame, 6, 0, 1, 2) + + self.s_grid = GLay(v_spacing=5, h_spacing=3) + self.s_grid.setContentsMargins(0, 0, 0, 0) + self.spacing_frame.setLayout(self.s_grid) + + # Spacing Rows + self.spacing_rows = FCDoubleSpinner(callback=self.confirmation_message) + self.spacing_rows.set_range(0, 9999) + self.spacing_rows.set_precision(4) + + self.spacing_rows_label = FCLabel('%s:' % _("Spacing rows")) + self.spacing_rows_label.setToolTip( + _("Spacing between rows.\n" + "In current units.") + ) + self.s_grid.addWidget(self.spacing_rows_label, 0, 0) + self.s_grid.addWidget(self.spacing_rows, 0, 1) + + # Spacing Columns + self.spacing_columns = FCDoubleSpinner(callback=self.confirmation_message) + self.spacing_columns.set_range(0, 9999) + self.spacing_columns.set_precision(4) + + self.spacing_columns_label = FCLabel('%s:' % _("Spacing cols")) + self.spacing_columns_label.setToolTip( + _("Spacing between columns.\n" + "In current units.") + ) + self.s_grid.addWidget(self.spacing_columns_label, 2, 0) + self.s_grid.addWidget(self.spacing_columns, 2, 1) + + # ------------------------------------------------ + # ############## Offset Frame ################## + # ------------------------------------------------ + self.offset_frame = QtWidgets.QFrame() + self.offset_frame.setContentsMargins(0, 0, 0, 0) + self.dd_grid.addWidget(self.offset_frame, 8, 0, 1, 2) + + self.o_grid = GLay(v_spacing=5, h_spacing=3) + self.o_grid.setContentsMargins(0, 0, 0, 0) + self.offset_frame.setLayout(self.o_grid) + + # Offset X Value + self.offsetx_label = FCLabel('%s X:' % _("Offset")) + self.offsetx_label.setToolTip( + _("'Offset' - each row (and column) will be placed at a multiple of a value, from origin") + ) + + self.offsetx_entry = FCDoubleSpinner(policy=False) + self.offsetx_entry.set_precision(self.decimals) + self.offsetx_entry.set_range(0.0000, 10000.0000) + + self.o_grid.addWidget(self.offsetx_label, 0, 0) + self.o_grid.addWidget(self.offsetx_entry, 0, 1) + + # Offset Y Value + self.offsety_label = FCLabel('%s Y:' % _("Offset")) + self.offsety_label.setToolTip( + _("'Offset' - each row (and column) will be placed at a multiple of a value, from origin") + ) + + self.offsety_entry = FCDoubleSpinner(policy=False) + self.offsety_entry.set_precision(self.decimals) + self.offsety_entry.set_range(0.0000, 10000.0000) + + self.o_grid.addWidget(self.offsety_label, 2, 0) + self.o_grid.addWidget(self.offsety_entry, 2, 1) + # ############################################################################################################# # ############################ CIRCULAR Array ################################################################# # ############################################################################################################# @@ -339,7 +443,7 @@ class CopyEditorUI: self.layout.addWidget(self.add_button) GLay.set_common_column_size([ - grid0, self.array_grid, self.lin_grid, self.dd_grid, self.circ_grid + grid0, self.array_grid, self.lin_grid, self.dd_grid, self.circ_grid, self.s_grid, self.o_grid ], 0) self.layout.addStretch(1) @@ -348,6 +452,24 @@ class CopyEditorUI: self.mode_radio.activated_custom.connect(self.on_copy_mode) self.array_type_radio.activated_custom.connect(self.on_array_type_radio) self.axis_radio.activated_custom.connect(self.on_linear_angle_radio) + self.placement_radio.activated_custom.connect(self.on_placement_radio) + + def confirmation_message(self, accepted, minval, maxval): + if accepted is False: + self.app.inform[str, bool].emit('[WARNING_NOTCL] %s: [%.*f, %.*f]' % (_("Edited value is out of range"), + self.decimals, + minval, + self.decimals, + maxval), False) + else: + self.app.inform[str, bool].emit('[success] %s' % _("Edited value is within limits."), False) + + def confirmation_message_int(self, accepted, minval, maxval): + if accepted is False: + self.app.inform[str, bool].emit('[WARNING_NOTCL] %s: [%d, %d]' % + (_("Edited value is out of range"), minval, maxval), False) + else: + self.app.inform[str, bool].emit('[success] %s' % _("Edited value is within limits."), False) def on_copy_mode(self, val): if val == 'n': @@ -357,21 +479,58 @@ class CopyEditorUI: self.array_frame.show() def on_array_type_radio(self, val): - if val == 'linear': - self.array_circular_frame.hide() - self.array_linear_frame.show() - self.two_dim_array_frame.hide() - self.app.inform.emit(_("Click to place ...")) - elif val == '2D': + if val == '2D': self.array_circular_frame.hide() self.array_linear_frame.hide() self.two_dim_array_frame.show() + if self.placement_radio.get_value() == 's': + self.spacing_frame.show() + self.offset_frame.hide() + else: + self.spacing_frame.hide() + self.offset_frame.show() + + self.array_size_entry.setDisabled(True) + self.on_rows_cols_value_changed() + + self.rows.valueChanged.connect(self.on_rows_cols_value_changed) + self.columns.valueChanged.connect(self.on_rows_cols_value_changed) + self.app.inform.emit(_("Click to place ...")) else: - self.array_circular_frame.show() - self.array_linear_frame.hide() - self.two_dim_array_frame.hide() - self.app.inform.emit(_("Click on the circular array Center position")) + if val == 'linear': + self.array_circular_frame.hide() + self.array_linear_frame.show() + self.two_dim_array_frame.hide() + self.spacing_frame.hide() + self.offset_frame.hide() + + self.app.inform.emit(_("Click to place ...")) + else: # 'circular' + self.array_circular_frame.show() + self.array_linear_frame.hide() + self.two_dim_array_frame.hide() + self.spacing_frame.hide() + self.offset_frame.hide() + + self.app.inform.emit(_("Click on the circular array Center position")) + + self.array_size_entry.setDisabled(False) + try: + self.rows.valueChanged.disconnect() + except (TypeError, AttributeError): + pass + + try: + self.columns.valueChanged.disconnect() + except (TypeError, AttributeError): + pass + + def on_rows_cols_value_changed(self): + new_size = self.rows.get_value() * self.columns.get_value() + if new_size == 0: + new_size = 1 + self.array_size_entry.set_value(new_size) def on_linear_angle_radio(self, val): if val == 'A': @@ -380,3 +539,11 @@ class CopyEditorUI: else: self.linear_angle_spinner.hide() self.linear_angle_label.hide() + + def on_placement_radio(self, val): + if val == 's': + self.spacing_frame.show() + self.offset_frame.hide() + else: + self.spacing_frame.hide() + self.offset_frame.show() diff --git a/appEditors/geo_plugins/GeoTransformationPlugin.py b/appEditors/geo_plugins/GeoTransformationPlugin.py index bebadce3..7a609183 100644 --- a/appEditors/geo_plugins/GeoTransformationPlugin.py +++ b/appEditors/geo_plugins/GeoTransformationPlugin.py @@ -588,7 +588,7 @@ class TransformEditorTool(AppTool): maxy = max(maxy, maxy_) return minx, miny, maxx, maxy except TypeError: - # it's an object, return it's bounds + # it's an object, return its bounds return lst.bounds() return bounds_rec(shapelist) diff --git a/appGUI/MainGUI.py b/appGUI/MainGUI.py index dc39ae36..1bd9d30a 100644 --- a/appGUI/MainGUI.py +++ b/appGUI/MainGUI.py @@ -3505,10 +3505,14 @@ class MainGUI(QtWidgets.QMainWindow): self.app.geo_editor.active_tool.rect_tool.length != 0.0 and \ self.app.geo_editor.active_tool.rect_tool.width != 0.0: pass - elif self.app.geo_editor.active_tool.name in ['move', 'copy'] and \ + elif self.app.geo_editor.active_tool.name == 'move' and \ self.app.geo_editor.active_tool.move_tool.length != 0.0 and \ self.app.geo_editor.active_tool.move_tool.width != 0.0: pass + elif self.app.geo_editor.active_tool.name == 'copy' and \ + self.app.geo_editor.active_tool.copy_tool.length != 0.0 and \ + self.app.geo_editor.active_tool.copy_tool.width != 0.0: + pass else: self.app.geo_editor.active_tool.click( self.app.geo_editor.snap(self.app.geo_editor.x, self.app.geo_editor.y)) diff --git a/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py b/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py index 15c7f28e..125a3ba0 100644 --- a/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py @@ -46,7 +46,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI): self.spacing_columns_label = FCLabel('%s:' % _("Spacing cols")) self.spacing_columns_label.setToolTip( - _("Spacing between columns of the desired panel.\n" + _("Spacing between columns.\n" "In current units.") ) param_grid.addWidget(self.spacing_columns_label, 0, 0) @@ -60,7 +60,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI): self.spacing_rows_label = FCLabel('%s:' % _("Spacing rows")) self.spacing_rows_label.setToolTip( - _("Spacing between rows of the desired panel.\n" + _("Spacing between rows.\n" "In current units.") ) param_grid.addWidget(self.spacing_rows_label, 2, 0) @@ -73,7 +73,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI): self.columns_label = FCLabel('%s:' % _("Columns")) self.columns_label.setToolTip( - _("Number of columns of the desired panel") + _("Number of columns") ) param_grid.addWidget(self.columns_label, 4, 0) param_grid.addWidget(self.pcolumns, 4, 1) @@ -85,7 +85,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI): self.rows_label = FCLabel('%s:' % _("Rows")) self.rows_label.setToolTip( - _("Number of rows of the desired panel") + _("Number of rows") ) param_grid.addWidget(self.rows_label, 6, 0) param_grid.addWidget(self.prows, 6, 1) diff --git a/appPlugins/ToolPanelize.py b/appPlugins/ToolPanelize.py index d83aa42f..6936cf4d 100644 --- a/appPlugins/ToolPanelize.py +++ b/appPlugins/ToolPanelize.py @@ -1287,7 +1287,7 @@ class PanelizeUI: self.spacing_columns_label = FCLabel('%s:' % _("Spacing cols")) self.spacing_columns_label.setToolTip( - _("Spacing between columns of the desired panel.\n" + _("Spacing between columns.\n" "In current units.") ) grid2.addWidget(self.spacing_columns_label, 0, 0) @@ -1300,7 +1300,7 @@ class PanelizeUI: self.spacing_rows_label = FCLabel('%s:' % _("Spacing rows")) self.spacing_rows_label.setToolTip( - _("Spacing between rows of the desired panel.\n" + _("Spacing between rows.\n" "In current units.") ) grid2.addWidget(self.spacing_rows_label, 2, 0) @@ -1312,7 +1312,7 @@ class PanelizeUI: self.columns_label = FCLabel('%s:' % _("Columns")) self.columns_label.setToolTip( - _("Number of columns of the desired panel") + _("Number of columns") ) grid2.addWidget(self.columns_label, 4, 0) grid2.addWidget(self.columns, 4, 1) @@ -1323,7 +1323,7 @@ class PanelizeUI: self.rows_label = FCLabel('%s:' % _("Rows")) self.rows_label.setToolTip( - _("Number of rows of the desired panel") + _("Number of rows") ) grid2.addWidget(self.rows_label, 6, 0) grid2.addWidget(self.rows, 6, 1) From 04357843fe088064b66d2f70c6abeb11f5a0bd55 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Apr 2022 02:28:24 +0300 Subject: [PATCH 2/6] - updated the FCLabel widget --- CHANGELOG.md | 1 + appGUI/GUIElements.py | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c9d283e..8e066acf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ CHANGELOG for FlatCAM Evo beta 18.04.2022 - in Geometry Editor, in Copy Tool added the 2D copy-as-array feature therefore finishing this editor plugin upgrade +- updated the FCLabel widget 17.04.2022 diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index 1ef72cc8..2a1ae714 100644 --- a/appGUI/GUIElements.py +++ b/appGUI/GUIElements.py @@ -2970,9 +2970,36 @@ class FCLabel(QtWidgets.QLabel): right_clicked = QtCore.pyqtSignal(bool) middle_clicked = QtCore.pyqtSignal(bool) - def __init__(self, parent=None): + def __init__(self, title, color=None, color_callback=None, bold=None, parent=None): + """ + + :param title: the label's text + :type title: str + :param color: text color + :type color: str + :param color_callback: function to alter the color + :type color_callback: function + :param bold: the text weight + :type bold: bool + :param parent: parent of this widget + :type parent: QtWidgets.QWidget | None + """ + super(FCLabel, self).__init__(parent) + if color and color_callback: + color = color_callback(color) + + if isinstance(title, str): + if color and not bold: + self.setText('%s' % (str(color), title)) + elif not color and bold: + self.setText('%s' % title) + elif color and bold: + self.setText('%s' % (str(color), title)) + else: + self.setText(title) + # for the usage of this label as a clickable label, to know that current state self.clicked_state = False self.middle_clicked_state = False @@ -5380,7 +5407,7 @@ class FlatCAMActivityView(QtWidgets.QWidget): self.movie_path = movie self.icon_path = icon - self.icon = FCLabel(self) + self.icon = FCLabel(parent=self) self.icon.setGeometry(0, 0, 16, 12) self.movie = QtGui.QMovie(self.movie_path) From d8a0be84a356085e9c9655da8f0008791d0412ba Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Apr 2022 03:41:04 +0300 Subject: [PATCH 3/6] - replaced all the FCLabel widgets that have color HTML with the new FCLabel widget that uses parameters for 'color' and weight --- CHANGELOG.md | 1 + appDatabase.py | 2 +- appGUI/GUIElements.py | 2 +- appGUI/ObjectUI.py | 28 +++++++++---------- appGUI/preferences/OptionUI.py | 2 +- .../cncjob/CNCJobAdvOptPrefGroupUI.py | 2 +- .../cncjob/CNCJobEditorPrefGroupUI.py | 2 +- .../cncjob/CNCJobGenPrefGroupUI.py | 8 +++--- .../cncjob/CNCJobOptPrefGroupUI.py | 2 +- appGUI/preferences/cncjob/CNCJobPPGroupUI.py | 2 +- .../excellon/ExcellonAdvOptPrefGroupUI.py | 2 +- .../excellon/ExcellonEditorPrefGroupUI.py | 12 ++++---- .../excellon/ExcellonExpPrefGroupUI.py | 2 +- .../excellon/ExcellonGenPrefGroupUI.py | 10 +++---- .../excellon/ExcellonOptPrefGroupUI.py | 2 +- .../general/GeneralAPPSetGroupUI.py | 10 +++---- .../general/GeneralAppPrefGroupUI.py | 14 +++++----- .../general/GeneralGUIPrefGroupUI.py | 4 +-- .../geometry/GeometryAdvOptPrefGroupUI.py | 2 +- .../geometry/GeometryEditorPrefGroupUI.py | 2 +- .../geometry/GeometryExpPrefGroupUI.py | 2 +- .../geometry/GeometryGenPrefGroupUI.py | 8 +++--- .../geometry/GeometryOptPrefGroupUI.py | 2 +- .../gerber/GerberEditorPrefGroupUI.py | 12 ++++---- .../gerber/GerberGenPrefGroupUI.py | 10 +++---- .../gerber/GerberOptPrefGroupUI.py | 4 +-- .../tools/Tools2CThievingPrefGroupUI.py | 6 ++-- .../preferences/tools/Tools2CalPrefGroupUI.py | 4 +-- .../tools/Tools2ExtractPrefGroupUI.py | 14 +++++----- .../tools/Tools2FiducialsPrefGroupUI.py | 4 +-- .../tools/Tools2InvertPrefGroupUI.py | 4 +-- .../tools/Tools2OptimalPrefGroupUI.py | 2 +- .../tools/Tools2PunchGerberPrefGroupUI.py | 10 +++---- .../tools/Tools2QRCodePrefGroupUI.py | 2 +- .../tools/Tools2RulesCheckPrefGroupUI.py | 8 +++--- .../tools/Tools2sidedPrefGroupUI.py | 4 +-- .../tools/ToolsCalculatorsPrefGroupUI.py | 4 +-- .../tools/ToolsCutoutPrefGroupUI.py | 6 ++-- .../tools/ToolsDrillPrefGroupUI.py | 8 +++--- .../preferences/tools/ToolsFilmPrefGroupUI.py | 4 +-- .../preferences/tools/ToolsISOPrefGroupUI.py | 6 ++-- .../tools/ToolsLevelPrefGroupUI.py | 2 +- .../tools/ToolsMarkersPrefGroupUI.py | 4 +-- .../preferences/tools/ToolsMillPrefGroupUI.py | 10 +++---- .../preferences/tools/ToolsNCCPrefGroupUI.py | 6 ++-- .../tools/ToolsPaintPrefGroupUI.py | 6 ++-- .../tools/ToolsPanelizePrefGroupUI.py | 2 +- .../tools/ToolsSolderpastePrefGroupUI.py | 2 +- .../preferences/tools/ToolsSubPrefGroupUI.py | 2 +- .../tools/ToolsTransformPrefGroupUI.py | 12 ++++---- appMain.py | 3 +- appPlugins/ToolAlignObjects.py | 6 ++-- appPlugins/ToolCalculators.py | 12 ++++---- appPlugins/ToolCopperThieving.py | 13 ++++----- appPlugins/ToolCutOut.py | 10 +++---- appPlugins/ToolDblSided.py | 8 +++--- appPlugins/ToolDistance.py | 6 ++-- appPlugins/ToolDrilling.py | 6 ++-- appPlugins/ToolEtchCompensation.py | 6 ++-- appPlugins/ToolExtract.py | 10 +++---- appPlugins/ToolFiducials.py | 8 +++--- appPlugins/ToolFilm.py | 8 +++--- appPlugins/ToolFollow.py | 4 +-- appPlugins/ToolInvertGerber.py | 4 +-- appPlugins/ToolIsolation.py | 6 ++-- appPlugins/ToolLevelling.py | 6 ++-- appPlugins/ToolMarkers.py | 16 +++++------ appPlugins/ToolMilling.py | 6 ++-- appPlugins/ToolNCC.py | 6 ++-- appPlugins/ToolObjectDistance.py | 6 ++-- appPlugins/ToolOptimal.py | 8 +++--- appPlugins/ToolPaint.py | 6 ++-- appPlugins/ToolPanelize.py | 8 +++--- appPlugins/ToolPunchGerber.py | 8 +++--- appPlugins/ToolQRCode.py | 8 +++--- appPlugins/ToolRulesCheck.py | 18 ++++++------ appPlugins/ToolSolderPaste.py | 20 ++++++------- appPlugins/ToolSub.py | 6 ++-- appPlugins/ToolTransform.py | 14 +++++----- 79 files changed, 263 insertions(+), 264 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e066acf..296ac05e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM Evo beta - in Geometry Editor, in Copy Tool added the 2D copy-as-array feature therefore finishing this editor plugin upgrade - updated the FCLabel widget +- replaced all the FCLabel widgets that have color HTML with the new FCLabel widget that uses parameters for 'color' and weight 17.04.2022 diff --git a/appDatabase.py b/appDatabase.py index f2fddc2e..8f21063a 100644 --- a/appDatabase.py +++ b/appDatabase.py @@ -200,7 +200,7 @@ class ToolsDB2UI: self.description_vlay.addStretch() # Tool Name - self.name_label = FCLabel('%s:' % _('Name')) + self.name_label = FCLabel(_("Name"), color='red', bold=True) self.name_label.setToolTip( _("Tool name.\n" "This is not used in the app, it's function\n" diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index 2a1ae714..ebd129cd 100644 --- a/appGUI/GUIElements.py +++ b/appGUI/GUIElements.py @@ -2970,7 +2970,7 @@ class FCLabel(QtWidgets.QLabel): right_clicked = QtCore.pyqtSignal(bool) middle_clicked = QtCore.pyqtSignal(bool) - def __init__(self, title, color=None, color_callback=None, bold=None, parent=None): + def __init__(self, title=None, color=None, color_callback=None, bold=None, parent=None): """ :param title: the label's text diff --git a/appGUI/ObjectUI.py b/appGUI/ObjectUI.py index 3f162c48..143cac9c 100644 --- a/appGUI/ObjectUI.py +++ b/appGUI/ObjectUI.py @@ -89,7 +89,7 @@ class ObjectUI(QtWidgets.QWidget): # ############################################################################################################# # Transformations Frame # ############################################################################################################# - self.transform_label = FCLabel('%s' % _('Transformations')) + self.transform_label = FCLabel(_("Transformations"), color='blue', bold=True) self.transform_label.setToolTip( _("Geometrical transformations of the current object.") ) @@ -182,7 +182,7 @@ class GerberObjectUI(ObjectUI): ObjectUI.__init__(self, title=_('Gerber Object'), parent=parent, app=self.app) - self.general_label = FCLabel('%s' % _("General Information")) + self.general_label = FCLabel(_("General Information"), color='darkorange', bold=True) self.general_label.setToolTip(_("General data about the object.")) self.custom_box.addWidget(self.general_label) @@ -284,7 +284,7 @@ class GerberObjectUI(ObjectUI): # ############################################################################################################# # Gerber Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel(_("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip(_("Tools/apertures in the loaded object.")) self.custom_box.addWidget(self.tools_table_label) @@ -371,7 +371,7 @@ class GerberObjectUI(ObjectUI): # ############################################################################################################# # PLUGINS Frame # ############################################################################################################# - self.tool_lbl = FCLabel('%s' % _("Plugins")) + self.tool_lbl = FCLabel(_("Plugins"), color='indigo', bold=True) self.custom_box.addWidget(self.tool_lbl) plugins_frame = FCFrame() @@ -601,7 +601,7 @@ class ExcellonObjectUI(ObjectUI): parent=parent, app=self.app) - self.general_label = FCLabel('%s' % _("General Information")) + self.general_label = FCLabel(_("General Information"), color='darkorange', bold=True) self.general_label.setToolTip(_("General data about the object.")) self.custom_box.addWidget(self.general_label) @@ -691,7 +691,7 @@ class ExcellonObjectUI(ObjectUI): # ############################################################################################################# # Excellon Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s: ' % _('Tools Table')) + self.tools_table_label = FCLabel('%s: ' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip(_("Tools/apertures in the loaded object.")) self.custom_box.addWidget(self.tools_table_label) @@ -777,7 +777,7 @@ class ExcellonObjectUI(ObjectUI): # ############################################################################################################# # Plugins Frame # ############################################################################################################# - self.tool_lbl = FCLabel('%s' % _("Plugins")) + self.tool_lbl = FCLabel('%s' % _("Plugins"), color='indigo', bold=True) self.custom_box.addWidget(self.tool_lbl) plugins_frame = FCFrame() @@ -938,7 +938,7 @@ class GeometryObjectUI(ObjectUI): icon_file=self.resource_loc + '/geometry32.png', parent=parent, app=self.app ) - self.general_label = FCLabel('%s' % _("General Information")) + self.general_label = FCLabel('%s' % _("General Information"), color='darkorange', bold=True) self.general_label.setToolTip(_("General data about the object.")) self.custom_box.addWidget(self.general_label) @@ -1021,7 +1021,7 @@ class GeometryObjectUI(ObjectUI): # ############################################################################################################# # Gerber Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip(_("Tools/apertures in the loaded object.")) self.custom_box.addWidget(self.tools_table_label) @@ -1103,7 +1103,7 @@ class GeometryObjectUI(ObjectUI): # ############################################################################################################# # PLUGINS Frame # ############################################################################################################# - self.tools_label = FCLabel('%s' % _('Plugins')) + self.tools_label = FCLabel('%s' % _("Plugins"), color='indigo', bold=True) self.custom_box.addWidget(self.tools_label) plugins_frame = FCFrame() @@ -1280,7 +1280,7 @@ class CNCObjectUI(ObjectUI): # for i in range(0, self.common_grid.count()): # self.common_grid.itemAt(i).widget().hide() - self.general_label = FCLabel('%s' % _("General Information")) + self.general_label = FCLabel('%s' % _("General Information"), color='darkorange', bold=True) self.general_label.setToolTip(_("General data about the object.")) self.custom_box.addWidget(self.general_label) @@ -1369,7 +1369,7 @@ class CNCObjectUI(ObjectUI): # ############################################################################################################# # COMMON PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.custom_box.addWidget(self.param_label) self.gp_frame = FCFrame() @@ -1441,7 +1441,7 @@ class CNCObjectUI(ObjectUI): # ############################################################################################################# # CNC Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip(_("Tools/apertures in the loaded object.")) self.custom_box.addWidget(self.tools_table_label) @@ -1517,7 +1517,7 @@ class CNCObjectUI(ObjectUI): # ############################################################################################################# # ###################### PLUGINS ########################################################################## # ############################################################################################################# - self.tool_lbl = FCLabel('%s' % _("Plugins")) + self.tool_lbl = FCLabel('%s' % _("Plugins"), color='indigo', bold=True) self.custom_box.addWidget(self.tool_lbl) # Levelling Tool - will process the generated GCode using a Height Map generating levelled GCode diff --git a/appGUI/preferences/OptionUI.py b/appGUI/preferences/OptionUI.py index fd645a14..be05ee55 100644 --- a/appGUI/preferences/OptionUI.py +++ b/appGUI/preferences/OptionUI.py @@ -275,7 +275,7 @@ class HeadingOptionUI(OptionUI): self.color = color if color else "" def build_heading_widget(self): - heading = FCLabel('%s' % (str(self.color), _(self.label_text))) + heading = FCLabel('%s' % _(self.label_text), color=str(self.color), bold=True) heading.setToolTip(_(self.label_tooltip)) return heading diff --git a/appGUI/preferences/cncjob/CNCJobAdvOptPrefGroupUI.py b/appGUI/preferences/cncjob/CNCJobAdvOptPrefGroupUI.py index 217ffbcd..5b7c675d 100644 --- a/appGUI/preferences/cncjob/CNCJobAdvOptPrefGroupUI.py +++ b/appGUI/preferences/cncjob/CNCJobAdvOptPrefGroupUI.py @@ -23,7 +23,7 @@ class CNCJobAdvOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.export_gcode_label = FCLabel('%s' % _("Parameters")) + self.export_gcode_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.export_gcode_label.setToolTip( _("Export and save G-Code to\n" "make this object to a file.") diff --git a/appGUI/preferences/cncjob/CNCJobEditorPrefGroupUI.py b/appGUI/preferences/cncjob/CNCJobEditorPrefGroupUI.py index 95a79cc7..648d8c02 100644 --- a/appGUI/preferences/cncjob/CNCJobEditorPrefGroupUI.py +++ b/appGUI/preferences/cncjob/CNCJobEditorPrefGroupUI.py @@ -25,7 +25,7 @@ class CNCJobEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("A list of Editor parameters.") ) diff --git a/appGUI/preferences/cncjob/CNCJobGenPrefGroupUI.py b/appGUI/preferences/cncjob/CNCJobGenPrefGroupUI.py index 57ddd6fb..0ce6c68b 100644 --- a/appGUI/preferences/cncjob/CNCJobGenPrefGroupUI.py +++ b/appGUI/preferences/cncjob/CNCJobGenPrefGroupUI.py @@ -24,7 +24,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Plot Frame # ############################################################################################################# - self.plot_options_label = FCLabel('%s' % _("Plot Options")) + self.plot_options_label = FCLabel('%s' % _("Plot Options"), color='blue', bold=True) self.layout.addWidget(self.plot_options_label) plot_frame = FCFrame() @@ -71,7 +71,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Decimals Frame # ############################################################################################################# - self.layout.addWidget(FCLabel('%s' % _("G-code Decimals"))) + self.layout.addWidget(FCLabel('%s' % _("G-code Decimals"), color='teal', bold=True)) dec_frame = FCFrame() self.layout.addWidget(dec_frame) @@ -141,7 +141,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Travel Frame # ############################################################################################################# - self.travel_color_label = FCLabel('%s' % _('Travel Line Color')) + self.travel_color_label = FCLabel('%s' % _("Travel Line Color"), color='green', bold=True) self.layout.addWidget(self.travel_color_label) travel_frame = FCFrame() @@ -190,7 +190,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Object Color Frame # ############################################################################################################# - self.cnc_color_label = FCLabel('%s' % _('Object Color')) + self.cnc_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True) self.layout.addWidget(self.cnc_color_label) obj_frame = FCFrame() diff --git a/appGUI/preferences/cncjob/CNCJobOptPrefGroupUI.py b/appGUI/preferences/cncjob/CNCJobOptPrefGroupUI.py index e3a222e1..ae52d885 100644 --- a/appGUI/preferences/cncjob/CNCJobOptPrefGroupUI.py +++ b/appGUI/preferences/cncjob/CNCJobOptPrefGroupUI.py @@ -25,7 +25,7 @@ class CNCJobOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # GCode Frame # ############################################################################################################# - self.export_gcode_label = FCLabel('%s' % _("Export G-Code")) + self.export_gcode_label = FCLabel('%s' % _("Export G-Code"), color='brown', bold=True) self.export_gcode_label.setToolTip( _("Export and save G-Code to\n" "make this object to a file.") diff --git a/appGUI/preferences/cncjob/CNCJobPPGroupUI.py b/appGUI/preferences/cncjob/CNCJobPPGroupUI.py index 9ddc875e..dfa1858d 100644 --- a/appGUI/preferences/cncjob/CNCJobPPGroupUI.py +++ b/appGUI/preferences/cncjob/CNCJobPPGroupUI.py @@ -22,7 +22,7 @@ class CNCJobPPGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.comp_gcode_label = FCLabel('%s' % _("Compensation")) + self.comp_gcode_label = FCLabel('%s' % _("Compensation"), color='blue', bold=True) self.comp_gcode_label.setToolTip( _("Compensate CNC bed issues.") ) diff --git a/appGUI/preferences/excellon/ExcellonAdvOptPrefGroupUI.py b/appGUI/preferences/excellon/ExcellonAdvOptPrefGroupUI.py index 135e94aa..81710146 100644 --- a/appGUI/preferences/excellon/ExcellonAdvOptPrefGroupUI.py +++ b/appGUI/preferences/excellon/ExcellonAdvOptPrefGroupUI.py @@ -24,7 +24,7 @@ class ExcellonAdvOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.exc_label = FCLabel('%s' % _('Advanced Options')) + self.exc_label = FCLabel('%s' % _("Advanced Options"), color='indigo', bold=True) self.exc_label.setToolTip( _("A list of advanced parameters.\n" "Those parameters are available only for\n" diff --git a/appGUI/preferences/excellon/ExcellonEditorPrefGroupUI.py b/appGUI/preferences/excellon/ExcellonEditorPrefGroupUI.py index c0ab3814..b324ca02 100644 --- a/appGUI/preferences/excellon/ExcellonEditorPrefGroupUI.py +++ b/appGUI/preferences/excellon/ExcellonEditorPrefGroupUI.py @@ -23,7 +23,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("A list of Excellon Editor parameters.") ) @@ -79,7 +79,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Linear Array Frame # ############################################################################################################# - self.drill_array_linear_label = FCLabel('%s' % _('Linear Drill Array')) + self.drill_array_linear_label = FCLabel('%s' % _("Linear Drill Array"), color='brown', bold=True) self.layout.addWidget(self.drill_array_linear_label) lin_frame = FCFrame() @@ -134,7 +134,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Circular Array Frame # ############################################################################################################# - self.drill_array_circ_label = FCLabel('%s' % _('Circular Drill Array')) + self.drill_array_circ_label = FCLabel('%s' % _("Circular Drill Array"), color='green', bold=True) self.layout.addWidget(self.drill_array_circ_label) circ_frame = FCFrame() @@ -173,7 +173,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Slots Frame # ############################################################################################################# - self.drill_array_circ_label = FCLabel('%s' % _('Slots')) + self.drill_array_circ_label = FCLabel('%s' % _("Slots"), color='darkorange', bold=True) self.layout.addWidget(self.drill_array_circ_label) slots_frame = FCFrame() @@ -236,7 +236,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Slots Array Frame # ############################################################################################################# - self.slot_array_linear_label = FCLabel('%s' % _('Linear Slot Array')) + self.slot_array_linear_label = FCLabel('%s' % _("Linear Slot Array"), color='magenta', bold=True) self.layout.addWidget(self.slot_array_linear_label) slot_array_frame = FCFrame() @@ -306,7 +306,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Circular Slot Array Frame # ############################################################################################################# - self.slot_array_circ_label = FCLabel('%s' % _('Circular Slot Array')) + self.slot_array_circ_label = FCLabel('%s' % _("Circular Slot Array"), color='blue', bold=True) self.layout.addWidget(self.slot_array_circ_label) circ_slot_frame = FCFrame() diff --git a/appGUI/preferences/excellon/ExcellonExpPrefGroupUI.py b/appGUI/preferences/excellon/ExcellonExpPrefGroupUI.py index 8ff30202..7a1b7423 100644 --- a/appGUI/preferences/excellon/ExcellonExpPrefGroupUI.py +++ b/appGUI/preferences/excellon/ExcellonExpPrefGroupUI.py @@ -23,7 +23,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Export Frame # ############################################################################################################# - self.export_options_label = FCLabel('%s' % _("Export Options")) + self.export_options_label = FCLabel('%s' % _("Export Options"), color='brown', bold=True) self.export_options_label.setToolTip( _("The parameters set here are used in the file exported\n" "when using the File -> Export -> Export Excellon menu entry.") diff --git a/appGUI/preferences/excellon/ExcellonGenPrefGroupUI.py b/appGUI/preferences/excellon/ExcellonGenPrefGroupUI.py index ff0276ed..019e10ad 100644 --- a/appGUI/preferences/excellon/ExcellonGenPrefGroupUI.py +++ b/appGUI/preferences/excellon/ExcellonGenPrefGroupUI.py @@ -27,7 +27,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Plot Frame # ############################################################################################################# - self.plot_options_label = FCLabel('%s' % _("Plot Options")) + self.plot_options_label = FCLabel('%s' % _("Plot Options"), color='blue', bold=True) self.layout.addWidget(self.plot_options_label) plot_frame = FCFrame() @@ -77,7 +77,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Excellon Format Frame # ############################################################################################################# - self.excellon_format_label = FCLabel('%s' % _("Excellon Format")) + self.excellon_format_label = FCLabel('%s' % _("Excellon Format"), color='green', bold=True) self.excellon_format_label.setToolTip( _("The NC drill files, usually named Excellon files\n" "are files that can be found in different formats.\n" @@ -220,7 +220,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Optimization Frame # ############################################################################################################# - self.excellon_general_label = FCLabel('%s' % _("Path Optimization")) + self.excellon_general_label = FCLabel('%s' % _("Path Optimization"), color='teal', bold=True) self.layout.addWidget(self.excellon_general_label) opt_frame = FCFrame() @@ -272,7 +272,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI): # Fusing Frame # ############################################################################################################# # Fuse Tools - self.join_geo_label = FCLabel('%s' % _('Join Option')) + self.join_geo_label = FCLabel('%s' % _("Join Option"), color='magenta', bold=True) self.layout.addWidget(self.join_geo_label) fuse_frame = FCFrame() @@ -291,7 +291,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Object Color Frame # ############################################################################################################# - self.gerber_color_label = FCLabel('%s' % _('Object Color')) + self.gerber_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True) self.layout.addWidget(self.gerber_color_label) obj_frame = FCFrame() diff --git a/appGUI/preferences/excellon/ExcellonOptPrefGroupUI.py b/appGUI/preferences/excellon/ExcellonOptPrefGroupUI.py index 83310e31..3c0f5fdb 100644 --- a/appGUI/preferences/excellon/ExcellonOptPrefGroupUI.py +++ b/appGUI/preferences/excellon/ExcellonOptPrefGroupUI.py @@ -24,7 +24,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.cncjob_label = FCLabel('%s' % _('Parameters')) + self.cncjob_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.cncjob_label.setToolTip( _("Parameters used to create a CNC Job object\n" "for this drill object.") diff --git a/appGUI/preferences/general/GeneralAPPSetGroupUI.py b/appGUI/preferences/general/GeneralAPPSetGroupUI.py index 17e6274a..a307011e 100644 --- a/appGUI/preferences/general/GeneralAPPSetGroupUI.py +++ b/appGUI/preferences/general/GeneralAPPSetGroupUI.py @@ -37,7 +37,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI): # Grid Settings Frame # ############################################################################################################# # GRID Settings - self.grid_label = FCLabel('%s' % _('Grid Settings')) + self.grid_label = FCLabel('%s' % _("Grid Settings"), color='magenta', bold=True) self.layout.addWidget(self.grid_label) grids_frame = FCFrame() @@ -90,7 +90,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI): # Workspace Frame # ############################################################################################################# # Workspace - self.workspace_label = FCLabel('%s' % _('Workspace Settings')) + self.workspace_label = FCLabel('%s' % _("Workspace Settings"), color='brown', bold=True) self.layout.addWidget(self.workspace_label) wk_frame = FCFrame() @@ -191,7 +191,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI): # Font Frame # ############################################################################################################# # Font Size - self.font_size_label = FCLabel('%s' % _('Font Size')) + self.font_size_label = FCLabel('%s' % _("Font Size"), color='green', bold=True) self.layout.addWidget(self.font_size_label) fnt_frame = FCFrame() @@ -283,7 +283,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI): # Axis Frame # ############################################################################################################# # Axis Size - self.axis_label = FCLabel('%s' % _('Axis')) + self.axis_label = FCLabel('%s' % _("Axis"), color='brown', bold=True) self.layout.addWidget(self.axis_label) ax_frame = FCFrame() @@ -305,7 +305,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI): # ############################################################################################################# # Mouse Frame # ############################################################################################################# - self.mouse_lbl = FCLabel('%s' % _('Mouse Settings')) + self.mouse_lbl = FCLabel('%s' % _("Mouse Settings"), color='darkorange', bold=True) self.layout.addWidget(self.mouse_lbl) m_frame = FCFrame() diff --git a/appGUI/preferences/general/GeneralAppPrefGroupUI.py b/appGUI/preferences/general/GeneralAppPrefGroupUI.py index 5ff68cbd..ef32a068 100644 --- a/appGUI/preferences/general/GeneralAppPrefGroupUI.py +++ b/appGUI/preferences/general/GeneralAppPrefGroupUI.py @@ -28,7 +28,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Grid0 Frame # ############################################################################################################# - self.unitslabel = FCLabel('%s' % _('Units')) + self.unitslabel = FCLabel('%s' % _("Units"), color='red', bold=True) self.unitslabel.setToolTip(_("The default value for the application units.\n" "Whatever is selected here is set every time\n" "the application is started.")) @@ -76,7 +76,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): grid0.addWidget(self.precision_inch_label, 4, 0) grid0.addWidget(self.precision_inch_entry, 4, 1) - self.par_label = FCLabel('%s' % _("Parameters")) + self.par_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.layout.addWidget(self.par_label) # ############################################################################################################# @@ -166,7 +166,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Grid0 Frame # ############################################################################################################# - self.app_level_label = FCLabel('%s' % _('Application Level')) + self.app_level_label = FCLabel('%s' % _("Application Level"), color='red', bold=True) self.app_level_label.setToolTip(_("Choose the default level of usage for FlatCAM.\n" "BASIC level -> reduced functionality, best for beginner's.\n" "ADVANCED level -> full functionality.\n\n" @@ -189,7 +189,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): # Grid3 Frame # ############################################################################################################# # Languages for FlatCAM - self.languagelabel = FCLabel('%s' % _('Languages')) + self.languagelabel = FCLabel('%s' % _("Languages"), color='DarkCyan', bold=True) self.languagelabel.setToolTip(_("Set the language used throughout FlatCAM.")) self.layout.addWidget(self.languagelabel) @@ -213,7 +213,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): # ----------- APPLICATION STARTUP SETTINGS ------------------ # ----------------------------------------------------------- - self.startup_label = FCLabel('%s' % _('Startup Settings')) + self.startup_label = FCLabel('%s' % _("Startup Settings"), color='green', bold=True) self.layout.addWidget(self.startup_label) # ############################################################################################################# @@ -284,7 +284,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): self.ois_version_check = OptionalInputSection(self.version_check_cb, [self.send_stats_cb]) # Save Settings - self.save_label = FCLabel('%s' % _("Save Settings")) + self.save_label = FCLabel('%s' % _("Save Settings"), color='purple', bold=True) self.layout.addWidget(self.save_label) # ############################################################################################################# @@ -346,7 +346,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI): # self.as_ois = OptionalInputSection(self.autosave_cb, [self.autosave_label, self.autosave_entry], True) - self.pdf_param_label = FCLabel('%s' % _("Text to PDF parameters")) + self.pdf_param_label = FCLabel('%s' % _("Text to PDF parameters"), color='orange', bold=True) self.pdf_param_label.setToolTip( _("Used when saving text in Code Editor or in FlatCAM Document objects.") ) diff --git a/appGUI/preferences/general/GeneralGUIPrefGroupUI.py b/appGUI/preferences/general/GeneralGUIPrefGroupUI.py index 7278ac01..9d1ba15a 100644 --- a/appGUI/preferences/general/GeneralGUIPrefGroupUI.py +++ b/appGUI/preferences/general/GeneralGUIPrefGroupUI.py @@ -22,7 +22,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI): self.decimals = app.decimals self.options = app.options - self.param_lbl = FCLabel('%s' % _("Parameters")) + self.param_lbl = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.layout.addWidget(self.param_lbl) # ############################################################################################################# @@ -146,7 +146,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Grid1 Frame # ############################################################################################################# - self.color_lbl = FCLabel('%s' % _("Colors")) + self.color_lbl = FCLabel('%s' % _("Colors"), color='teal', bold=True) self.layout.addWidget(self.color_lbl) color_frame = FCFrame() diff --git a/appGUI/preferences/geometry/GeometryAdvOptPrefGroupUI.py b/appGUI/preferences/geometry/GeometryAdvOptPrefGroupUI.py index e5f8809b..509d5e43 100644 --- a/appGUI/preferences/geometry/GeometryAdvOptPrefGroupUI.py +++ b/appGUI/preferences/geometry/GeometryAdvOptPrefGroupUI.py @@ -24,7 +24,7 @@ class GeometryAdvOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Advanced Options Frame # ############################################################################################################# - self.geo_label = FCLabel('%s' % _('Advanced Options')) + self.geo_label = FCLabel('%s' % _("Advanced Options"), color='indigo', bold=True) self.geo_label.setToolTip( _("A list of advanced parameters.\n" "Those parameters are available only for\n" diff --git a/appGUI/preferences/geometry/GeometryEditorPrefGroupUI.py b/appGUI/preferences/geometry/GeometryEditorPrefGroupUI.py index 304712a8..4a6e8faa 100644 --- a/appGUI/preferences/geometry/GeometryEditorPrefGroupUI.py +++ b/appGUI/preferences/geometry/GeometryEditorPrefGroupUI.py @@ -24,7 +24,7 @@ class GeometryEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("A list of Editor parameters.") ) diff --git a/appGUI/preferences/geometry/GeometryExpPrefGroupUI.py b/appGUI/preferences/geometry/GeometryExpPrefGroupUI.py index e3899c6a..f14d8ab1 100644 --- a/appGUI/preferences/geometry/GeometryExpPrefGroupUI.py +++ b/appGUI/preferences/geometry/GeometryExpPrefGroupUI.py @@ -23,7 +23,7 @@ class GeometryExpPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Export Frame # ############################################################################################################# - self.export_options_label = FCLabel('%s' % _("Export Options")) + self.export_options_label = FCLabel('%s' % _("Export Options"), color='brown', bold=True) self.export_options_label.setToolTip( _("The parameters set here are used in the file exported\n" "when using the File -> Export -> Export DXF menu entry.") diff --git a/appGUI/preferences/geometry/GeometryGenPrefGroupUI.py b/appGUI/preferences/geometry/GeometryGenPrefGroupUI.py index 6e41374b..b9f6a4ac 100644 --- a/appGUI/preferences/geometry/GeometryGenPrefGroupUI.py +++ b/appGUI/preferences/geometry/GeometryGenPrefGroupUI.py @@ -26,7 +26,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Plot Frame # ############################################################################################################# - self.plot_options_label = FCLabel('%s' % _("Plot Options")) + self.plot_options_label = FCLabel('%s' % _("Plot Options"), color='blue', bold=True) self.layout.addWidget(self.plot_options_label) plot_frame = FCFrame() @@ -69,7 +69,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Optimization Frame # ############################################################################################################# - self.opt_label = FCLabel('%s' % _("Path Optimization")) + self.opt_label = FCLabel('%s' % _("Path Optimization"), color='teal', bold=True) self.layout.addWidget(self.opt_label) opt_frame = FCFrame() @@ -119,7 +119,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Fuse Frame # ############################################################################################################# - self.join_geo_label = FCLabel('%s' % _('Join Option')) + self.join_geo_label = FCLabel('%s' % _("Join Option"), color='magenta', bold=True) self.layout.addWidget(self.join_geo_label) fuse_frame = FCFrame() @@ -138,7 +138,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Object Color Frame # ############################################################################################################# - self.gerber_color_label = FCLabel('%s' % _('Object Color')) + self.gerber_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True) self.layout.addWidget(self.gerber_color_label) obj_frame = FCFrame() diff --git a/appGUI/preferences/geometry/GeometryOptPrefGroupUI.py b/appGUI/preferences/geometry/GeometryOptPrefGroupUI.py index 0c35abae..151038b9 100644 --- a/appGUI/preferences/geometry/GeometryOptPrefGroupUI.py +++ b/appGUI/preferences/geometry/GeometryOptPrefGroupUI.py @@ -25,7 +25,7 @@ class GeometryOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.cncjob_label = FCLabel('%s' % _("Parameters")) + self.cncjob_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.layout.addWidget(self.cncjob_label) param_frame = FCFrame() diff --git a/appGUI/preferences/gerber/GerberEditorPrefGroupUI.py b/appGUI/preferences/gerber/GerberEditorPrefGroupUI.py index 2b098cf7..2c1cd70b 100644 --- a/appGUI/preferences/gerber/GerberEditorPrefGroupUI.py +++ b/appGUI/preferences/gerber/GerberEditorPrefGroupUI.py @@ -26,7 +26,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI): # Gerber Editor Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("A list of Gerber Editor parameters.") ) @@ -118,7 +118,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Linear Pad Array Frame # ############################################################################################################# - self.grb_array_linear_label = FCLabel('%s' % _('Linear Pad Array')) + self.grb_array_linear_label = FCLabel('%s' % _("Linear Pad Array"), color='brown', bold=True) self.layout.addWidget(self.grb_array_linear_label) lin_frame = FCFrame() @@ -172,7 +172,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Circular Pad Array Frame # ############################################################################################################# - self.grb_array_circ_label = FCLabel('%s' % _('Circular Pad Array')) + self.grb_array_circ_label = FCLabel('%s' % _("Circular Pad Array"), color='green', bold=True) self.layout.addWidget(self.grb_array_circ_label) circ_frame = FCFrame() @@ -212,7 +212,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Buffer Frame # ############################################################################################################# - self.grb_array_tools_b_label = FCLabel('%s' % _('Buffer Tool')) + self.grb_array_tools_b_label = FCLabel('%s' % _("Buffer Tool"), color='darkorange', bold=True) self.layout.addWidget(self.grb_array_tools_b_label) buff_frame = FCFrame() @@ -237,7 +237,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Scale Frame # ############################################################################################################# - self.grb_array_tools_s_label = FCLabel('%s' % _('Scale Tool')) + self.grb_array_tools_s_label = FCLabel('%s' % _("Scale Tool"), color='magenta', bold=True) self.layout.addWidget(self.grb_array_tools_s_label) scale_frame = FCFrame() @@ -262,7 +262,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Mark Area Frame # ############################################################################################################# - self.grb_array_tools_ma_label = FCLabel('%s' % _('Mark Area Tool')) + self.grb_array_tools_ma_label = FCLabel('%s' % _("Mark Area Tool"), color='blue', bold=True) self.layout.addWidget(self.grb_array_tools_ma_label) ma_frame = FCFrame() diff --git a/appGUI/preferences/gerber/GerberGenPrefGroupUI.py b/appGUI/preferences/gerber/GerberGenPrefGroupUI.py index 1f098fb7..f2eed361 100644 --- a/appGUI/preferences/gerber/GerberGenPrefGroupUI.py +++ b/appGUI/preferences/gerber/GerberGenPrefGroupUI.py @@ -25,7 +25,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI): self.options = app.options # ## Plot options - self.plot_options_label = FCLabel('%s' % _("Plot Options")) + self.plot_options_label = FCLabel('%s' % _("Plot Options"), color='blue', bold=True) self.layout.addWidget(self.plot_options_label) # ############################################################################################################# @@ -77,7 +77,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Default format for Gerber - self.gerber_default_label = FCLabel('%s' % _('Default Values')) + self.gerber_default_label = FCLabel('%s' % _("Default Values"), color='green', bold=True) self.gerber_default_label.setToolTip( _("Those values will be used as fallback values\n" "in case that they are not found in the Gerber file.") @@ -134,7 +134,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='indigo', bold=True) self.layout.addWidget(self.param_label) par_frame = FCFrame() @@ -173,7 +173,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI): # Layers Frame # ############################################################################################################# # Layers label - self.layers_label = FCLabel('%s' % _('Layers')) + self.layers_label = FCLabel('%s' % _("Layers"), color='magenta', bold=True) self.layout.addWidget(self.layers_label) layers_frame = FCFrame() @@ -220,7 +220,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI): # Object Frame # ############################################################################################################# # Gerber Object Color - self.gerber_color_label = FCLabel('%s' % _('Object Color')) + self.gerber_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True) self.layout.addWidget(self.gerber_color_label) obj_frame = FCFrame() diff --git a/appGUI/preferences/gerber/GerberOptPrefGroupUI.py b/appGUI/preferences/gerber/GerberOptPrefGroupUI.py index d20f8fd1..748b43bc 100644 --- a/appGUI/preferences/gerber/GerberOptPrefGroupUI.py +++ b/appGUI/preferences/gerber/GerberOptPrefGroupUI.py @@ -25,7 +25,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Non-copper Regions Frame # ############################################################################################################# - self.clearcopper_label = FCLabel('%s' % _("Non-copper regions")) + self.clearcopper_label = FCLabel('%s' % _("Non-copper regions"), color='blue', bold=True) self.clearcopper_label.setToolTip( _("Create polygons covering the\n" "areas without copper on the PCB.\n" @@ -68,7 +68,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Bounding Box Frame # ############################################################################################################# - self.boundingbox_label = FCLabel('%s' % _('Bounding Box')) + self.boundingbox_label = FCLabel('%s' % _("Bounding Box"), color='brown', bold=True) self.layout.addWidget(self.boundingbox_label) bb_frame = FCFrame() diff --git a/appGUI/preferences/tools/Tools2CThievingPrefGroupUI.py b/appGUI/preferences/tools/Tools2CThievingPrefGroupUI.py index 153feffe..4c85b0ea 100644 --- a/appGUI/preferences/tools/Tools2CThievingPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2CThievingPrefGroupUI.py @@ -25,7 +25,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("A tool to generate a Copper Thieving that can be added\n" "to a selected Gerber file.") @@ -259,7 +259,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Robber Bar Parameters Frame # ############################################################################################################# - self.robber_bar_label = FCLabel('%s' % _('Robber Bar Parameters')) + self.robber_bar_label = FCLabel('%s' % _("Robber Bar Parameters"), color='brown', bold=True) self.robber_bar_label.setToolTip( _("Parameters used for the robber bar.\n" "Robber bar = copper border to help in pattern hole plating.") @@ -302,7 +302,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # RPattern Plating Mask Parameters Frame # ############################################################################################################# - self.patern_mask_label = FCLabel('%s' % _('Pattern Plating Mask')) + self.patern_mask_label = FCLabel('%s' % _("Pattern Plating Mask"), color='purple', bold=True) self.patern_mask_label.setToolTip( _("Generate a mask for pattern plating.") ) diff --git a/appGUI/preferences/tools/Tools2CalPrefGroupUI.py b/appGUI/preferences/tools/Tools2CalPrefGroupUI.py index a95b3c20..44b2b769 100644 --- a/appGUI/preferences/tools/Tools2CalPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2CalPrefGroupUI.py @@ -25,7 +25,7 @@ class Tools2CalPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("Parameters used for this tool.") ) @@ -110,7 +110,7 @@ class Tools2CalPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Tool change Frame # ############################################################################################################# - tc_lbl = FCLabel('%s' % _("Tool change")) + tc_lbl = FCLabel('%s' % _("Tool change"), color='brown', bold=True) self.layout.addWidget(tc_lbl) tc_frame = FCFrame() diff --git a/appGUI/preferences/tools/Tools2ExtractPrefGroupUI.py b/appGUI/preferences/tools/Tools2ExtractPrefGroupUI.py index 921bb918..35964f27 100644 --- a/appGUI/preferences/tools/Tools2ExtractPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2ExtractPrefGroupUI.py @@ -24,7 +24,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.padt_label = FCLabel('%s' % _("Processed Pads Type")) + self.padt_label = FCLabel('%s' % _("Processed Pads Type"), color='blue', bold=True) self.padt_label.setToolTip( _("The type of pads shape to be processed.\n" "If the PCB has many SMD pads with rectangular pads,\n" @@ -101,7 +101,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): ], orientation='vertical', compact=True) - self.method_label = FCLabel('%s:' % _("Method")) + self.method_label = FCLabel('%s' % _("Method"), color='green', bold=True) self.method_label.setToolTip( _("The method for processing pads. Can be:\n" "- Fixed Diameter -> all holes will have a set size\n" @@ -119,7 +119,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Fixed Diameter Frame # ############################################################################################################# - self.fixed_label = FCLabel('%s' % _("Fixed Diameter")) + self.fixed_label = FCLabel('%s' % _("Fixed Diameter"), color='teal', bold=True) self.layout.addWidget(self.fixed_label) fix_frame = FCFrame() @@ -144,7 +144,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Annular ring Frame # ############################################################################################################# - self.ring_label = FCLabel('%s' % _("Fixed Annular Ring")) + self.ring_label = FCLabel('%s' % _("Fixed Annular Ring"), color='darkorange', bold=True) self.ring_label.setToolTip( _("The size of annular ring.\n" "The copper sliver between the hole exterior\n" @@ -226,7 +226,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Proportional Diameter Frame # ############################################################################################################# - self.prop_label = FCLabel('%s' % _("Proportional Diameter")) + self.prop_label = FCLabel('%s' % _("Proportional Diameter"), color='indigo', bold=True) self.layout.addWidget(self.prop_label) prop_frame = FCFrame() @@ -253,7 +253,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Extract Soldermask Frame # ############################################################################################################# - self.extract_sm_label = FCLabel('%s' % _("Extract Soldermask")) + self.extract_sm_label = FCLabel('%s' % _("Extract Soldermask"), color='magenta', bold=True) self.extract_sm_label.setToolTip( _("Extract soldermask from a given Gerber file.")) self.layout.addWidget(self.extract_sm_label) @@ -281,7 +281,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Extract CutOut Frame # ############################################################################################################# - self.extract_cut_label = FCLabel('%s' % _("Extract Cutout")) + self.extract_cut_label = FCLabel('%s' % _("Extract Cutout"), color='brown', bold=True) self.extract_cut_label.setToolTip( _("Extract a cutout from a given Gerber file.")) self.layout.addWidget(self.extract_cut_label) diff --git a/appGUI/preferences/tools/Tools2FiducialsPrefGroupUI.py b/appGUI/preferences/tools/Tools2FiducialsPrefGroupUI.py index 0b514a4f..c211cbd4 100644 --- a/appGUI/preferences/tools/Tools2FiducialsPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2FiducialsPrefGroupUI.py @@ -24,7 +24,7 @@ class Tools2FiducialsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("Parameters used for this tool.") ) @@ -117,7 +117,7 @@ class Tools2FiducialsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Selection Frame # ############################################################################################################# - self.sel_label = FCLabel('%s' % _("Selection")) + self.sel_label = FCLabel('%s' % _("Selection"), color='brown', bold=True) self.layout.addWidget(self.sel_label) s_frame = FCFrame() diff --git a/appGUI/preferences/tools/Tools2InvertPrefGroupUI.py b/appGUI/preferences/tools/Tools2InvertPrefGroupUI.py index c0d7f548..19d2ce24 100644 --- a/appGUI/preferences/tools/Tools2InvertPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2InvertPrefGroupUI.py @@ -24,7 +24,7 @@ class Tools2InvertPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.sublabel = FCLabel('%s' % _("Parameters")) + self.sublabel = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.sublabel.setToolTip( _("A tool to invert Gerber geometry from positive to negative\n" "and in revers.") @@ -54,7 +54,7 @@ class Tools2InvertPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Line Join Frame # ############################################################################################################# - self.join_label = FCLabel('%s' % _("Lines Join Style")) + self.join_label = FCLabel('%s' % _("Lines Join Style"), color='tomato', bold=True) self.join_label.setToolTip( _("The way that the lines in the object outline will be joined.\n" "Can be:\n" diff --git a/appGUI/preferences/tools/Tools2OptimalPrefGroupUI.py b/appGUI/preferences/tools/Tools2OptimalPrefGroupUI.py index f6e053de..f242de2b 100644 --- a/appGUI/preferences/tools/Tools2OptimalPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2OptimalPrefGroupUI.py @@ -24,7 +24,7 @@ class Tools2OptimalPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.optlabel = FCLabel('%s' % _("Parameters")) + self.optlabel = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.optlabel.setToolTip( _("A tool to find the minimum distance between\n" "every two Gerber geometric elements") diff --git a/appGUI/preferences/tools/Tools2PunchGerberPrefGroupUI.py b/appGUI/preferences/tools/Tools2PunchGerberPrefGroupUI.py index 7bc30944..147495bb 100644 --- a/appGUI/preferences/tools/Tools2PunchGerberPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2PunchGerberPrefGroupUI.py @@ -24,7 +24,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Processed Pads Frame # ############################################################################################################# - self.padt_label = FCLabel('%s' % _("Processed Pads Type")) + self.padt_label = FCLabel('%s' % _("Processed Pads Type"), color='blue', bold=True) self.padt_label.setToolTip( _("The type of pads shape to be processed.\n" "If the PCB has many SMD pads with rectangular pads,\n" @@ -102,7 +102,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI): ], orientation='vertical', compact=True) - self.hole_size_label = FCLabel('%s:' % _("Method")) + self.hole_size_label = FCLabel('%s' % _("Method"), color='green', bold=True) self.hole_size_label.setToolTip( _("The punch hole source can be:\n" "- Excellon Object-> the Excellon object drills center will serve as reference.\n" @@ -116,7 +116,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Fixed Diameter Frame # ############################################################################################################# - self.fixed_label = FCLabel('%s' % _("Fixed Diameter")) + self.fixed_label = FCLabel('%s' % _("Fixed Diameter"), color='teal', bold=True) self.layout.addWidget(self.fixed_label) fix_frame = FCFrame() @@ -141,7 +141,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Annular ring Frame # ############################################################################################################# - self.ring_label = FCLabel('%s' % _("Fixed Annular Ring")) + self.ring_label = FCLabel('%s' % _("Fixed Annular Ring"), color='darkorange', bold=True) self.ring_label.setToolTip( _("The size of annular ring.\n" "The copper sliver between the hole exterior\n" @@ -223,7 +223,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Proportional Diameter Frame # ############################################################################################################# - self.prop_label = FCLabel('%s' % _("Proportional Diameter")) + self.prop_label = FCLabel('%s' % _("Proportional Diameter"), color='indigo', bold=True) self.layout.addWidget(self.prop_label) prop_frame = FCFrame() diff --git a/appGUI/preferences/tools/Tools2QRCodePrefGroupUI.py b/appGUI/preferences/tools/Tools2QRCodePrefGroupUI.py index 22683b53..ca65c84d 100644 --- a/appGUI/preferences/tools/Tools2QRCodePrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2QRCodePrefGroupUI.py @@ -24,7 +24,7 @@ class Tools2QRCodePrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.qrlabel = FCLabel('%s' % _("Parameters")) + self.qrlabel = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.qrlabel.setToolTip( _("A tool to create a QRCode that can be inserted\n" "into a selected Gerber file, or it can be exported as a file.") diff --git a/appGUI/preferences/tools/Tools2RulesCheckPrefGroupUI.py b/appGUI/preferences/tools/Tools2RulesCheckPrefGroupUI.py index 73b42877..0316ac20 100644 --- a/appGUI/preferences/tools/Tools2RulesCheckPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2RulesCheckPrefGroupUI.py @@ -28,7 +28,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Rules Frame # ############################################################################################################# - rules_copper_label = FCLabel('%s %s' % (_("Copper"), _("Rules"))) + rules_copper_label = FCLabel('%s %s' % (_("Copper"), _("Rules")), color='darkorange', bold=True) self.layout.addWidget(rules_copper_label) copper_frame = FCFrame() @@ -127,7 +127,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Silk Frame # ############################################################################################################# - silk_copper_label = FCLabel('%s %s' % (_("Silk"), _("Rules"))) + silk_copper_label = FCLabel('%s %s' % (_("Silk"), _("Rules")), color='teal', bold=True) self.layout.addWidget(silk_copper_label) silk_frame = FCFrame() @@ -205,7 +205,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Soldermask Frame # ############################################################################################################# - sm_copper_label = FCLabel('%s %s' % (_("Soldermask"), _("Rules"))) + sm_copper_label = FCLabel('%s %s' % (_("Soldermask"), _("Rules")), color='magenta', bold=True) self.layout.addWidget(sm_copper_label) solder_frame = FCFrame() @@ -240,7 +240,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Holes Frame # ############################################################################################################# - holes_copper_label = FCLabel('%s %s' % (_("Holes"), _("Rules"))) + holes_copper_label = FCLabel('%s %s' % (_("Holes"), _("Rules")), color='brown', bold=True) self.layout.addWidget(holes_copper_label) holes_frame = FCFrame() diff --git a/appGUI/preferences/tools/Tools2sidedPrefGroupUI.py b/appGUI/preferences/tools/Tools2sidedPrefGroupUI.py index 53bce357..19970bc8 100644 --- a/appGUI/preferences/tools/Tools2sidedPrefGroupUI.py +++ b/appGUI/preferences/tools/Tools2sidedPrefGroupUI.py @@ -22,7 +22,7 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI): self.options = app.options # ## Board cuttout - self.dblsided_label = FCLabel('%s' % _("PCB Alignment")) + self.dblsided_label = FCLabel('%s' % _("PCB Alignment"), color='indigo', bold=True) self.dblsided_label.setToolTip( _("A tool to help in creating a double sided\n" "PCB using alignment holes.") @@ -89,7 +89,7 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI): # Mirror Frame # ############################################################################################################# # ### Tools ## ## - self.mirror_label = FCLabel('%s' % _("Mirror Operation")) + self.mirror_label = FCLabel('%s' % _("Mirror Operation"), color='red', bold=True) self.layout.addWidget(self.mirror_label) mirror_frame = FCFrame() diff --git a/appGUI/preferences/tools/ToolsCalculatorsPrefGroupUI.py b/appGUI/preferences/tools/ToolsCalculatorsPrefGroupUI.py index ddeeb6e9..6ee6cde1 100644 --- a/appGUI/preferences/tools/ToolsCalculatorsPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsCalculatorsPrefGroupUI.py @@ -24,7 +24,7 @@ class ToolsCalculatorsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # V-Shape Tool Frame # ############################################################################################################# - self.vshape_tool_label = FCLabel('%s' % _("V-Shape Tool Calculator")) + self.vshape_tool_label = FCLabel('%s' % _("V-Shape Tool Calculator"), color='green', bold=True) self.vshape_tool_label.setToolTip( _("Calculate the tool diameter for a given V-shape tool,\n" "having the tip diameter, tip angle and\n" @@ -83,7 +83,7 @@ class ToolsCalculatorsPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Electroplating Frame # ############################################################################################################# - self.plate_title_label = FCLabel('%s' % _("ElectroPlating Calculator")) + self.plate_title_label = FCLabel('%s' % _("ElectroPlating Calculator"), color='brown', bold=True) self.plate_title_label.setToolTip( _("This calculator is useful for those who plate the via/pad/drill holes,\n" "using a method like graphite ink or calcium hypophosphite ink or palladium chloride.") diff --git a/appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py b/appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py index 54006c8d..7fd06432 100644 --- a/appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsCutoutPrefGroupUI.py @@ -23,7 +23,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI): self.options = app.options # ## Board cutout - self.board_cutout_label = FCLabel('%s' % _("Parameters")) + self.board_cutout_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.board_cutout_label.setToolTip( _("Create toolpaths to cut around\n" "the PCB and separate it from\n" @@ -134,7 +134,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI): param_grid.addWidget(marginlabel, 10, 0) param_grid.addWidget(self.cutout_margin_entry, 10, 1) - self.gaps_label = FCLabel('%s' % _("Gaps")) + self.gaps_label = FCLabel('%s' % _("Gaps"), color='green', bold=True) self.layout.addWidget(self.gaps_label) # ############################################################################################################# # Gaps Frame @@ -260,7 +260,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI): gaps_grid.addWidget(self.big_cursor_cb, 18, 0, 1, 2) # Cut by Drilling Title - self.title_drillcut_label = FCLabel('%s' % _('Cut by Drilling')) + self.title_drillcut_label = FCLabel('%s' % _("Cut by Drilling"), color='red', bold=True) self.title_drillcut_label.setToolTip(_("Create a series of drill holes following a geometry line.")) self.layout.addWidget(self.title_drillcut_label) diff --git a/appGUI/preferences/tools/ToolsDrillPrefGroupUI.py b/appGUI/preferences/tools/ToolsDrillPrefGroupUI.py index d79a4914..8d5e40d5 100644 --- a/appGUI/preferences/tools/ToolsDrillPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsDrillPrefGroupUI.py @@ -25,7 +25,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.drill_label = FCLabel('%s' % _("Parameters")) + self.drill_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.drill_label.setToolTip( _("Create CNCJob with toolpaths for drilling or milling holes.") ) @@ -226,7 +226,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Drill Slots Frame # ############################################################################################################# - self.dslots_label = FCLabel('%s' % _('Drilling Slots')) + self.dslots_label = FCLabel('%s' % _("Drilling Slots"), color='brown', bold=True) self.layout.addWidget(self.dslots_label) ds_frame = FCFrame() @@ -272,7 +272,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Advanced Options Frame # ############################################################################################################# - self.exc_label = FCLabel('%s' % _('Advanced Options')) + self.exc_label = FCLabel('%s' % _("Advanced Options"), color='teal', bold=True) self.exc_label.setToolTip( _("A list of advanced parameters.") ) @@ -417,7 +417,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Area Exclusion Frame # ############################################################################################################# - self.area_exc_label = FCLabel('%s' % _('Area Exclusion')) + self.area_exc_label = FCLabel('%s' % _("Area Exclusion"), color='magenta', bold=True) self.area_exc_label.setToolTip( _("Area exclusion parameters.") ) diff --git a/appGUI/preferences/tools/ToolsFilmPrefGroupUI.py b/appGUI/preferences/tools/ToolsFilmPrefGroupUI.py index d6b3b6ff..187a8158 100644 --- a/appGUI/preferences/tools/ToolsFilmPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsFilmPrefGroupUI.py @@ -25,7 +25,7 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Adjustments Frame # ############################################################################################################# - self.film_adj_label = FCLabel('%s' % _("Adjustments")) + self.film_adj_label = FCLabel('%s' % _("Adjustments"), color='brown', bold=True) self.film_adj_label.setToolTip( _("Compensate print distortions.") ) @@ -195,7 +195,7 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.film_label = FCLabel('%s' % _("Parameters")) + self.film_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.film_label.setToolTip( _("Create a PCB film from a Gerber or Geometry object.\n" "The file is saved in SVG format.") diff --git a/appGUI/preferences/tools/ToolsISOPrefGroupUI.py b/appGUI/preferences/tools/ToolsISOPrefGroupUI.py index 7224a785..c0fdd5a4 100644 --- a/appGUI/preferences/tools/ToolsISOPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsISOPrefGroupUI.py @@ -22,7 +22,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI): self.options = app.options # ## Clear non-copper regions - self.iso_label = FCLabel('%s' % _("Parameters")) + self.iso_label = FCLabel(_("Parameters"), color='blue', bold=True) self.iso_label.setToolTip( _("Create a Geometry object with\n" "toolpaths to cut around polygons.") @@ -135,7 +135,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI): # Tool Frame # ############################################################################################################# # ### Tools ## ## - self.tools_table_label = FCLabel('%s' % _("Tool Parameters")) + self.tools_table_label = FCLabel(_("Tool Parameters"), color='green', bold=True) self.layout.addWidget(self.tools_table_label) tt_frame = FCFrame() @@ -245,7 +245,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # General Parameters Frame # ############################################################################################################# - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel(_("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appGUI/preferences/tools/ToolsLevelPrefGroupUI.py b/appGUI/preferences/tools/ToolsLevelPrefGroupUI.py index d0c415db..e6d4f2ce 100644 --- a/appGUI/preferences/tools/ToolsLevelPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsLevelPrefGroupUI.py @@ -22,7 +22,7 @@ class ToolsLevelPrefGroupUI(OptionsGroupUI): self.options = app.options # ## Board cuttout - self.levelling_label = FCLabel('%s' % _("Parameters")) + self.levelling_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.levelling_label.setToolTip( _("Generate CNC Code with auto-levelled paths.") ) diff --git a/appGUI/preferences/tools/ToolsMarkersPrefGroupUI.py b/appGUI/preferences/tools/ToolsMarkersPrefGroupUI.py index 0f4635c1..e8e7f181 100644 --- a/appGUI/preferences/tools/ToolsMarkersPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsMarkersPrefGroupUI.py @@ -24,7 +24,7 @@ class ToolsMarkersPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("Parameters used for this tool.") ) @@ -104,7 +104,7 @@ class ToolsMarkersPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Offset Frame # ############################################################################################################# - self.offset_title_label = FCLabel('%s' % _('Offset')) + self.offset_title_label = FCLabel('%s' % _("Offset"), color='magenta', bold=True) self.offset_title_label.setToolTip(_("Offset locations from the set reference.")) self.layout.addWidget(self.offset_title_label) diff --git a/appGUI/preferences/tools/ToolsMillPrefGroupUI.py b/appGUI/preferences/tools/ToolsMillPrefGroupUI.py index 9470471f..65cd74ea 100644 --- a/appGUI/preferences/tools/ToolsMillPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsMillPrefGroupUI.py @@ -25,7 +25,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.mill_label = FCLabel('%s' % _("Parameters")) + self.mill_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.mill_label.setToolTip( _("Create CNCJob with toolpaths for milling either Geometry or drill holes.") ) @@ -289,7 +289,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Advanced Options Frame # ############################################################################################################# - self.adv_label = FCLabel('%s' % _('Advanced Options')) + self.adv_label = FCLabel('%s' % _("Advanced Options"), color='teal', bold=True) self.adv_label.setToolTip( _("A list of advanced parameters.") ) @@ -437,7 +437,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Area Exclusion Frame # ############################################################################################################# - self.area_exc_label = FCLabel('%s' % _('Area Exclusion')) + self.area_exc_label = FCLabel('%s' % _("Area Exclusion"), color='magenta', bold=True) self.area_exc_label.setToolTip( _("Area exclusion parameters.") ) @@ -503,7 +503,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Area Polish Frame # ############################################################################################################# - self.pol_label = FCLabel('%s' % _('Add Polish')) + self.pol_label = FCLabel('%s' % _("Add Polish"), color='brown', bold=True) self.pol_label.setToolTip( _("Will add a Paint section at the end of the GCode.\n" "A metallic brush will clean the material after milling.") @@ -562,7 +562,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Excellon Milling Frame # ############################################################################################################# - self.mille_label = FCLabel('%s' % _('Excellon Milling')) + self.mille_label = FCLabel('%s' % _("Excellon Milling"), color='darkorange', bold=True) self.mille_label.setToolTip( _("Will mill Excellon holes progressively from the center of the hole.") ) diff --git a/appGUI/preferences/tools/ToolsNCCPrefGroupUI.py b/appGUI/preferences/tools/ToolsNCCPrefGroupUI.py index 0d62dbef..b2dddf3f 100644 --- a/appGUI/preferences/tools/ToolsNCCPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsNCCPrefGroupUI.py @@ -23,7 +23,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI): self.options = app.options # ## Clear non-copper regions - self.clearcopper_label = FCLabel('%s' % _("Parameters")) + self.clearcopper_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.clearcopper_label.setToolTip( _("Create a Geometry object with\n" "toolpaths to cut all non-copper regions.") @@ -155,7 +155,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI): # Tool Frame # ############################################################################################################# # ### Tools ## ## - self.tools_table_label = FCLabel('%s' % _("Tool Parameters")) + self.tools_table_label = FCLabel('%s' % _("Tool Parameters"), color='green', bold=True) self.layout.addWidget(self.tools_table_label) tt_frame = FCFrame() @@ -271,7 +271,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # General Parameters Frame # ############################################################################################################# - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appGUI/preferences/tools/ToolsPaintPrefGroupUI.py b/appGUI/preferences/tools/ToolsPaintPrefGroupUI.py index 4f6e2a6f..85cbfc0a 100644 --- a/appGUI/preferences/tools/ToolsPaintPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsPaintPrefGroupUI.py @@ -25,7 +25,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI): # ------------------------------ # ## Paint area # ------------------------------ - self.paint_label = FCLabel('%s' % _('Parameters')) + self.paint_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.paint_label.setToolTip( _("Creates tool paths to cover the\n" "whole area of a polygon.") @@ -138,7 +138,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI): # Tool Frame # ############################################################################################################# # ### Tools ## ## - self.tools_table_label = FCLabel('%s' % _("Tool Parameters")) + self.tools_table_label = FCLabel('%s' % _("Tool Parameters"), color='green', bold=True) self.layout.addWidget(self.tools_table_label) tt_frame = FCFrame() @@ -228,7 +228,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # General Parameters Frame # ############################################################################################################# - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py b/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py index 125a3ba0..82532ca4 100644 --- a/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsPanelizePrefGroupUI.py @@ -24,7 +24,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.panelize_label = FCLabel('%s' % _("Parameters")) + self.panelize_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.panelize_label.setToolTip( _("Create an object that contains an array of (x, y) elements,\n" "each element is a copy of the source object spaced\n" diff --git a/appGUI/preferences/tools/ToolsSolderpastePrefGroupUI.py b/appGUI/preferences/tools/ToolsSolderpastePrefGroupUI.py index b42408fd..0349b352 100644 --- a/appGUI/preferences/tools/ToolsSolderpastePrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsSolderpastePrefGroupUI.py @@ -25,7 +25,7 @@ class ToolsSolderpastePrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.solderpastelabel = FCLabel('%s' % _("Parameters")) + self.solderpastelabel = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.solderpastelabel.setToolTip( _("A tool to create GCode for dispensing\n" "solder paste onto a PCB.") diff --git a/appGUI/preferences/tools/ToolsSubPrefGroupUI.py b/appGUI/preferences/tools/ToolsSubPrefGroupUI.py index 60185758..6ae2249e 100644 --- a/appGUI/preferences/tools/ToolsSubPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsSubPrefGroupUI.py @@ -21,7 +21,7 @@ class ToolsSubPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.sublabel = FCLabel('%s' % _("Parameters")) + self.sublabel = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.sublabel.setToolTip( _("A tool to substract one Gerber or Geometry object\n" "from another of the same type.") diff --git a/appGUI/preferences/tools/ToolsTransformPrefGroupUI.py b/appGUI/preferences/tools/ToolsTransformPrefGroupUI.py index e0cda26b..ff0a8204 100644 --- a/appGUI/preferences/tools/ToolsTransformPrefGroupUI.py +++ b/appGUI/preferences/tools/ToolsTransformPrefGroupUI.py @@ -25,7 +25,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # PARAMETERS Frame # ############################################################################################################# - self.transform_label = FCLabel('%s' % _("Parameters")) + self.transform_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.transform_label.setToolTip( _("Various transformations that can be applied\n" "on a application object.") @@ -85,7 +85,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Rotate Frame # ############################################################################################################# - rotate_title_lbl = FCLabel('%s' % _("Rotate")) + rotate_title_lbl = FCLabel('%s' % _("Rotate"), color='tomato', bold=True) self.layout.addWidget(rotate_title_lbl) rot_frame = FCFrame() @@ -115,7 +115,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI): s_t_lay = QtWidgets.QHBoxLayout() self.layout.addLayout(s_t_lay) - skew_title_lbl = FCLabel('%s' % _("Skew")) + skew_title_lbl = FCLabel('%s' % _("Skew"), color='teal', bold=True) s_t_lay.addWidget(skew_title_lbl) s_t_lay.addStretch() @@ -168,7 +168,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI): sc_t_lay = QtWidgets.QHBoxLayout() self.layout.addLayout(sc_t_lay) - scale_title_lbl = FCLabel('%s' % _("Scale")) + scale_title_lbl = FCLabel('%s' % _("Scale"), color='magenta', bold=True) sc_t_lay.addWidget(scale_title_lbl) sc_t_lay.addStretch() @@ -214,7 +214,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI): # ############################################################################################################# # Offset Frame # ############################################################################################################# - offset_title_lbl = FCLabel('%s' % _("Offset")) + offset_title_lbl = FCLabel('%s' % _("Offset"), color='green', bold=True) self.layout.addWidget(offset_title_lbl) off_frame = FCFrame() @@ -254,7 +254,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI): b_t_lay = QtWidgets.QHBoxLayout() self.layout.addLayout(b_t_lay) - buffer_title_lbl = FCLabel('%s' % _("Buffer")) + buffer_title_lbl = FCLabel('%s' % _("Buffer"), color='indigo', bold=True) b_t_lay.addWidget(buffer_title_lbl) b_t_lay.addStretch() diff --git a/appMain.py b/appMain.py index 2e65be08..37e74ba8 100644 --- a/appMain.py +++ b/appMain.py @@ -3677,8 +3677,7 @@ class App(QtCore.QObject): line = 1 for i in translators: - self.translator_grid_lay.addWidget( - FCLabel('%s' % i['language']), line, 0) + self.translator_grid_lay.addWidget(FCLabel('%s' % i['language'], color='blue', bold=False), line, 0) for author in range(len(i['authors'])): auth_widget = FCLabel('%s' % i['authors'][author][0]) email_widget = FCLabel('%s' % i['authors'][author][1]) diff --git a/appPlugins/ToolAlignObjects.py b/appPlugins/ToolAlignObjects.py index a616403a..c8f1bfdb 100644 --- a/appPlugins/ToolAlignObjects.py +++ b/appPlugins/ToolAlignObjects.py @@ -414,7 +414,7 @@ class AlignUI: # ############################################################################################################# # Moving Object Frame # ############################################################################################################# - self.aligned_label = FCLabel('%s' % _("MOVING object")) + self.aligned_label = FCLabel('%s' % _("MOVING object"), color='indigo', bold=True) self.aligned_label.setToolTip( _("Specify the type of object to be aligned.\n" "It can be of type: Gerber or Excellon.\n" @@ -453,7 +453,7 @@ class AlignUI: # ############################################################################################################# # Destination Object Frame # ############################################################################################################# - self.aligned_label = FCLabel('%s' % _("DESTINATION object")) + self.aligned_label = FCLabel('%s' % _("DESTINATION object"), color='red', bold=True) self.aligned_label.setToolTip( _("Specify the type of object to be aligned to.\n" "It can be of type: Gerber or Excellon.\n" @@ -492,7 +492,7 @@ class AlignUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.tools_box.addWidget(self.param_label) par_frame = FCFrame() diff --git a/appPlugins/ToolCalculators.py b/appPlugins/ToolCalculators.py index c2785faa..dcd0280a 100644 --- a/appPlugins/ToolCalculators.py +++ b/appPlugins/ToolCalculators.py @@ -526,7 +526,8 @@ class CalcUI: # ##################### # ## Title of the Units Calculator - units_label = FCLabel('%s' % self.unitsName) + units_label = FCLabel('%s' % self.unitsName, color='blue', bold=True) + self.layout.addWidget(units_label) units_frame = FCFrame() @@ -588,7 +589,8 @@ class CalcUI: # ################################ V-shape Tool Calculator #################################################### # ############################################################################################################# # ## Title of the V-shape Tools Calculator - v_shape_title_label = FCLabel('%s' % self.v_shapeName) + v_shape_title_label = FCLabel('%s' % self.v_shapeName, color='green', bold=True) + self.layout.addWidget(v_shape_title_label) v_frame = FCFrame() @@ -662,7 +664,7 @@ class CalcUI: # ############################## ElectroPlating Tool Calculator ############################################### # ############################################################################################################# # ## Title of the ElectroPlating Tools Calculator - tin_title_label = FCLabel('%s' % self.eplateName) + tin_title_label = FCLabel('%s' % self.eplateName, color='purple', bold=True) tin_title_label.setToolTip( _("This calculator is useful for those who plate the via/pad/drill holes,\n" "using a method like graphite ink or calcium hypophosphite ink or palladium chloride.") @@ -848,7 +850,7 @@ class CalcUI: # ############################## Tinning Calculator ############################################### # ############################################################################################################# # ## Title of the Tinning Calculator - tin_title_label = FCLabel('%s' % self.tinningName) + tin_title_label = FCLabel('%s' % self.tinningName, color='orange', bold=True) tin_title_label.setToolTip( _("Calculator for chemical quantities\n" "required for tinning PCB's.") @@ -1011,7 +1013,7 @@ class CalcUI: grid_tin.addWidget(separator_line, 26, 0, 1, 2) # Volume - self.vol_lbl = FCLabel('%s:' % _("Volume")) + self.vol_lbl = FCLabel('%s' % _("Volume"), color='red', bold=True) self.vol_lbl.setToolTip(_('Desired volume of tinning solution.')) self.vol_entry = FCDoubleSpinner(callback=self.confirmation_message) self.vol_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, diff --git a/appPlugins/ToolCopperThieving.py b/appPlugins/ToolCopperThieving.py index 1aeae019..debcf626 100644 --- a/appPlugins/ToolCopperThieving.py +++ b/appPlugins/ToolCopperThieving.py @@ -1277,7 +1277,7 @@ class ThievingUI: # ############################################################################################################# # Source Object Frame # ############################################################################################################# - self.grbobj_label = FCLabel('%s' % _("Source Object")) + self.grbobj_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.grbobj_label.setToolTip(_("Gerber Object to which will be added a copper thieving.")) self.tools_box.addWidget(self.grbobj_label) @@ -1296,8 +1296,7 @@ class ThievingUI: # ############################################################################################################# # Thieving Parameters Frame # ############################################################################################################# - self.copper_fill_label = FCLabel('%s %s' % - (_('Thieving'), _("Parameters"))) + self.copper_fill_label = FCLabel('%s %s' % (_("Thieving"), _("Parameters")), color='blue', bold=True) self.copper_fill_label.setToolTip(_("Parameters used for this tool.")) self.tools_box.addWidget(self.copper_fill_label) @@ -1591,8 +1590,7 @@ class ThievingUI: # ############################################################################################################# # ## Robber Bar Parameters # ############################################################################################################# - self.robber_bar_label = FCLabel('%s' % - _('Robber Bar Parameters')) + self.robber_bar_label = FCLabel('%s' % _("Robber Bar Parameters"), color='brown', bold=True) self.robber_bar_label.setToolTip( _("Parameters used for the robber bar.\n" "Robber bar = copper border to help in pattern hole plating.") @@ -1659,14 +1657,13 @@ class ThievingUI: # ############################################################################################################# # Pattern plating Frame # ############################################################################################################# - self.patern_mask_label = FCLabel('%s' % - _('Pattern Plating Mask')) + self.patern_mask_label = FCLabel('%s' % _("Pattern Plating Mask"), color='purple', bold=True) self.patern_mask_label.setToolTip( _("Generate a mask for pattern plating.") ) self.tools_box.addWidget(self.patern_mask_label) - self.sm_obj_label = FCLabel('%s' % _("Source Object")) + self.sm_obj_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.sm_obj_label.setToolTip( _("Gerber Object with the soldermask.\n" "It will be used as a base for\n" diff --git a/appPlugins/ToolCutOut.py b/appPlugins/ToolCutOut.py index fbcf9cf9..b6dff55a 100644 --- a/appPlugins/ToolCutOut.py +++ b/appPlugins/ToolCutOut.py @@ -2255,7 +2255,7 @@ class CutoutUI: self.level.setCheckable(True) self.title_box.addWidget(self.level) - self.object_label = FCLabel('%s' % _("Source Object")) + self.object_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.object_label.setToolTip('%s.' % _("Object to be cutout")) self.tools_box.addWidget(self.object_label) @@ -2309,7 +2309,7 @@ class CutoutUI: obj_grid.addWidget(self.obj_combo, 6, 0, 1, 2) - self.tool_sel_label = FCLabel('%s' % _('Cutout Tool')) + self.tool_sel_label = FCLabel('%s' % _("Cutout Tool"), color='indigo', bold=True) self.tools_box.addWidget(self.tool_sel_label) # ############################################################################################################# @@ -2367,7 +2367,7 @@ class CutoutUI: # separator_line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) # obj_grid.addWidget(separator_line, 18, 0, 1, 2) - self.param_label = FCLabel('%s' % _("Tool Parameters")) + self.param_label = FCLabel('%s' % _("Tool Parameters"), color='blue', bold=True) self.tools_box.addWidget(self.param_label) # ############################################################################################################# @@ -2446,7 +2446,7 @@ class CutoutUI: param_grid.addWidget(self.margin_label, 6, 0) param_grid.addWidget(self.margin, 6, 1) - self.gaps_label = FCLabel('%s' % _("Gaps")) + self.gaps_label = FCLabel('%s' % _("Gaps"), color='green', bold=True) self.tools_box.addWidget(self.gaps_label) # ############################################################################################################# @@ -2694,7 +2694,7 @@ class CutoutUI: # obj_grid.addWidget(FCLabel(""), 62, 0, 1, 2) # Cut by Drilling Title - self.title_drillcut_label = FCLabel('%s' % _('Cut by Drilling')) + self.title_drillcut_label = FCLabel('%s' % _("Cut by Drilling"), color='red', bold=True) self.title_drillcut_label.setToolTip(_("Create a series of drill holes following a geometry line.")) self.tools_box.addWidget(self.title_drillcut_label) diff --git a/appPlugins/ToolDblSided.py b/appPlugins/ToolDblSided.py index 220abdbb..a4149570 100644 --- a/appPlugins/ToolDblSided.py +++ b/appPlugins/ToolDblSided.py @@ -720,7 +720,7 @@ class DsidedUI: # ############################################################################################################# # Source Object # ############################################################################################################# - self.m_objects_label = FCLabel('%s' % _("Source Object")) + self.m_objects_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.m_objects_label.setToolTip('%s.' % _("Objects to be mirrored")) self.tools_box.addWidget(self.m_objects_label) @@ -753,7 +753,7 @@ class DsidedUI: # ############################################################################################################# # ########## BOUNDS OPERATION ########################################################################### # ############################################################################################################# - self.bv_label = FCLabel('%s' % _('Bounds Values')) + self.bv_label = FCLabel('%s' % _("Bounds Values"), color='purple', bold=True) self.bv_label.setToolTip( _("Select on canvas the object(s)\n" "for which to calculate bounds values.") @@ -854,7 +854,7 @@ class DsidedUI: # ############################################################################################################# # ########## MIRROR OPERATION ########################################################################### # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Mirror Operation")) + self.param_label = FCLabel('%s' % _("Mirror Operation"), color='blue', bold=True) self.param_label.setToolTip('%s.' % _("Parameters for the mirror operation")) self.tools_box.addWidget(self.param_label) @@ -1024,7 +1024,7 @@ class DsidedUI: # ########## ALIGNMENT OPERATION ######################################################################## # ############################################################################################################# # ## Alignment holes - self.alignment_label = FCLabel('%s' % _('PCB Alignment')) + self.alignment_label = FCLabel('%s' % _("PCB Alignment"), color='brown', bold=True) self.alignment_label.setToolTip( _("Creates an Excellon Object containing the\n" "specified alignment holes and their mirror\n" diff --git a/appPlugins/ToolDistance.py b/appPlugins/ToolDistance.py index 0e0e4e00..316ac0ea 100644 --- a/appPlugins/ToolDistance.py +++ b/appPlugins/ToolDistance.py @@ -817,7 +817,7 @@ class DistanceUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.layout.addWidget(self.param_label) self.par_frame = FCFrame() @@ -848,7 +848,7 @@ class DistanceUI: # ############################################################################################################# # Coordinates Frame # ############################################################################################################# - self.coords_label = FCLabel('%s' % _('Coordinates')) + self.coords_label = FCLabel('%s' % _("Coordinates"), color='green', bold=True) self.layout.addWidget(self.coords_label) coords_frame = FCFrame() @@ -891,7 +891,7 @@ class DistanceUI: # ############################################################################################################# # Coordinates Frame # ############################################################################################################# - self.res_label = FCLabel('%s' % _('Results')) + self.res_label = FCLabel('%s' % _("Results"), color='red', bold=True) self.layout.addWidget(self.res_label) res_frame = FCFrame() diff --git a/appPlugins/ToolDrilling.py b/appPlugins/ToolDrilling.py index b8190f5f..be6330d9 100644 --- a/appPlugins/ToolDrilling.py +++ b/appPlugins/ToolDrilling.py @@ -2400,7 +2400,7 @@ class DrillingUI: # ############################################################################################################# # Excellon Source Object Frame # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("Excellon object for drilling/milling operation.") ) @@ -2429,7 +2429,7 @@ class DrillingUI: # ############################################################################################################# # Excellon Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip(_("Tools in the object used for drilling.")) self.tools_box.addWidget(self.tools_table_label) @@ -2744,7 +2744,7 @@ class DrillingUI: # COMMON PARAMETERS Frame # ############################################################################################################# # General Parameters - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appPlugins/ToolEtchCompensation.py b/appPlugins/ToolEtchCompensation.py index d3c851fd..2faea4f0 100644 --- a/appPlugins/ToolEtchCompensation.py +++ b/appPlugins/ToolEtchCompensation.py @@ -313,7 +313,7 @@ class EtchUI: # ############################################################################################################# # Source Object Frame # ############################################################################################################# - self.gerber_label = FCLabel('%s' % _("Source Object")) + self.gerber_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.gerber_label.setToolTip( _("Gerber object that will be compensated.") ) @@ -331,7 +331,7 @@ class EtchUI: # ############################################################################################################# # Utilities # ############################################################################################################# - self.util_label = FCLabel('%s' % _("Utilities")) + self.util_label = FCLabel('%s' % _("Utilities"), color='red', bold=True) self.util_label.setToolTip('%s.' % _("Conversion utilities")) self.tools_box.addWidget(self.util_label) @@ -389,7 +389,7 @@ class EtchUI: # ############################################################################################################# # COMMON PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip(_("Parameters used for this tool.")) self.tools_box.addWidget(self.param_label) diff --git a/appPlugins/ToolExtract.py b/appPlugins/ToolExtract.py index adfa7491..9585784c 100644 --- a/appPlugins/ToolExtract.py +++ b/appPlugins/ToolExtract.py @@ -1011,7 +1011,7 @@ class ExtractUI: # ############################################################################################################# # Source Object # ############################################################################################################# - self.grb_label = FCLabel('%s' % _("Source Object")) + self.grb_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.grb_label.setToolTip('%s.' % _("Gerber object from which to extract drill holes or soldermask.")) self.tools_box.addWidget(self.grb_label) @@ -1027,7 +1027,7 @@ class ExtractUI: # ############################################################################################################# # Processed Pads Frame # ############################################################################################################# - self.padt_label = FCLabel('%s' % _("Processed Pads Type")) + self.padt_label = FCLabel('%s' % _("Processed Pads Type"), color='green', bold=True) self.padt_label.setToolTip( _("The type of pads shape to be processed.\n" "If the PCB has many SMD pads with rectangular pads,\n" @@ -1132,7 +1132,7 @@ class ExtractUI: # ############################################################################################################# # Extract Drills Frame # ############################################################################################################# - self.extract_drills_label = FCLabel('%s' % _("Extract Drills")) + self.extract_drills_label = FCLabel('%s' % _("Extract Drills"), color='brown', bold=True) self.extract_drills_label.setToolTip( _("Extract an Excellon object from the Gerber pads.")) self.tools_box.addWidget(self.extract_drills_label) @@ -1337,7 +1337,7 @@ class ExtractUI: # Extract SolderMask Frame # ############################################################################################################# # EXTRACT SOLDERMASK - self.extract_sm_label = FCLabel('%s' % _("Extract Soldermask")) + self.extract_sm_label = FCLabel('%s' % _("Extract Soldermask"), color='purple', bold=True) self.extract_sm_label.setToolTip( _("Extract soldermask from a given Gerber file.")) self.tools_box.addWidget(self.extract_sm_label) @@ -1382,7 +1382,7 @@ class ExtractUI: # Extract CutOut Frame # ############################################################################################################# # EXTRACT CUTOUT - self.extract_cut_label = FCLabel('%s' % _("Extract Cutout")) + self.extract_cut_label = FCLabel('%s' % _("Extract Cutout"), color='blue', bold=True) self.extract_cut_label.setToolTip( _("Extract a cutout from a given Gerber file.")) self.tools_box.addWidget(self.extract_cut_label) diff --git a/appPlugins/ToolFiducials.py b/appPlugins/ToolFiducials.py index 8b0b021d..2d8767ec 100644 --- a/appPlugins/ToolFiducials.py +++ b/appPlugins/ToolFiducials.py @@ -937,7 +937,7 @@ class FidoUI: # ############################################################################################################# # Gerber Source Object # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("Gerber object for adding fiducials and soldermask openings.") ) @@ -954,7 +954,7 @@ class FidoUI: # ############################################################################################################# # Coordinates Table Frame # ############################################################################################################# - self.points_label = FCLabel('%s' % _('Coordinates')) + self.points_label = FCLabel('%s' % _("Coordinates"), color='green', bold=True) self.points_label.setToolTip( _("A table with the fiducial points coordinates,\n" "in the format (x, y).") @@ -1048,7 +1048,7 @@ class FidoUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("Parameters used for this tool.") ) @@ -1146,7 +1146,7 @@ class FidoUI: # ############################################################################################################# # Selection Frame # ############################################################################################################# - self.sel_label = FCLabel('%s' % _("Selection")) + self.sel_label = FCLabel('%s' % _("Selection"), color='green', bold=True) self.tools_box.addWidget(self.sel_label) self.s_frame = FCFrame() diff --git a/appPlugins/ToolFilm.py b/appPlugins/ToolFilm.py index 49bae2e2..fba56017 100644 --- a/appPlugins/ToolFilm.py +++ b/appPlugins/ToolFilm.py @@ -1267,7 +1267,7 @@ class FilmUI: # ############################################################################################################# # Source Object Frame # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("Excellon object for drilling/milling operation.") ) @@ -1332,7 +1332,7 @@ class FilmUI: # ############################################################################################################# # Adjustments Frame # ############################################################################################################# - self.film_adj_label = FCLabel('%s' % _("Adjustments")) + self.film_adj_label = FCLabel('%s' % _("Adjustments"), color='green', bold=True) self.film_adj_label.setToolTip( _("Compensate print distortions.") ) @@ -1529,7 +1529,7 @@ class FilmUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.film_param_label = FCLabel('%s' % _("Parameters")) + self.film_param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.tools_box.addWidget(self.film_param_label) par_frame = FCFrame() @@ -1669,7 +1669,7 @@ class FilmUI: # ############################################################################################################# # Export Frame # ############################################################################################################# - self.export_label = FCLabel('%s' % _('Export')) + self.export_label = FCLabel('%s' % _("Export"), color='red', bold=True) self.tools_box.addWidget(self.export_label) exp_frame = FCFrame() diff --git a/appPlugins/ToolFollow.py b/appPlugins/ToolFollow.py index 55104bca..1fcde462 100644 --- a/appPlugins/ToolFollow.py +++ b/appPlugins/ToolFollow.py @@ -695,7 +695,7 @@ class FollowUI: # ############################################################################################################# # ################################ The object to be followed ################################################## # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("A Gerber object to be followed.\n" "Create a Geometry object with a path\n" @@ -713,7 +713,7 @@ class FollowUI: # ############################################################################################################# # COMMON PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip(_("Parameters that are common for all tools.")) self.tools_box.addWidget(self.param_label) diff --git a/appPlugins/ToolInvertGerber.py b/appPlugins/ToolInvertGerber.py index 4a29ba1b..cd6837bf 100644 --- a/appPlugins/ToolInvertGerber.py +++ b/appPlugins/ToolInvertGerber.py @@ -220,7 +220,7 @@ class InvertUI: # ############################################################################################################# # Source Object Frame # ############################################################################################################# - self.gerber_label = FCLabel('%s' % _("Source Object")) + self.gerber_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.gerber_label.setToolTip(_("Gerber object that will be inverted.")) self.tools_box.addWidget(self.gerber_label) @@ -241,7 +241,7 @@ class InvertUI: # ############################################################################################################# # COMMON PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip('%s.' % _("Parameters for this tool")) self.tools_box.addWidget(self.param_label) diff --git a/appPlugins/ToolIsolation.py b/appPlugins/ToolIsolation.py index 8fc20617..8dbc70c5 100644 --- a/appPlugins/ToolIsolation.py +++ b/appPlugins/ToolIsolation.py @@ -3379,7 +3379,7 @@ class IsoUI: # ############################################################################################################# # Source Object for Isolation # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip(_("Gerber object for isolation routing.")) self.tools_box.addWidget(self.obj_combo_label) @@ -3402,7 +3402,7 @@ class IsoUI: # ############################################################################################################# # Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip( _("Tools pool from which the algorithm\n" "will pick the ones used for copper clearing.") @@ -3758,7 +3758,7 @@ class IsoUI: # COMMON PARAMETERS # ############################################################################################################# # General Parameters - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appPlugins/ToolLevelling.py b/appPlugins/ToolLevelling.py index 58f1c5a9..f99f5a3d 100644 --- a/appPlugins/ToolLevelling.py +++ b/appPlugins/ToolLevelling.py @@ -1759,7 +1759,7 @@ class LevelUI: self.level.setCheckable(True) self.title_box.addWidget(self.level) - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("CNCJob source object to be levelled.") ) @@ -1836,7 +1836,7 @@ class LevelUI: # ############################################################################################################# # ############### Probe GCode Generation ###################################################################### # ############################################################################################################# - self.probe_gc_label = FCLabel('%s' % _("Parameters")) + self.probe_gc_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.probe_gc_label.setToolTip( _("Will create a GCode which will be sent to the controller,\n" "either through a file or directly, with the intent to get the height map\n" @@ -1953,7 +1953,7 @@ class LevelUI: # ############################################################################################################# # Controller Frame # ############################################################################################################# - self.al_controller_label = FCLabel('%s' % _("Controller")) + self.al_controller_label = FCLabel('%s' % _("Controller"), color='red', bold=True) self.al_controller_label.setToolTip( _("The kind of controller for which to generate\n" "height map gcode.") diff --git a/appPlugins/ToolMarkers.py b/appPlugins/ToolMarkers.py index 82e602ad..e53b6dcf 100644 --- a/appPlugins/ToolMarkers.py +++ b/appPlugins/ToolMarkers.py @@ -1260,7 +1260,7 @@ class MarkersUI: # Gerber Source Object # ############################################################################################################# - self.object_label = FCLabel('%s' % _("Source Object")) + self.object_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.object_label.setToolTip(_("The Gerber object to which will be added corner markers.")) self.object_combo = FCComboBox() @@ -1280,7 +1280,7 @@ class MarkersUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip(_("Parameters used for this tool.")) self.tools_box.addWidget(self.param_label) @@ -1334,7 +1334,7 @@ class MarkersUI: # ############################################################################################################# # Offset Frame # ############################################################################################################# - self.offset_title_label = FCLabel('%s' % _('Offset')) + self.offset_title_label = FCLabel('%s' % _("Offset"), color='magenta', bold=True) self.offset_title_label.setToolTip(_("Offset locations from the set reference.")) self.tools_box.addWidget(self.offset_title_label) @@ -1397,7 +1397,7 @@ class MarkersUI: # ############################################################################################################# # Locations Frame # ############################################################################################################# - self.locs_label = FCLabel('%s' % _('Locations')) + self.locs_label = FCLabel('%s' % _("Locations"), color='red', bold=True) self.locs_label.setToolTip(_("Locations where to place corner markers.")) self.tools_box.addWidget(self.locs_label) @@ -1436,7 +1436,7 @@ class MarkersUI: # ############################################################################################################# # Selection Frame # ############################################################################################################# - self.mode_label = FCLabel('%s' % _("Selection")) + self.mode_label = FCLabel('%s' % _("Selection"), color='green', bold=True) self.tools_box.addWidget(self.mode_label) self.s_frame = FCFrame() @@ -1495,7 +1495,7 @@ class MarkersUI: # Drill in markers Frame # ############################################################################################################# # Drill is markers - self.drills_label = FCLabel('%s' % _('Drills in Locations')) + self.drills_label = FCLabel('%s' % _("Drills in Locations"), color='brown', bold=True) self.tools_box.addWidget(self.drills_label) self.drill_frame = FCFrame() @@ -1535,7 +1535,7 @@ class MarkersUI: # ############################################################################################################# # Check in Locations Frame # ############################################################################################################# - self.check_label = FCLabel('%s' % _('Check in Locations')) + self.check_label = FCLabel('%s' % _("Check in Locations"), color='indigo', bold=True) self.tools_box.addWidget(self.check_label) # ## Create an Excellon object for checking the positioning @@ -1558,7 +1558,7 @@ class MarkersUI: # ############################################################################################################# # Insert Markers Frame # ############################################################################################################# - self.insert_label = FCLabel('%s' % _('Insert Markers')) + self.insert_label = FCLabel('%s' % _("Insert Markers"), color='teal', bold=True) self.insert_label.setToolTip( _("Enabled only if markers are available (added to an object).\n" "Those markers will be inserted in yet another object.") diff --git a/appPlugins/ToolMilling.py b/appPlugins/ToolMilling.py index 0ffb8646..39ae0437 100644 --- a/appPlugins/ToolMilling.py +++ b/appPlugins/ToolMilling.py @@ -3944,7 +3944,7 @@ class MillingUI: # ############################################################################################################# # Source Object for Milling Frame # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("Source object for milling operation.") ) @@ -3996,7 +3996,7 @@ class MillingUI: tool_title_grid = GLay(v_spacing=5, h_spacing=3) self.tools_box.addLayout(tool_title_grid) - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip( _("Tools in the object used for milling.") ) @@ -4760,7 +4760,7 @@ class MillingUI: # COMMON PARAMETERS # ############################################################################################################# # General Parameters - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appPlugins/ToolNCC.py b/appPlugins/ToolNCC.py index a6b2e444..982bba2d 100644 --- a/appPlugins/ToolNCC.py +++ b/appPlugins/ToolNCC.py @@ -4061,7 +4061,7 @@ class NccUI: # ############################################################################################################# # Source Object for Paint Frame # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("Source object for milling operation.") ) @@ -4111,7 +4111,7 @@ class NccUI: # Tool Table Frame # ############################################################################################################# # ### Tools ## ## - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip( _("Tools pool from which the algorithm\n" "will pick the ones used for copper clearing.") @@ -4444,7 +4444,7 @@ class NccUI: # General Parameters Frame # ############################################################################################################# # General Parameters - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip( _("Parameters that are common for all tools.") ) diff --git a/appPlugins/ToolObjectDistance.py b/appPlugins/ToolObjectDistance.py index 98446b44..3679a534 100644 --- a/appPlugins/ToolObjectDistance.py +++ b/appPlugins/ToolObjectDistance.py @@ -444,7 +444,7 @@ class ObjectDistanceUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("Parameters used for this tool.") ) @@ -473,7 +473,7 @@ class ObjectDistanceUI: # ############################################################################################################# # Coordinates Frame # ############################################################################################################# - self.coords_label = FCLabel('%s' % _('Coordinates')) + self.coords_label = FCLabel('%s' % _("Coordinates"), color='green', bold=True) self.layout.addWidget(self.coords_label) coords_frame = FCFrame() @@ -516,7 +516,7 @@ class ObjectDistanceUI: # ############################################################################################################# # Coordinates Frame # ############################################################################################################# - self.res_label = FCLabel('%s' % _('Results')) + self.res_label = FCLabel('%s' % _("Results"), color='red', bold=True) self.layout.addWidget(self.res_label) res_frame = FCFrame() diff --git a/appPlugins/ToolOptimal.py b/appPlugins/ToolOptimal.py index 55c9278b..830dea85 100644 --- a/appPlugins/ToolOptimal.py +++ b/appPlugins/ToolOptimal.py @@ -481,7 +481,7 @@ class OptimalUI: # ############################################################################################################# # Gerber Source Object # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( "Gerber object for which to find the minimum distance between copper features." ) @@ -508,7 +508,7 @@ class OptimalUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip(_("Parameters used for this tool.")) self.layout.addWidget(self.param_label) @@ -531,7 +531,7 @@ class OptimalUI: # ############################################################################################################# # Results Frame # ############################################################################################################# - res_label = FCLabel('%s' % _("Minimum distance")) + res_label = FCLabel('%s' % _("Minimum distance"), color='green', bold=True) res_label.setToolTip(_("Display minimum distance between copper features.")) self.layout.addWidget(res_label) @@ -595,7 +595,7 @@ class OptimalUI: # ############################################################################################################# # Other Distances # ############################################################################################################# - self.title_second_res_label = FCLabel('%s' % _("Other distances")) + self.title_second_res_label = FCLabel('%s' % _("Other distances"), color='magenta', bold=True) self.title_second_res_label.setToolTip(_("Will display other distances in the Gerber file ordered from\n" "the minimum to the maximum, not including the absolute minimum.")) self.layout.addWidget(self.title_second_res_label) diff --git a/appPlugins/ToolPaint.py b/appPlugins/ToolPaint.py index c8f4e059..620e9d2a 100644 --- a/appPlugins/ToolPaint.py +++ b/appPlugins/ToolPaint.py @@ -2946,7 +2946,7 @@ class PaintUI: # ############################################################################################################# # Source Object for Paint Frame # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip( _("Source object for milling operation.") ) @@ -2996,7 +2996,7 @@ class PaintUI: # Tool Table Frame # ############################################################################################################# # ### Tools ## ## - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip( _("Tools pool from which the algorithm\n" "will pick the ones used for painting.") @@ -3243,7 +3243,7 @@ class PaintUI: # General Parameters Frame # ############################################################################################################# # General Parameters - self.gen_param_label = FCLabel('%s' % _("Common Parameters")) + self.gen_param_label = FCLabel('%s' % _("Common Parameters"), color='indigo', bold=True) self.gen_param_label.setToolTip(_("Parameters that are common for all tools.")) self.tools_box.addWidget(self.gen_param_label) diff --git a/appPlugins/ToolPanelize.py b/appPlugins/ToolPanelize.py index 6936cf4d..6bb55144 100644 --- a/appPlugins/ToolPanelize.py +++ b/appPlugins/ToolPanelize.py @@ -1160,7 +1160,7 @@ class PanelizeUI: # ############################################################################################################# # Source Object Frame # ############################################################################################################# - self.object_label = FCLabel('%s' % _("Source Object")) + self.object_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.object_label.setToolTip( _("Specify the type of object to be panelized\n" "It can be of type: Gerber, Excellon or Geometry.\n" @@ -1205,7 +1205,7 @@ class PanelizeUI: # Reference Object Frame # ############################################################################################################# # Type of box Panel object - self.box_label = FCLabel('%s' % _("Reference")) + self.box_label = FCLabel('%s' % _("Reference"), color='green', bold=True) self.box_label.setToolTip( _("Choose the reference for panelization:\n" "- Object = the bounding box of a different object\n" @@ -1263,7 +1263,7 @@ class PanelizeUI: # ############################################################################################################# # Panel Data Frame # ############################################################################################################# - panel_data_label = FCLabel('%s' % _("Panel Data")) + panel_data_label = FCLabel('%s' % _("Panel Data"), color='red', bold=True) panel_data_label.setToolTip( _("This informations will shape the resulting panel.\n" "The number of rows and columns will set how many\n" @@ -1331,7 +1331,7 @@ class PanelizeUI: # ############################################################################################################# # COMMON PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip(_("Parameters that are common for all tools.")) self.tools_box.addWidget(self.param_label) diff --git a/appPlugins/ToolPunchGerber.py b/appPlugins/ToolPunchGerber.py index 29888ac2..325bb021 100644 --- a/appPlugins/ToolPunchGerber.py +++ b/appPlugins/ToolPunchGerber.py @@ -2027,7 +2027,7 @@ class PunchUI: # ############################################################################################################# # Source Object Frame # ############################################################################################################# - self.obj_combo_label = FCLabel('%s' % _("Source Object")) + self.obj_combo_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.obj_combo_label.setToolTip('%s.' % _("Gerber into which to punch holes")) self.tools_box.addWidget(self.obj_combo_label) @@ -2044,7 +2044,7 @@ class PunchUI: grid0.addWidget(self.gerber_object_combo, 0, 0, 1, 2) - self.padt_label = FCLabel('%s' % _("Processed Pads Type")) + self.padt_label = FCLabel('%s' % _("Processed Pads Type"), color='blue', bold=True) self.padt_label.setToolTip( _("The type of pads shape to be processed.\n" "If the PCB has many SMD pads with rectangular pads,\n" @@ -2140,7 +2140,7 @@ class PunchUI: # ############################################################################################################# # Method Frame # ############################################################################################################# - self.method_label = FCLabel('%s' % _("Method")) + self.method_label = FCLabel('%s' % _("Method"), color='red', bold=True) self.method_label.setToolTip( _("The punch hole source can be:\n" "- Excellon Object-> the Excellon object drills center will serve as reference.\n" @@ -2317,7 +2317,7 @@ class PunchUI: # Selection Frame # ############################################################################################################# # Selection - self.sel_label = FCLabel('%s' % _("Selection")) + self.sel_label = FCLabel('%s' % _("Selection"), color='green', bold=True) self.tools_box.addWidget(self.sel_label) self.s_frame = FCFrame() diff --git a/appPlugins/ToolQRCode.py b/appPlugins/ToolQRCode.py index b77b6359..867d50dd 100644 --- a/appPlugins/ToolQRCode.py +++ b/appPlugins/ToolQRCode.py @@ -758,7 +758,7 @@ class QRcodeUI: self.grb_object_combo.is_last = True self.grb_object_combo.obj_type = "Gerber" - self.grbobj_label = FCLabel('%s' % _("Source Object")) + self.grbobj_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.grbobj_label.setToolTip( _("Gerber Object to which the QRCode will be added.") ) @@ -770,7 +770,7 @@ class QRcodeUI: # QrCode Text Frame # ############################################################################################################# # Text box - self.text_label = FCLabel('%s' % _("QRCode Data")) + self.text_label = FCLabel('%s' % _("QRCode Data"), color='red', bold=True) self.text_label.setToolTip( _("QRCode Data. Alphanumeric text to be encoded in the QRCode.") ) @@ -798,7 +798,7 @@ class QRcodeUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.qrcode_label = FCLabel('%s' % _('Parameters')) + self.qrcode_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.qrcode_label.setToolTip( _("The parameters used to shape the QRCode.") ) @@ -910,7 +910,7 @@ class QRcodeUI: # Export Frame # ############################################################################################################# # Export QRCode - self.export_label = FCLabel('%s' % _("Export QRCode")) + self.export_label = FCLabel('%s' % _("Export QRCode"), color='darkgreen', bold=True) self.export_label.setToolTip( _("Show a set of controls allowing to export the QRCode\n" "to a SVG file or an PNG file.") diff --git a/appPlugins/ToolRulesCheck.py b/appPlugins/ToolRulesCheck.py index 9c7ab559..e248824c 100644 --- a/appPlugins/ToolRulesCheck.py +++ b/appPlugins/ToolRulesCheck.py @@ -1182,7 +1182,7 @@ class RulesUI: # ############################################################################################################# # Select All Frame # ############################################################################################################# - select_all_label = FCLabel('%s' % _("Select All")) + select_all_label = FCLabel('%s' % _("Select All"), color='CornflowerBlue', bold=True) self.layout.addWidget(select_all_label) sel_frame = FCFrame() @@ -1236,7 +1236,7 @@ class RulesUI: # ############################################################################################################# # Top Gerber Frame # ############################################################################################################# - top_label = FCLabel('%s' % _("Top")) + top_label = FCLabel('%s' % _("Top"), color='red', bold=True) self.layout.addWidget(top_label) top_frame = FCFrame() @@ -1302,7 +1302,7 @@ class RulesUI: # ############################################################################################################# # Bottom Gerber Frame # ############################################################################################################# - bottom_label = FCLabel('%s' % _("Bottom")) + bottom_label = FCLabel('%s' % _("Bottom"), color='blue', bold=True) self.layout.addWidget(bottom_label) bottom_frame = FCFrame() @@ -1368,7 +1368,7 @@ class RulesUI: # ############################################################################################################# # Outline Frame # ############################################################################################################# - outline_label = FCLabel('%s' % _("Outline")) + outline_label = FCLabel('%s' % _("Outline"), color='green', bold=True) self.layout.addWidget(outline_label) outline_frame = FCFrame() @@ -1397,7 +1397,7 @@ class RulesUI: # ############################################################################################################# # Excellon Frame # ############################################################################################################# - exc_label = FCLabel('%s' % _("Excellon")) + exc_label = FCLabel('%s' % _("Excellon"), color='brown', bold=True) exc_label.setToolTip( _("Excellon objects for which to check rules.") ) @@ -1460,7 +1460,7 @@ class RulesUI: # ############################################################################################################# # Rules Frame # ############################################################################################################# - rules_copper_label = FCLabel('%s %s' % (_("Copper"), _("Rules"))) + rules_copper_label = FCLabel('%s %s' % (_("Copper"), _("Rules")), color='darkorange', bold=True) self.layout.addWidget(rules_copper_label) copper_frame = FCFrame() @@ -1570,7 +1570,7 @@ class RulesUI: # ############################################################################################################# # Silk Frame # ############################################################################################################# - silk_copper_label = FCLabel('%s %s' % (_("Silk"), _("Rules"))) + silk_copper_label = FCLabel('%s %s' % (_("Silk"), _("Rules")), color='teal', bold=True) self.layout.addWidget(silk_copper_label) silk_frame = FCFrame() @@ -1657,7 +1657,7 @@ class RulesUI: # ############################################################################################################# # Soldermask Frame # ############################################################################################################# - sm_copper_label = FCLabel('%s %s' % (_("Soldermask"), _("Rules"))) + sm_copper_label = FCLabel('%s %s' % (_("Soldermask"), _("Rules")), color='magenta', bold=True) self.layout.addWidget(sm_copper_label) solder_frame = FCFrame() @@ -1695,7 +1695,7 @@ class RulesUI: # ############################################################################################################# # Holes Frame # ############################################################################################################# - holes_copper_label = FCLabel('%s %s' % (_("Holes"), _("Rules"))) + holes_copper_label = FCLabel('%s %s' % (_("Holes"), _("Rules")), color='brown', bold=True) self.layout.addWidget(holes_copper_label) holes_frame = FCFrame() diff --git a/appPlugins/ToolSolderPaste.py b/appPlugins/ToolSolderPaste.py index f69953fa..d95de190 100644 --- a/appPlugins/ToolSolderPaste.py +++ b/appPlugins/ToolSolderPaste.py @@ -1215,7 +1215,7 @@ class SolderUI: # ############################################################################################################# # Source Object # ############################################################################################################# - self.object_label = FCLabel('%s' % _("Source Object")) + self.object_label = FCLabel('%s' % _("Source Object"), color='darkorange', bold=True) self.object_label.setToolTip(_("Gerber Solderpaste object.")) self.tools_box.addWidget(self.object_label) @@ -1235,7 +1235,7 @@ class SolderUI: # ############################################################################################################# # Tool Table Frame # ############################################################################################################# - self.tools_table_label = FCLabel('%s' % _('Tools Table')) + self.tools_table_label = FCLabel('%s' % _("Tools Table"), color='green', bold=True) self.tools_table_label.setToolTip( _("Tools pool from which the algorithm\n" "will pick the ones used for dispensing solder paste.") @@ -1304,7 +1304,7 @@ class SolderUI: # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _('Parameters')) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip( _("Parameters used for this tool.") ) @@ -1333,7 +1333,7 @@ class SolderUI: # ############################################################################################################# # Dispense Frame # ############################################################################################################# - self.disp_lbl = FCLabel('%s' % _('Dispense')) + self.disp_lbl = FCLabel('%s' % _("Dispense"), color='tomato', bold=True) self.tools_box.addWidget(self.disp_lbl) disp_frame = FCFrame() @@ -1384,7 +1384,7 @@ class SolderUI: # ############################################################################################################# # Toolchange Frame # ############################################################################################################# - self.toolchnage_lbl = FCLabel('%s' % _("Tool change")) + self.toolchnage_lbl = FCLabel('%s' % _("Tool change"), color='indigo', bold=True) self.tools_box.addWidget(self.toolchnage_lbl) tc_frame = FCFrame() @@ -1419,7 +1419,7 @@ class SolderUI: # ############################################################################################################# # Feedrate Frame # ############################################################################################################# - fr_lbl = FCLabel('%s' % _("Feedrate")) + fr_lbl = FCLabel('%s' % _("Feedrate"), color='red', bold=True) self.tools_box.addWidget(fr_lbl) fr_frame = FCFrame() @@ -1472,7 +1472,7 @@ class SolderUI: # ############################################################################################################# # Spindle Forward Frame # ############################################################################################################# - sp_fw_lbl = FCLabel('%s' % _("Forward")) + sp_fw_lbl = FCLabel('%s' % _("Forward"), color='blue', bold=True) self.tools_box.addWidget(sp_fw_lbl) sp_fw_frame = FCFrame() @@ -1510,7 +1510,7 @@ class SolderUI: # ############################################################################################################# # Spindle Reverse Frame # ############################################################################################################# - sp_rev_lbl = FCLabel('%s' % _("Reverse")) + sp_rev_lbl = FCLabel('%s' % _("Reverse"), color='teal', bold=True) self.tools_box.addWidget(sp_rev_lbl) sp_rev_frame = FCFrame() @@ -1566,7 +1566,7 @@ class SolderUI: # ############################################################################################################# # Geometry Frame # ############################################################################################################# - geo_lbl = FCLabel('%s' % _("Geometry")) + geo_lbl = FCLabel('%s' % _("Geometry"), color='red', bold=True) self.tools_box.addWidget(geo_lbl) geo_frame = FCFrame() @@ -1607,7 +1607,7 @@ class SolderUI: # ############################################################################################################# # CNCJob Frame # ############################################################################################################# - cnc_lbl = FCLabel('%s' % _("CNCJob")) + cnc_lbl = FCLabel('%s' % _("CNCJob"), color='brown', bold=True) self.tools_box.addWidget(cnc_lbl) cnc_frame = FCFrame() diff --git a/appPlugins/ToolSub.py b/appPlugins/ToolSub.py index a973a280..a6b42da3 100644 --- a/appPlugins/ToolSub.py +++ b/appPlugins/ToolSub.py @@ -807,7 +807,7 @@ class SubUI: # ############################################################################################################# # COMMON PARAMETERS Frame # ############################################################################################################# - self.param_label = FCLabel('%s' % _("Parameters")) + self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.param_label.setToolTip(_("Parameters that are common for all tools.")) self.tools_box.addWidget(self.param_label) @@ -827,7 +827,7 @@ class SubUI: # ############################################################################################################# # Gerber Subtraction Frame # ############################################################################################################# - self.grb_label = FCLabel('%s' % _("Gerber")) + self.grb_label = FCLabel('%s' % _("Gerber"), color='green', bold=True) self.tools_box.addWidget(self.grb_label) grb_frame = FCFrame() @@ -892,7 +892,7 @@ class SubUI: # ############################################################################################################# # Geometry Subtraction Frame # ############################################################################################################# - self.geo_label = FCLabel('%s' % _("Geometry")) + self.geo_label = FCLabel('%s' % _("Geometry"), color='red', bold=True) self.tools_box.addWidget(self.geo_label) geo_frame = FCFrame() diff --git a/appPlugins/ToolTransform.py b/appPlugins/ToolTransform.py index 70402a63..3a495e0c 100644 --- a/appPlugins/ToolTransform.py +++ b/appPlugins/ToolTransform.py @@ -590,7 +590,7 @@ class TransformUI: # ############################################################################################################# # PARAMETERS # ############################################################################################################# - self.transform_label = FCLabel('%s' % _("Parameters")) + self.transform_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True) self.layout.addWidget(self.transform_label) # ############################################################################################################# @@ -671,7 +671,7 @@ class TransformUI: # ############################################################################################################# # Rotate Frame # ############################################################################################################# - rotate_title_lbl = FCLabel('%s' % _("Rotate")) + rotate_title_lbl = FCLabel('%s' % _("Rotate"), color='tomato', bold=True) self.layout.addWidget(rotate_title_lbl) rot_frame = FCFrame() @@ -714,7 +714,7 @@ class TransformUI: s_t_lay = QtWidgets.QHBoxLayout() self.layout.addLayout(s_t_lay) - skew_title_lbl = FCLabel('%s' % _("Skew")) + skew_title_lbl = FCLabel('%s' % _("Skew"), color='teal', bold=True) s_t_lay.addWidget(skew_title_lbl) s_t_lay.addStretch() @@ -785,7 +785,7 @@ class TransformUI: sc_t_lay = QtWidgets.QHBoxLayout() self.layout.addLayout(sc_t_lay) - scale_title_lbl = FCLabel('%s' % _("Scale")) + scale_title_lbl = FCLabel('%s' % _("Scale"), color='magenta', bold=True) sc_t_lay.addWidget(scale_title_lbl) sc_t_lay.addStretch() @@ -853,7 +853,7 @@ class TransformUI: # ############################################################################################################# # Mirror Frame # ############################################################################################################# - flip_title_label = FCLabel('%s' % self.flipName) + flip_title_label = FCLabel('%s' % self.flipName, color='brown', bold=True) self.layout.addWidget(flip_title_label) mirror_frame = FCFrame() @@ -881,7 +881,7 @@ class TransformUI: # ############################################################################################################# # Offset Frame # ############################################################################################################# - offset_title_lbl = FCLabel('%s' % _("Offset")) + offset_title_lbl = FCLabel('%s' % _("Offset"), color='green', bold=True) self.layout.addWidget(offset_title_lbl) off_frame = FCFrame() @@ -936,7 +936,7 @@ class TransformUI: b_t_lay = QtWidgets.QHBoxLayout() self.layout.addLayout(b_t_lay) - buffer_title_lbl = FCLabel('%s' % _("Buffer")) + buffer_title_lbl = FCLabel('%s' % _("Buffer"), color='indigo', bold=True) b_t_lay.addWidget(buffer_title_lbl) b_t_lay.addStretch() From 6b6367fae87f01e3ff28e029ba73cc44afc9037a Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Apr 2022 03:49:58 +0300 Subject: [PATCH 4/6] - minor changes --- CHANGELOG.md | 1 + appEditors/AppGeoEditor.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 296ac05e..62a30daf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG for FlatCAM Evo beta - in Geometry Editor, in Copy Tool added the 2D copy-as-array feature therefore finishing this editor plugin upgrade - updated the FCLabel widget - replaced all the FCLabel widgets that have color HTML with the new FCLabel widget that uses parameters for 'color' and weight +- minor changes 17.04.2022 diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index 94189b45..ea0a97e0 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -1899,8 +1899,9 @@ class FCMove(FCShapeTool): for select_shape in self.draw_app.get_selected(): geometric_data = select_shape.geo try: - for g in geometric_data: - geo_list.append(g) + w_geo = geometric_data.geoms if \ + isinstance(geometric_data, (MultiPolygon, MultiLineString)) else geometric_data + geo_list += [g for g in w_geo] except TypeError: geo_list.append(geometric_data) From b70da1b4b2de91a79b1f7eeb2583ed489dba05bf Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Apr 2022 03:54:05 +0300 Subject: [PATCH 5/6] - minor changes --- appEditors/AppGeoEditor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index ea0a97e0..8183c40d 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -1897,7 +1897,10 @@ class FCMove(FCShapeTool): def selection_bbox(self): geo_list = [] for select_shape in self.draw_app.get_selected(): - geometric_data = select_shape.geo + if select_shape: + geometric_data = select_shape.geo + else: + continue try: w_geo = geometric_data.geoms if \ isinstance(geometric_data, (MultiPolygon, MultiLineString)) else geometric_data From 7d2fd7c77a932ec41dd8b9ae4d71b335046fd76e Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Apr 2022 11:48:16 +0300 Subject: [PATCH 6/6] - added a way to allow patching FCLabel widget colors for certain cases without having to pass them each instance --- CHANGELOG.md | 1 + .../geo_plugins/GeoSimplificationPlugin.py | 2 +- appGUI/GUIElements.py | 34 +++++++++++-------- appGUI/MainGUI.py | 5 +++ .../general/GeneralAPPSetGroupUI.py | 2 +- 5 files changed, 27 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62a30daf..d0b2b544 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ CHANGELOG for FlatCAM Evo beta - updated the FCLabel widget - replaced all the FCLabel widgets that have color HTML with the new FCLabel widget that uses parameters for 'color' and weight - minor changes +- added a way to allow patching FCLabel widget colors for certain cases without having to pass them each instance 17.04.2022 diff --git a/appEditors/geo_plugins/GeoSimplificationPlugin.py b/appEditors/geo_plugins/GeoSimplificationPlugin.py index 7fe9938a..d350813e 100644 --- a/appEditors/geo_plugins/GeoSimplificationPlugin.py +++ b/appEditors/geo_plugins/GeoSimplificationPlugin.py @@ -11,7 +11,7 @@ class SimplificationTool(AppTool): Do a shape simplification for the selected geometry. """ - update_ui = pyqtSignal(list, int) + update_ui = pyqtSignal(object, int) def __init__(self, app, draw_app): AppTool.__init__(self, app) diff --git a/appGUI/GUIElements.py b/appGUI/GUIElements.py index ebd129cd..c7b01204 100644 --- a/appGUI/GUIElements.py +++ b/appGUI/GUIElements.py @@ -155,11 +155,11 @@ class RadioSetCross(QtWidgets.QWidget): self.choices[choice]['radio'].toggled.connect(self.on_toggle) # add to layout - layout.addWidget(self.choices[0]['radio'], 0, 0) # top-left - layout.addWidget(self.choices[1]['radio'], 0, 2) # top-right - layout.addWidget(self.choices[2]['radio'], 2, 0) # bottom-left - layout.addWidget(self.choices[3]['radio'], 2, 2) # bottom-right - layout.addWidget(self.choices[4]['radio'], 1, 1) # center + layout.addWidget(self.choices[0]['radio'], 0, 0) # top-left + layout.addWidget(self.choices[1]['radio'], 0, 2) # top-right + layout.addWidget(self.choices[2]['radio'], 2, 0) # bottom-left + layout.addWidget(self.choices[3]['radio'], 2, 2) # bottom-right + layout.addWidget(self.choices[4]['radio'], 1, 1) # center layout.setContentsMargins(0, 0, 0, 0) @@ -2435,9 +2435,9 @@ class FCPlainTextAreaExtended(QtWidgets.QPlainTextEdit): idx = start.start() # Select the matched text and apply the desired format cursor.setPosition(idx, QtGui.QTextCursor.MoveMode.MoveAnchor) - cursor.movePosition(QtGui.QTextCursor.MoveOperation.EndOfWord, QtGui.QTextCursor.MoveMode.KeepAnchor ,1) + cursor.movePosition(QtGui.QTextCursor.MoveOperation.EndOfWord, QtGui.QTextCursor.MoveMode.KeepAnchor, 1) cursor.mergeCharFormat(fmt) - start = pattern.search(text, idx+1) + start = pattern.search(text, idx + 1) cursor.select(QtGui.QTextCursor.SelectionType.WordUnderCursor) @@ -2624,6 +2624,7 @@ class DialogBoxChoice(QtWidgets.QDialog): if self.moving: self.move(event.globalPosition().toPoint() - self.offset.toPoint()) + class FCInputDialog(QtWidgets.QInputDialog): def __init__(self, parent=None, ok=False, val=None, title=None, text=None, min=None, max=None, decimals=None, init_val=None): @@ -2970,15 +2971,14 @@ class FCLabel(QtWidgets.QLabel): right_clicked = QtCore.pyqtSignal(bool) middle_clicked = QtCore.pyqtSignal(bool) - def __init__(self, title=None, color=None, color_callback=None, bold=None, parent=None): + + def __init__(self, title=None, color=None, bold=None, parent=None): """ :param title: the label's text :type title: str :param color: text color :type color: str - :param color_callback: function to alter the color - :type color_callback: function :param bold: the text weight :type bold: bool :param parent: parent of this widget @@ -2987,8 +2987,8 @@ class FCLabel(QtWidgets.QLabel): super(FCLabel, self).__init__(parent) - if color and color_callback: - color = color_callback(color) + if color: + color = self.patching_text_color(color) if isinstance(title, str): if color and not bold: @@ -3005,6 +3005,9 @@ class FCLabel(QtWidgets.QLabel): self.middle_clicked_state = False self.right_clicked_state = False + def patching_text_color(self, color): + return color + def mousePressEvent(self, event): if event.button() == Qt.MouseButton.LeftButton: self.clicked_state = not self.clicked_state @@ -5723,19 +5726,20 @@ class FCMessageBox(QtWidgets.QMessageBox): """ Frameless QMessageBox """ + def __init__(self, *args, **kwargs): super(FCMessageBox, self).__init__(*args, **kwargs) self.offset = None self.moving = None self.setWindowFlags(self.windowFlags() | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowSystemMenuHint) - # "background-color: palette(base); " + # "background-color: palette(base); " self.setStyleSheet( "QDialog { " "border: 1px solid palette(shadow); " "}" ) - + def mousePressEvent(self, event): if event.button() == Qt.MouseButton.LeftButton: self.moving = True @@ -5791,7 +5795,7 @@ class FCDate(QtWidgets.QDateEdit): date = self.date() date_formated = date.toString(QtCore.Qt.DateFormat.ISODate) return date_formated - + def message_dialog(title, message, kind="info", parent=None): """ diff --git a/appGUI/MainGUI.py b/appGUI/MainGUI.py index 1bd9d30a..56bd706b 100644 --- a/appGUI/MainGUI.py +++ b/appGUI/MainGUI.py @@ -52,6 +52,9 @@ class MainGUI(QtWidgets.QMainWindow): final_save = QtCore.pyqtSignal(name='saveBeforeExit') # screenChanged = QtCore.pyqtSignal(QtGui.QScreen, QtGui.QScreen) + def theme_safe_color(self, color): + return color + # https://www.w3.org/TR/SVG11/types.html#ColorKeywords def __init__(self, app): super(MainGUI, self).__init__() @@ -60,6 +63,8 @@ class MainGUI(QtWidgets.QMainWindow): self.app = app self.decimals = self.app.decimals + FCLabel.patching_text_color = self.theme_safe_color + # Divine icon pack by Ipapun @ finicons.com # ####################################################################### diff --git a/appGUI/preferences/general/GeneralAPPSetGroupUI.py b/appGUI/preferences/general/GeneralAPPSetGroupUI.py index a307011e..44fd77c4 100644 --- a/appGUI/preferences/general/GeneralAPPSetGroupUI.py +++ b/appGUI/preferences/general/GeneralAPPSetGroupUI.py @@ -408,7 +408,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI): # ############################################################################################################# # Parameters Frame # ############################################################################################################# - self.par_label = FCLabel('%s' % _('Parameters')) + self.par_label = FCLabel(_('Parameters'), color='blue', bold=True) self.layout.addWidget(self.par_label) par_frame = FCFrame()