FCLabel behavior modified to match updated method based on PR discussion
This commit is contained in:
@@ -24,7 +24,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Processed Pads Frame
|
||||
# #############################################################################################################
|
||||
self.padt_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("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:%s;"><b>%s:</b></span>' % (self.app.theme_safe_color('green'), _("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:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("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:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _("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:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Proportional Diameter")))
|
||||
self.prop_label = FCLabel('%s' % _("Proportional Diameter"), color='indigo', bold=True)
|
||||
self.layout.addWidget(self.prop_label)
|
||||
|
||||
prop_frame = FCFrame()
|
||||
|
||||
Reference in New Issue
Block a user