FCLabel behavior modified to match updated method based on PR discussion
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user