FCLabel behavior modified to match updated method based on PR discussion
This commit is contained in:
@@ -24,7 +24,7 @@ class ExcellonAdvOptPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# PARAMETERS Frame
|
||||
# #############################################################################################################
|
||||
self.exc_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _('Advanced Options')))
|
||||
self.exc_label = FCLabel('%s' % _("Advanced Options"), color='indigo', bold=True)
|
||||
self.exc_label.setToolTip(
|
||||
_("A list of advanced parameters.\n"
|
||||
"Those parameters are available only for\n"
|
||||
|
||||
@@ -23,7 +23,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# 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.param_label.setToolTip(
|
||||
_("A list of Excellon Editor parameters.")
|
||||
)
|
||||
@@ -79,7 +79,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Linear Array Frame
|
||||
# #############################################################################################################
|
||||
self.drill_array_linear_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Linear Drill Array')))
|
||||
self.drill_array_linear_label = FCLabel('%s' % _("Linear Drill Array"), color='brown', bold=True)
|
||||
self.layout.addWidget(self.drill_array_linear_label)
|
||||
|
||||
lin_frame = FCFrame()
|
||||
@@ -134,7 +134,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Circular Array Frame
|
||||
# #############################################################################################################
|
||||
self.drill_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Circular Drill Array')))
|
||||
self.drill_array_circ_label = FCLabel('%s' % _("Circular Drill Array"), color='green', bold=True)
|
||||
self.layout.addWidget(self.drill_array_circ_label)
|
||||
|
||||
circ_frame = FCFrame()
|
||||
@@ -173,7 +173,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Slots Frame
|
||||
# #############################################################################################################
|
||||
self.drill_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Slots')))
|
||||
self.drill_array_circ_label = FCLabel('%s' % _("Slots"), color='darkorange', bold=True)
|
||||
self.layout.addWidget(self.drill_array_circ_label)
|
||||
|
||||
slots_frame = FCFrame()
|
||||
@@ -236,7 +236,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Slots Array Frame
|
||||
# #############################################################################################################
|
||||
self.slot_array_linear_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Linear Slot Array')))
|
||||
self.slot_array_linear_label = FCLabel('%s' % _("Linear Slot Array"), color='magenta', bold=True)
|
||||
self.layout.addWidget(self.slot_array_linear_label)
|
||||
|
||||
slot_array_frame = FCFrame()
|
||||
@@ -306,7 +306,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Circular Slot Array Frame
|
||||
# #############################################################################################################
|
||||
self.slot_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Circular Slot Array')))
|
||||
self.slot_array_circ_label = FCLabel('%s' % _("Circular Slot Array"), color='blue', bold=True)
|
||||
self.layout.addWidget(self.slot_array_circ_label)
|
||||
|
||||
circ_slot_frame = FCFrame()
|
||||
|
||||
@@ -23,7 +23,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Export Frame
|
||||
# #############################################################################################################
|
||||
self.export_options_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Export Options")))
|
||||
self.export_options_label = FCLabel('%s' % _("Export Options"), color='brown', bold=True)
|
||||
self.export_options_label.setToolTip(
|
||||
_("The parameters set here are used in the file exported\n"
|
||||
"when using the File -> Export -> Export Excellon menu entry.")
|
||||
|
||||
@@ -27,7 +27,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Plot Frame
|
||||
# #############################################################################################################
|
||||
self.plot_options_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Plot Options")))
|
||||
self.plot_options_label = FCLabel('%s' % _("Plot Options"), color='blue', bold=True)
|
||||
self.layout.addWidget(self.plot_options_label)
|
||||
|
||||
plot_frame = FCFrame()
|
||||
@@ -77,7 +77,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Excellon Format Frame
|
||||
# #############################################################################################################
|
||||
self.excellon_format_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Excellon Format")))
|
||||
self.excellon_format_label = FCLabel('%s' % _("Excellon Format"), color='green', bold=True)
|
||||
self.excellon_format_label.setToolTip(
|
||||
_("The NC drill files, usually named Excellon files\n"
|
||||
"are files that can be found in different formats.\n"
|
||||
@@ -220,7 +220,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Optimization Frame
|
||||
# #############################################################################################################
|
||||
self.excellon_general_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Path Optimization")))
|
||||
self.excellon_general_label = FCLabel('%s' % _("Path Optimization"), color='teal', bold=True)
|
||||
self.layout.addWidget(self.excellon_general_label)
|
||||
|
||||
opt_frame = FCFrame()
|
||||
@@ -272,7 +272,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
# Fusing Frame
|
||||
# #############################################################################################################
|
||||
# Fuse Tools
|
||||
self.join_geo_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Join Option')))
|
||||
self.join_geo_label = FCLabel('%s' % _("Join Option"), color='magenta', bold=True)
|
||||
self.layout.addWidget(self.join_geo_label)
|
||||
|
||||
fuse_frame = FCFrame()
|
||||
@@ -291,7 +291,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Object Color Frame
|
||||
# #############################################################################################################
|
||||
self.gerber_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Object Color')))
|
||||
self.gerber_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True)
|
||||
self.layout.addWidget(self.gerber_color_label)
|
||||
|
||||
obj_frame = FCFrame()
|
||||
|
||||
@@ -24,7 +24,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# PARAMETERS Frame
|
||||
# #############################################################################################################
|
||||
self.cncjob_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
|
||||
self.cncjob_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
|
||||
self.cncjob_label.setToolTip(
|
||||
_("Parameters used to create a CNC Job object\n"
|
||||
"for this drill object.")
|
||||
|
||||
Reference in New Issue
Block a user