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

@@ -23,7 +23,7 @@ class CNCJobAdvOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.export_gcode_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.export_gcode_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
self.export_gcode_label.setToolTip(
_("Export and save G-Code to\n"
"make this object to a file.")

View File

@@ -25,7 +25,7 @@ class CNCJobEditorPrefGroupUI(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 Editor parameters.")
)

View File

@@ -24,7 +24,7 @@ class CNCJobGenPrefGroupUI(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()
@@ -71,7 +71,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Decimals Frame
# #############################################################################################################
self.layout.addWidget(FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("G-code Decimals"))))
self.layout.addWidget(FCLabel('%s' % _("G-code Decimals"), color='teal', bold=True))
dec_frame = FCFrame()
self.layout.addWidget(dec_frame)
@@ -141,7 +141,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Travel Frame
# #############################################################################################################
self.travel_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Travel Line Color')))
self.travel_color_label = FCLabel('%s' % _("Travel Line Color"), color='green', bold=True)
self.layout.addWidget(self.travel_color_label)
travel_frame = FCFrame()
@@ -190,7 +190,7 @@ class CNCJobGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Object Color Frame
# #############################################################################################################
self.cnc_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Object Color')))
self.cnc_color_label = FCLabel('%s' % _("Object Color"), color='darkorange', bold=True)
self.layout.addWidget(self.cnc_color_label)
obj_frame = FCFrame()

View File

@@ -25,7 +25,7 @@ class CNCJobOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# GCode Frame
# #############################################################################################################
self.export_gcode_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Export G-Code")))
self.export_gcode_label = FCLabel('%s' % _("Export G-Code"), color='brown', bold=True)
self.export_gcode_label.setToolTip(
_("Export and save G-Code to\n"
"make this object to a file.")

View File

@@ -22,7 +22,7 @@ class CNCJobPPGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.comp_gcode_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Compensation")))
self.comp_gcode_label = FCLabel('%s' % _("Compensation"), color='blue', bold=True)
self.comp_gcode_label.setToolTip(
_("Compensate CNC bed issues.")
)