- 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

@@ -24,7 +24,7 @@ class GeometryAdvOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Advanced Options Frame
# #############################################################################################################
self.geo_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _('Advanced Options'))
self.geo_label = FCLabel('%s' % _("Advanced Options"), color='indigo', bold=True)
self.geo_label.setToolTip(
_("A list of advanced parameters.\n"
"Those parameters are available only for\n"

View File

@@ -24,7 +24,7 @@ class GeometryEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# 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.param_label.setToolTip(
_("A list of Editor parameters.")
)

View File

@@ -23,7 +23,7 @@ class GeometryExpPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Export Frame
# #############################################################################################################
self.export_options_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("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 DXF menu entry.")

View File

@@ -26,7 +26,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Plot Frame
# #############################################################################################################
self.plot_options_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Plot Options"))
self.plot_options_label = FCLabel('%s' % _("Plot Options"), color='blue', bold=True)
self.layout.addWidget(self.plot_options_label)
plot_frame = FCFrame()
@@ -69,7 +69,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Optimization Frame
# #############################################################################################################
self.opt_label = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _("Path Optimization"))
self.opt_label = FCLabel('%s' % _("Path Optimization"), color='teal', bold=True)
self.layout.addWidget(self.opt_label)
opt_frame = FCFrame()
@@ -119,7 +119,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Fuse Frame
# #############################################################################################################
self.join_geo_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Join Option'))
self.join_geo_label = FCLabel('%s' % _("Join Option"), color='magenta', bold=True)
self.layout.addWidget(self.join_geo_label)
fuse_frame = FCFrame()
@@ -138,7 +138,7 @@ class GeometryGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Object Color Frame
# #############################################################################################################
self.gerber_color_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _('Object Color'))
self.gerber_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True)
self.layout.addWidget(self.gerber_color_label)
obj_frame = FCFrame()

View File

@@ -25,7 +25,7 @@ class GeometryOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.cncjob_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.cncjob_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
self.layout.addWidget(self.cncjob_label)
param_frame = FCFrame()