- replaced all the FCLabel widgets that have color HTML with the new FCLabel widget that uses parameters for 'color' and weight

This commit is contained in:
Marius Stanciu
2022-04-18 03:41:04 +03:00
committed by Marius
parent 04357843fe
commit d8a0be84a3
79 changed files with 263 additions and 264 deletions

View File

@@ -2027,7 +2027,7 @@ class PunchUI:
# #############################################################################################################
# Source Object Frame
# #############################################################################################################
self.obj_combo_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _("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('<span style="color:blue;"><b>%s</b></span>' % _("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('<span style="color:red;"><b>%s</b></span>' % _("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('<span style="color:green;"><b>%s</b></span>' % _("Selection"))
self.sel_label = FCLabel('%s' % _("Selection"), color='green', bold=True)
self.tools_box.addWidget(self.sel_label)
self.s_frame = FCFrame()