FCLabel behavior modified to match updated method based on PR discussion
This commit is contained in:
@@ -37,7 +37,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
|
||||
# Grid Settings Frame
|
||||
# #############################################################################################################
|
||||
# GRID Settings
|
||||
self.grid_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Grid Settings')))
|
||||
self.grid_label = FCLabel('%s' % _("Grid Settings"), color='magenta', bold=True)
|
||||
self.layout.addWidget(self.grid_label)
|
||||
|
||||
grids_frame = FCFrame()
|
||||
@@ -90,7 +90,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
|
||||
# Workspace Frame
|
||||
# #############################################################################################################
|
||||
# Workspace
|
||||
self.workspace_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Workspace Settings')))
|
||||
self.workspace_label = FCLabel('%s' % _("Workspace Settings"), color='brown', bold=True)
|
||||
self.layout.addWidget(self.workspace_label)
|
||||
|
||||
wk_frame = FCFrame()
|
||||
@@ -191,7 +191,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
|
||||
# Font Frame
|
||||
# #############################################################################################################
|
||||
# Font Size
|
||||
self.font_size_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Font Size')))
|
||||
self.font_size_label = FCLabel('%s' % _("Font Size"), color='green', bold=True)
|
||||
self.layout.addWidget(self.font_size_label)
|
||||
|
||||
fnt_frame = FCFrame()
|
||||
@@ -283,7 +283,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
|
||||
# Axis Frame
|
||||
# #############################################################################################################
|
||||
# Axis Size
|
||||
self.axis_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Axis')))
|
||||
self.axis_label = FCLabel('%s' % _("Axis"), color='brown', bold=True)
|
||||
self.layout.addWidget(self.axis_label)
|
||||
|
||||
ax_frame = FCFrame()
|
||||
@@ -305,7 +305,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Mouse Frame
|
||||
# #############################################################################################################
|
||||
self.mouse_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Mouse Settings')))
|
||||
self.mouse_lbl = FCLabel('%s' % _("Mouse Settings"), color='darkorange', bold=True)
|
||||
self.layout.addWidget(self.mouse_lbl)
|
||||
|
||||
m_frame = FCFrame()
|
||||
|
||||
@@ -28,7 +28,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Grid0 Frame
|
||||
# #############################################################################################################
|
||||
self.unitslabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('red'), _('Units')))
|
||||
self.unitslabel = FCLabel('%s' % _("Units"), color='red', bold=True)
|
||||
self.unitslabel.setToolTip(_("The default value for the application units.\n"
|
||||
"Whatever is selected here is set every time\n"
|
||||
"the application is started."))
|
||||
@@ -76,7 +76,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
grid0.addWidget(self.precision_inch_label, 4, 0)
|
||||
grid0.addWidget(self.precision_inch_entry, 4, 1)
|
||||
|
||||
self.par_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
|
||||
self.par_label = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
|
||||
self.layout.addWidget(self.par_label)
|
||||
|
||||
# #############################################################################################################
|
||||
@@ -166,7 +166,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Grid0 Frame
|
||||
# #############################################################################################################
|
||||
self.app_level_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('red'), _('Application Level')))
|
||||
self.app_level_label = FCLabel('%s' % _("Application Level"), color='red', bold=True)
|
||||
self.app_level_label.setToolTip(_("Choose the default level of usage for FlatCAM.\n"
|
||||
"BASIC level -> reduced functionality, best for beginner's.\n"
|
||||
"ADVANCED level -> full functionality.\n\n"
|
||||
@@ -189,7 +189,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
# Grid3 Frame
|
||||
# #############################################################################################################
|
||||
# Languages for FlatCAM
|
||||
self.languagelabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('DarkCyan'), _('Languages')))
|
||||
self.languagelabel = FCLabel('%s' % _("Languages"), color='DarkCyan', bold=True)
|
||||
self.languagelabel.setToolTip(_("Set the language used throughout FlatCAM."))
|
||||
self.layout.addWidget(self.languagelabel)
|
||||
|
||||
@@ -213,7 +213,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
# ----------- APPLICATION STARTUP SETTINGS ------------------
|
||||
# -----------------------------------------------------------
|
||||
|
||||
self.startup_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Startup Settings')))
|
||||
self.startup_label = FCLabel('%s' % _("Startup Settings"), color='green', bold=True)
|
||||
self.layout.addWidget(self.startup_label)
|
||||
|
||||
# #############################################################################################################
|
||||
@@ -284,7 +284,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
self.ois_version_check = OptionalInputSection(self.version_check_cb, [self.send_stats_cb])
|
||||
|
||||
# Save Settings
|
||||
self.save_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('purple'), _("Save Settings")))
|
||||
self.save_label = FCLabel('%s' % _("Save Settings"), color='purple', bold=True)
|
||||
self.layout.addWidget(self.save_label)
|
||||
|
||||
# #############################################################################################################
|
||||
@@ -346,7 +346,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
|
||||
|
||||
# self.as_ois = OptionalInputSection(self.autosave_cb, [self.autosave_label, self.autosave_entry], True)
|
||||
|
||||
self.pdf_param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('orange'), _("Text to PDF parameters")))
|
||||
self.pdf_param_label = FCLabel('%s' % _("Text to PDF parameters"), color='orange', bold=True)
|
||||
self.pdf_param_label.setToolTip(
|
||||
_("Used when saving text in Code Editor or in FlatCAM Document objects.")
|
||||
)
|
||||
|
||||
@@ -22,7 +22,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
|
||||
self.decimals = app.decimals
|
||||
self.options = app.options
|
||||
|
||||
self.param_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
|
||||
self.param_lbl = FCLabel('%s' % _("Parameters"), color='blue', bold=True)
|
||||
self.layout.addWidget(self.param_lbl)
|
||||
|
||||
# #############################################################################################################
|
||||
@@ -151,7 +151,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
|
||||
# #############################################################################################################
|
||||
# Grid1 Frame
|
||||
# #############################################################################################################
|
||||
self.color_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Colors")))
|
||||
self.color_lbl = FCLabel('%s' % _("Colors"), color='teal', bold=True)
|
||||
self.layout.addWidget(self.color_lbl)
|
||||
|
||||
color_frame = FCFrame()
|
||||
|
||||
Reference in New Issue
Block a user