FCLabel behavior modified to match updated method based on PR discussion
This commit is contained in:
@@ -26,7 +26,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
# Gerber Editor 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 Gerber Editor parameters.")
|
||||
)
|
||||
@@ -118,7 +118,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Linear Pad Array Frame
|
||||
# #############################################################################################################
|
||||
self.grb_array_linear_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Linear Pad Array')))
|
||||
self.grb_array_linear_label = FCLabel('%s' % _("Linear Pad Array"), color='brown', bold=True)
|
||||
self.layout.addWidget(self.grb_array_linear_label)
|
||||
|
||||
lin_frame = FCFrame()
|
||||
@@ -172,7 +172,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Circular Pad Array Frame
|
||||
# #############################################################################################################
|
||||
self.grb_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Circular Pad Array')))
|
||||
self.grb_array_circ_label = FCLabel('%s' % _("Circular Pad Array"), color='green', bold=True)
|
||||
self.layout.addWidget(self.grb_array_circ_label)
|
||||
|
||||
circ_frame = FCFrame()
|
||||
@@ -212,7 +212,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Buffer Frame
|
||||
# #############################################################################################################
|
||||
self.grb_array_tools_b_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Buffer Tool')))
|
||||
self.grb_array_tools_b_label = FCLabel('%s' % _("Buffer Tool"), color='darkorange', bold=True)
|
||||
self.layout.addWidget(self.grb_array_tools_b_label)
|
||||
|
||||
buff_frame = FCFrame()
|
||||
@@ -237,7 +237,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Scale Frame
|
||||
# #############################################################################################################
|
||||
self.grb_array_tools_s_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Scale Tool')))
|
||||
self.grb_array_tools_s_label = FCLabel('%s' % _("Scale Tool"), color='magenta', bold=True)
|
||||
self.layout.addWidget(self.grb_array_tools_s_label)
|
||||
|
||||
scale_frame = FCFrame()
|
||||
@@ -262,7 +262,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Mark Area Frame
|
||||
# #############################################################################################################
|
||||
self.grb_array_tools_ma_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Mark Area Tool')))
|
||||
self.grb_array_tools_ma_label = FCLabel('%s' % _("Mark Area Tool"), color='blue', bold=True)
|
||||
self.layout.addWidget(self.grb_array_tools_ma_label)
|
||||
|
||||
ma_frame = FCFrame()
|
||||
|
||||
@@ -25,7 +25,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
self.options = app.options
|
||||
|
||||
# ## Plot options
|
||||
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)
|
||||
|
||||
# #############################################################################################################
|
||||
@@ -77,7 +77,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
|
||||
# Default format for Gerber
|
||||
self.gerber_default_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Default Values')))
|
||||
self.gerber_default_label = FCLabel('%s' % _("Default Values"), color='green', bold=True)
|
||||
self.gerber_default_label.setToolTip(
|
||||
_("Those values will be used as fallback values\n"
|
||||
"in case that they are not found in the Gerber file.")
|
||||
@@ -134,7 +134,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Parameters Frame
|
||||
# #############################################################################################################
|
||||
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _('Parameters')))
|
||||
self.param_label = FCLabel('%s' % _("Parameters"), color='indigo', bold=True)
|
||||
self.layout.addWidget(self.param_label)
|
||||
|
||||
par_frame = FCFrame()
|
||||
@@ -173,7 +173,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
# Layers Frame
|
||||
# #############################################################################################################
|
||||
# Layers label
|
||||
self.layers_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Layers')))
|
||||
self.layers_label = FCLabel('%s' % _("Layers"), color='magenta', bold=True)
|
||||
self.layout.addWidget(self.layers_label)
|
||||
|
||||
layers_frame = FCFrame()
|
||||
@@ -220,7 +220,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
|
||||
# Object Frame
|
||||
# #############################################################################################################
|
||||
# Gerber Object Color
|
||||
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()
|
||||
|
||||
@@ -25,7 +25,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Non-copper Regions Frame
|
||||
# #############################################################################################################
|
||||
self.clearcopper_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Non-copper regions")))
|
||||
self.clearcopper_label = FCLabel('%s' % _("Non-copper regions"), color='blue', bold=True)
|
||||
self.clearcopper_label.setToolTip(
|
||||
_("Create polygons covering the\n"
|
||||
"areas without copper on the PCB.\n"
|
||||
@@ -68,7 +68,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Bounding Box Frame
|
||||
# #############################################################################################################
|
||||
self.boundingbox_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Bounding Box')))
|
||||
self.boundingbox_label = FCLabel('%s' % _("Bounding Box"), color='brown', bold=True)
|
||||
self.layout.addWidget(self.boundingbox_label)
|
||||
|
||||
bb_frame = FCFrame()
|
||||
|
||||
Reference in New Issue
Block a user