- 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 Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Processed Pads 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"
@@ -102,7 +102,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
],
orientation='vertical',
compact=True)
self.hole_size_label = FCLabel('<span style="color:green;"><b>%s:</b></span>' % _("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('<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()
@@ -141,7 +141,7 @@ class Tools2PunchGerberPrefGroupUI(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"
@@ -223,7 +223,7 @@ class Tools2PunchGerberPrefGroupUI(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()