FCLabel behavior modified to match updated method based on PR discussion

This commit is contained in:
Ali Khalil
2022-04-18 09:18:17 +03:00
parent 5cc869c1fd
commit 84cdc87030
83 changed files with 641 additions and 363 deletions

View File

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