- 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

@@ -24,7 +24,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
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"
@@ -101,7 +101,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
],
orientation='vertical',
compact=True)
self.method_label = FCLabel('<span style="color:green;"><b>%s:</b></span>' % _("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('<span style="color:teal;"><b>%s</b></span>' % _("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('<span style="color:darkorange;"><b>%s</b></span>' % _("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('<span style="color:indigo;"><b>%s</b></span>' % _("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('<span style="color:magenta;"><b>%s</b></span>' % _("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('<span style="color:brown;"><b>%s</b></span>' % _("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)