- 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

@@ -414,7 +414,7 @@ class AlignUI:
# #############################################################################################################
# Moving Object Frame
# #############################################################################################################
self.aligned_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("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('<span style="color:red;"><b>%s</b></span>' % _("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('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
self.tools_box.addWidget(self.param_label)
par_frame = FCFrame()