Application wide updates for dark mode support including dark canvas option and better colors

This commit is contained in:
Ali Khalil
2022-04-17 22:41:02 +03:00
parent adad500f15
commit 5cc869c1fd
93 changed files with 690 additions and 567 deletions

View File

@@ -275,7 +275,7 @@ class HeadingOptionUI(OptionUI):
self.color = color if color else ""
def build_heading_widget(self):
heading = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (str(self.color), _(self.label_text)))
heading = FCLabel('<span style="color:%s%s;"><b>%s</b></span>' % (self.app.theme_safe_color(''), str(self.color), _(self.label_text)))
heading.setToolTip(_(self.label_tooltip))
return heading

View File

@@ -74,6 +74,7 @@ class PreferencesUIManager(QtCore.QObject):
# General GUI Preferences
"global_appearance": self.ui.general_pref_form.general_gui_group.appearance_radio,
"global_dark_canvas": self.ui.general_pref_form.general_gui_group.dark_canvas_cb,
"global_layout": self.ui.general_pref_form.general_gui_group.layout_combo,
"global_hover_shape": self.ui.general_pref_form.general_gui_group.hover_cb,
"global_selection_shape": self.ui.general_pref_form.general_gui_group.selection_cb,
@@ -1070,13 +1071,19 @@ class PreferencesUIManager(QtCore.QObject):
else:
appearance = None
if appearance_settings.contains("dark_canvas"):
dark_canvas = appearance_settings.value('dark_canvas', type=bool)
else:
dark_canvas = None
should_restart = False
appearance_new_val = self.ui.general_pref_form.general_gui_group.appearance_radio.get_value()
dark_canvas_new_val = self.ui.general_pref_form.general_gui_group.dark_canvas_cb.get_value()
ge = self.defaults["global_graphic_engine"]
ge_val = self.ui.general_pref_form.general_app_group.ge_radio.get_value()
if appearance_new_val != appearance or ge != ge_val:
if appearance_new_val != appearance or ge != ge_val or dark_canvas_new_val != dark_canvas:
msgbox = FCMessageBox(parent=self.ui)
title = _("Application will restart")
txt = _("Are you sure you want to continue?")
@@ -1096,14 +1103,21 @@ class PreferencesUIManager(QtCore.QObject):
if appearance_new_val != appearance:
if response == bt_yes:
appearance_settings.setValue('appearance', appearance_new_val)
# This will write the setting to the platform specific storage.
del appearance_settings
should_restart = True
else:
self.ui.general_pref_form.general_gui_group.appearance_radio.set_value(appearance)
else:
if dark_canvas_new_val != dark_canvas:
if response == bt_yes:
appearance_settings.setValue('dark_canvas', dark_canvas_new_val)
should_restart = True
else:
self.ui.general_pref_form.general_gui_group.dark_canvas_cb.set_value(dark_canvas)
# This will write the setting to the platform specific storage.
del appearance_settings
if ge != ge_val:
if response == bt_yes:
self.defaults["global_graphic_engine"] = ge_val
should_restart = True

View File

@@ -23,7 +23,7 @@ class CNCJobAdvOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.export_gcode_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.export_gcode_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
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:blue;"><b>%s</b></span>' % _("Parameters"))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
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:blue;"><b>%s</b></span>' % _("Plot Options"))
self.plot_options_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Plot Options")))
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:teal;"><b>%s</b></span>' % _("G-code Decimals")))
self.layout.addWidget(FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("G-code Decimals"))))
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:green;"><b>%s</b></span>' % _('Travel Line Color'))
self.travel_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Travel Line Color')))
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:darkorange;"><b>%s</b></span>' % _('Object Color'))
self.cnc_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Object Color')))
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:brown;"><b>%s</b></span>' % _("Export G-Code"))
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.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:blue;"><b>%s</b></span>' % _("Compensation"))
self.comp_gcode_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Compensation")))
self.comp_gcode_label.setToolTip(
_("Compensate CNC bed issues.")
)

View File

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

View File

@@ -23,7 +23,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.param_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.param_label.setToolTip(
_("A list of Excellon Editor parameters.")
)
@@ -79,7 +79,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Linear Array Frame
# #############################################################################################################
self.drill_array_linear_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _('Linear Drill Array'))
self.drill_array_linear_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Linear Drill Array')))
self.layout.addWidget(self.drill_array_linear_label)
lin_frame = FCFrame()
@@ -134,7 +134,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Circular Array Frame
# #############################################################################################################
self.drill_array_circ_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _('Circular Drill Array'))
self.drill_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Circular Drill Array')))
self.layout.addWidget(self.drill_array_circ_label)
circ_frame = FCFrame()
@@ -173,7 +173,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Slots Frame
# #############################################################################################################
self.drill_array_circ_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _('Slots'))
self.drill_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Slots')))
self.layout.addWidget(self.drill_array_circ_label)
slots_frame = FCFrame()
@@ -236,7 +236,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Slots Array Frame
# #############################################################################################################
self.slot_array_linear_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Linear Slot Array'))
self.slot_array_linear_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Linear Slot Array')))
self.layout.addWidget(self.slot_array_linear_label)
slot_array_frame = FCFrame()
@@ -306,7 +306,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Circular Slot Array Frame
# #############################################################################################################
self.slot_array_circ_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Circular Slot Array'))
self.slot_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Circular Slot Array')))
self.layout.addWidget(self.slot_array_circ_label)
circ_slot_frame = FCFrame()

View File

@@ -23,7 +23,7 @@ class ExcellonExpPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Export Frame
# #############################################################################################################
self.export_options_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("Export Options"))
self.export_options_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Export Options")))
self.export_options_label.setToolTip(
_("The parameters set here are used in the file exported\n"
"when using the File -> Export -> Export Excellon menu entry.")

View File

@@ -27,7 +27,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Plot Frame
# #############################################################################################################
self.plot_options_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Plot Options"))
self.plot_options_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Plot Options")))
self.layout.addWidget(self.plot_options_label)
plot_frame = FCFrame()
@@ -77,7 +77,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Excellon Format Frame
# #############################################################################################################
self.excellon_format_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("Excellon Format"))
self.excellon_format_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Excellon Format")))
self.excellon_format_label.setToolTip(
_("The NC drill files, usually named Excellon files\n"
"are files that can be found in different formats.\n"
@@ -220,7 +220,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Optimization Frame
# #############################################################################################################
self.excellon_general_label = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _("Path Optimization"))
self.excellon_general_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Path Optimization")))
self.layout.addWidget(self.excellon_general_label)
opt_frame = FCFrame()
@@ -272,7 +272,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
# Fusing Frame
# #############################################################################################################
# Fuse Tools
self.join_geo_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Join Option'))
self.join_geo_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Join Option')))
self.layout.addWidget(self.join_geo_label)
fuse_frame = FCFrame()
@@ -291,7 +291,7 @@ class ExcellonGenPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Object Color Frame
# #############################################################################################################
self.gerber_color_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _('Object Color'))
self.gerber_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Object Color')))
self.layout.addWidget(self.gerber_color_label)
obj_frame = FCFrame()

View File

@@ -24,7 +24,7 @@ class ExcellonOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.cncjob_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.cncjob_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.cncjob_label.setToolTip(
_("Parameters used to create a CNC Job object\n"
"for this drill object.")

View File

@@ -26,9 +26,9 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
if theme_settings.contains("theme"):
theme = theme_settings.value('theme', type=str)
else:
theme = 'white'
theme = 'light'
if theme == 'white':
if theme == 'light':
self.resource_loc = 'assets/resources'
else:
self.resource_loc = 'assets/resources'
@@ -37,7 +37,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
# Grid Settings Frame
# #############################################################################################################
# GRID Settings
self.grid_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Grid Settings'))
self.grid_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Grid Settings')))
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:brown;"><b>%s</b></span>' % _('Workspace Settings'))
self.workspace_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Workspace Settings')))
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:green;"><b>%s</b></span>' % _('Font Size'))
self.font_size_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Font Size')))
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:brown;"><b>%s</b></span>' % _('Axis'))
self.axis_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Axis')))
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:darkorange;"><b>%s</b></span>' % _('Mouse Settings'))
self.mouse_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Mouse Settings')))
self.layout.addWidget(self.mouse_lbl)
m_frame = FCFrame()
@@ -408,7 +408,7 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.par_label = FCLabel('<b><font color="blue">%s</font></b>' % _('Parameters'))
self.par_label = FCLabel('<b><font color="%s">%s</font></b>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.layout.addWidget(self.par_label)
par_frame = FCFrame()
@@ -496,9 +496,14 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
if theme_settings.contains("theme"):
theme = theme_settings.value('theme', type=str)
else:
theme = 'white'
theme = 'light'
if theme == 'white':
if theme_settings.contains("dark_canvas"):
dark_canvas = theme_settings.value('dark_canvas', type=bool)
else:
dark_canvas = True
if theme == 'light' and not dark_canvas:
self.app.cursor_color_3D = 'black'
else:
self.app.cursor_color_3D = 'gray'
@@ -509,4 +514,4 @@ class GeneralAPPSetGroupUI(OptionsGroupUI):
def on_axis_color_entry(self):
self.app.options['global_axis_color'] = self.axis_color_entry.get_value()
self.app.plotcanvas.apply_axis_color()
self.app.plotcanvas.apply_axis_color()

View File

@@ -28,7 +28,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Grid0 Frame
# #############################################################################################################
self.unitslabel = FCLabel('<span style="color:red;"><b>%s</b></span>' % _('Units'))
self.unitslabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('red'), _('Units')))
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:blue;"><b>%s</b></span>' % _("Parameters"))
self.par_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.layout.addWidget(self.par_label)
# #############################################################################################################
@@ -166,7 +166,7 @@ class GeneralAppPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Grid0 Frame
# #############################################################################################################
self.app_level_label = FCLabel('<span style="color:red;"><b>%s</b></span>' % _('Application Level'))
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.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:DarkCyan;"><b>%s</b></span>' % _('Languages'))
self.languagelabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('DarkCyan'), _('Languages')))
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:green;"><b>%s</b></span>' % _('Startup Settings'))
self.startup_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Startup Settings')))
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:purple;"><b>%s</b></span>' % _("Save Settings"))
self.save_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('purple'), _("Save Settings")))
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:orange;"><b>%s</b></span>' % _("Text to PDF parameters"))
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.setToolTip(
_("Used when saving text in Code Editor or in FlatCAM Document objects.")
)

View File

@@ -292,9 +292,14 @@ class GeneralAppSettingsGroupUI(OptionsGroupUI2):
if theme_settings.contains("theme"):
theme = theme_settings.value('theme', type=str)
else:
theme = 'white'
theme = 'light'
if theme == 'white':
if theme_settings.contains("dark_canvas"):
dark_canvas = theme_settings.value('dark_canvas', type=bool)
else:
dark_canvas = True
if theme == 'light' and not dark_canvas:
self.app.cursor_color_3D = 'black'
else:
self.app.cursor_color_3D = 'gray'

View File

@@ -22,7 +22,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
self.decimals = app.decimals
self.options = app.options
self.param_lbl = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.param_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.layout.addWidget(self.param_lbl)
# #############################################################################################################
@@ -35,7 +35,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
par_frame.setLayout(grid0)
# Theme selection
self.appearance_label = FCLabel('%s:' % _('Theme'))
self.appearance_label = FCLabel('<b>%s</b>' % _('Theme'))
self.appearance_label.setToolTip(
_("Select a theme for the application.\n"
"It will theme the plot area.")
@@ -52,8 +52,16 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
"Dark: Dark mode")
)
grid0.addWidget(self.appearance_label, 0, 0)
grid0.addWidget(self.appearance_radio, 0, 1)
# Dark Canvas
self.dark_canvas_cb = FCCheckBox('%s' % _('Always use dark canvas'))
self.dark_canvas_cb.setToolTip(
_("Check this box to always use Dark canvas\n"
"even if Light theme is selected.")
)
grid0.addWidget(self.appearance_label, 0, 0, 1, 2)
grid0.addWidget(self.appearance_radio, 1, 0, 1, 3)
grid0.addWidget(self.dark_canvas_cb, 2, 0, 1, 3)
# self.theme_button = FCButton(_("Apply Theme"))
# self.theme_button.setToolTip(
@@ -143,7 +151,7 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Grid1 Frame
# #############################################################################################################
self.color_lbl = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _("Colors"))
self.color_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Colors")))
self.layout.addWidget(self.color_lbl)
color_frame = FCFrame()
@@ -296,6 +304,11 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
grid1.addWidget(self.proj_color_dis_l_label, 32, 0)
grid1.addWidget(self.proj_color_dis_light_entry, 32, 1)
separator_line = QtWidgets.QFrame()
separator_line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
separator_line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
grid1.addWidget(separator_line, 33, 0, 1, 2)
# Dark Theme
self.proj_settings_d_label = FCLabel('<b>%s</b> - %s' % (_('Project Items Color'), _("Dark")))
grid1.addWidget(self.proj_settings_d_label, 34, 0, 1, 2)

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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _('Advanced Options')))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Export Options")))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Plot Options")))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Path Optimization")))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Join Option')))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Object Color')))
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('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.layout.addWidget(self.cncjob_label)
param_frame = FCFrame()

View File

@@ -26,7 +26,7 @@ class GerberEditorPrefGroupUI(OptionsGroupUI):
# Gerber Editor Parameters Frame
# #############################################################################################################
self.param_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
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:brown;"><b>%s</b></span>' % _('Linear Pad Array'))
self.grb_array_linear_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Linear Pad Array')))
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:green;"><b>%s</b></span>' % _('Circular Pad Array'))
self.grb_array_circ_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _('Circular Pad Array')))
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:darkorange;"><b>%s</b></span>' % _('Buffer Tool'))
self.grb_array_tools_b_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Buffer Tool')))
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:magenta;"><b>%s</b></span>' % _('Scale Tool'))
self.grb_array_tools_s_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Scale Tool')))
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:blue;"><b>%s</b></span>' % _('Mark Area Tool'))
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.layout.addWidget(self.grb_array_tools_ma_label)
ma_frame = FCFrame()

View File

@@ -25,7 +25,7 @@ class GerberGenPrefGroupUI(OptionsGroupUI):
self.options = app.options
# ## Plot options
self.plot_options_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Plot Options"))
self.plot_options_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Plot Options")))
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:green;"><b>%s</b></span>' % _('Default Values'))
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.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:indigo;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _('Parameters')))
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:magenta;"><b>%s</b></span>' % _('Layers'))
self.layers_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Layers')))
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:darkorange;"><b>%s</b></span>' % _('Object Color'))
self.gerber_color_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Object Color')))
self.layout.addWidget(self.gerber_color_label)
obj_frame = FCFrame()

View File

@@ -25,7 +25,7 @@ class GerberOptPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Non-copper Regions Frame
# #############################################################################################################
self.clearcopper_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Non-copper regions"))
self.clearcopper_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Non-copper regions")))
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:brown;"><b>%s</b></span>' % _('Bounding Box'))
self.boundingbox_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Bounding Box')))
self.layout.addWidget(self.boundingbox_label)
bb_frame = FCFrame()

View File

@@ -25,7 +25,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.param_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.param_label.setToolTip(
_("A tool to generate a Copper Thieving that can be added\n"
"to a selected Gerber file.")
@@ -259,7 +259,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Robber Bar Parameters Frame
# #############################################################################################################
self.robber_bar_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _('Robber Bar Parameters'))
self.robber_bar_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Robber Bar Parameters')))
self.robber_bar_label.setToolTip(
_("Parameters used for the robber bar.\n"
"Robber bar = copper border to help in pattern hole plating.")
@@ -302,7 +302,7 @@ class Tools2CThievingPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# RPattern Plating Mask Parameters Frame
# #############################################################################################################
self.patern_mask_label = FCLabel('<span style="color:purple;"><b>%s</b></span>' % _('Pattern Plating Mask'))
self.patern_mask_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('purple'), _('Pattern Plating Mask')))
self.patern_mask_label.setToolTip(
_("Generate a mask for pattern plating.")
)

View File

@@ -25,7 +25,7 @@ class Tools2CalPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.param_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.param_label.setToolTip(
_("Parameters used for this tool.")
)
@@ -110,7 +110,7 @@ class Tools2CalPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Tool change Frame
# #############################################################################################################
tc_lbl = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("Tool change"))
tc_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Tool change")))
self.layout.addWidget(tc_lbl)
tc_frame = FCFrame()

View File

@@ -24,7 +24,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.padt_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Processed Pads Type"))
self.padt_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Processed Pads Type")))
self.padt_label.setToolTip(
_("The type of pads shape to be processed.\n"
"If the PCB has many SMD pads with rectangular pads,\n"
@@ -101,7 +101,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
],
orientation='vertical',
compact=True)
self.method_label = FCLabel('<span style="color:green;"><b>%s:</b></span>' % _("Method"))
self.method_label = FCLabel('<span style="color:%s;"><b>%s:</b></span>' % (self.app.theme_safe_color('green'), _("Method")))
self.method_label.setToolTip(
_("The method for processing pads. Can be:\n"
"- Fixed Diameter -> all holes will have a set size\n"
@@ -119,7 +119,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Fixed Diameter Frame
# #############################################################################################################
self.fixed_label = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _("Fixed Diameter"))
self.fixed_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Fixed Diameter")))
self.layout.addWidget(self.fixed_label)
fix_frame = FCFrame()
@@ -144,7 +144,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Annular ring Frame
# #############################################################################################################
self.ring_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _("Fixed Annular Ring"))
self.ring_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _("Fixed Annular Ring")))
self.ring_label.setToolTip(
_("The size of annular ring.\n"
"The copper sliver between the hole exterior\n"
@@ -226,7 +226,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Proportional Diameter Frame
# #############################################################################################################
self.prop_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("Proportional Diameter"))
self.prop_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Proportional Diameter")))
self.layout.addWidget(self.prop_label)
prop_frame = FCFrame()
@@ -253,7 +253,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Extract Soldermask Frame
# #############################################################################################################
self.extract_sm_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _("Extract Soldermask"))
self.extract_sm_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _("Extract Soldermask")))
self.extract_sm_label.setToolTip(
_("Extract soldermask from a given Gerber file."))
self.layout.addWidget(self.extract_sm_label)
@@ -281,7 +281,7 @@ class Tools2EDrillsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Extract CutOut Frame
# #############################################################################################################
self.extract_cut_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("Extract Cutout"))
self.extract_cut_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Extract Cutout")))
self.extract_cut_label.setToolTip(
_("Extract a cutout from a given Gerber file."))
self.layout.addWidget(self.extract_cut_label)

View File

@@ -24,7 +24,7 @@ class Tools2FiducialsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.param_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.param_label.setToolTip(
_("Parameters used for this tool.")
)
@@ -117,7 +117,7 @@ class Tools2FiducialsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Selection Frame
# #############################################################################################################
self.sel_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("Selection"))
self.sel_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Selection")))
self.layout.addWidget(self.sel_label)
s_frame = FCFrame()

View File

@@ -24,7 +24,7 @@ class Tools2InvertPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.sublabel = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.sublabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.sublabel.setToolTip(
_("A tool to invert Gerber geometry from positive to negative\n"
"and in revers.")
@@ -54,7 +54,7 @@ class Tools2InvertPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Line Join Frame
# #############################################################################################################
self.join_label = FCLabel('<span style="color:tomato;"><b>%s</b></span>' % _("Lines Join Style"))
self.join_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('tomato'), _("Lines Join Style")))
self.join_label.setToolTip(
_("The way that the lines in the object outline will be joined.\n"
"Can be:\n"

View File

@@ -24,7 +24,7 @@ class Tools2OptimalPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.optlabel = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.optlabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.optlabel.setToolTip(
_("A tool to find the minimum distance between\n"
"every two Gerber geometric elements")

View File

@@ -24,7 +24,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Processed Pads Frame
# #############################################################################################################
self.padt_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Processed Pads Type"))
self.padt_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Processed Pads Type")))
self.padt_label.setToolTip(
_("The type of pads shape to be processed.\n"
"If the PCB has many SMD pads with rectangular pads,\n"
@@ -102,7 +102,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
],
orientation='vertical',
compact=True)
self.hole_size_label = FCLabel('<span style="color:green;"><b>%s:</b></span>' % _("Method"))
self.hole_size_label = FCLabel('<span style="color:%s;"><b>%s:</b></span>' % (self.app.theme_safe_color('green'), _("Method")))
self.hole_size_label.setToolTip(
_("The punch hole source can be:\n"
"- Excellon Object-> the Excellon object drills center will serve as reference.\n"
@@ -116,7 +116,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Fixed Diameter Frame
# #############################################################################################################
self.fixed_label = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _("Fixed Diameter"))
self.fixed_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Fixed Diameter")))
self.layout.addWidget(self.fixed_label)
fix_frame = FCFrame()
@@ -141,7 +141,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Annular ring Frame
# #############################################################################################################
self.ring_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _("Fixed Annular Ring"))
self.ring_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _("Fixed Annular Ring")))
self.ring_label.setToolTip(
_("The size of annular ring.\n"
"The copper sliver between the hole exterior\n"
@@ -223,7 +223,7 @@ class Tools2PunchGerberPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Proportional Diameter Frame
# #############################################################################################################
self.prop_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("Proportional Diameter"))
self.prop_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Proportional Diameter")))
self.layout.addWidget(self.prop_label)
prop_frame = FCFrame()

View File

@@ -24,7 +24,7 @@ class Tools2QRCodePrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.qrlabel = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.qrlabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.qrlabel.setToolTip(
_("A tool to create a QRCode that can be inserted\n"
"into a selected Gerber file, or it can be exported as a file.")

View File

@@ -28,7 +28,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Rules Frame
# #############################################################################################################
rules_copper_label = FCLabel('<span style="color:darkorange;"><b>%s %s</b></span>' % (_("Copper"), _("Rules")))
rules_copper_label = FCLabel('<span style="color:%s;"><b>%s %s</b></span>' % (self.app.theme_safe_color('darkorange'), _("Copper"), _("Rules")))
self.layout.addWidget(rules_copper_label)
copper_frame = FCFrame()
@@ -127,7 +127,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Silk Frame
# #############################################################################################################
silk_copper_label = FCLabel('<span style="color:teal;"><b>%s %s</b></span>' % (_("Silk"), _("Rules")))
silk_copper_label = FCLabel('<span style="color:%s;"><b>%s %s</b></span>' % (self.app.theme_safe_color('teal'), _("Silk"), _("Rules")))
self.layout.addWidget(silk_copper_label)
silk_frame = FCFrame()
@@ -205,7 +205,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Soldermask Frame
# #############################################################################################################
sm_copper_label = FCLabel('<span style="color:magenta;"><b>%s %s</b></span>' % (_("Soldermask"), _("Rules")))
sm_copper_label = FCLabel('<span style="color:%s;"><b>%s %s</b></span>' % (self.app.theme_safe_color('magenta'), _("Soldermask"), _("Rules")))
self.layout.addWidget(sm_copper_label)
solder_frame = FCFrame()
@@ -240,7 +240,7 @@ class Tools2RulesCheckPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Holes Frame
# #############################################################################################################
holes_copper_label = FCLabel('<span style="color:brown;"><b>%s %s</b></span>' % (_("Holes"), _("Rules")))
holes_copper_label = FCLabel('<span style="color:%s;"><b>%s %s</b></span>' % (self.app.theme_safe_color('brown'), _("Holes"), _("Rules")))
self.layout.addWidget(holes_copper_label)
holes_frame = FCFrame()

View File

@@ -22,7 +22,7 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI):
self.options = app.options
# ## Board cuttout
self.dblsided_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("PCB Alignment"))
self.dblsided_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("PCB Alignment")))
self.dblsided_label.setToolTip(
_("A tool to help in creating a double sided\n"
"PCB using alignment holes.")
@@ -89,7 +89,7 @@ class Tools2sidedPrefGroupUI(OptionsGroupUI):
# Mirror Frame
# #############################################################################################################
# ### Tools ## ##
self.mirror_label = FCLabel('<span style="color:red;"><b>%s</b></span>' % _("Mirror Operation"))
self.mirror_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('red'), _("Mirror Operation")))
self.layout.addWidget(self.mirror_label)
mirror_frame = FCFrame()

View File

@@ -24,7 +24,7 @@ class ToolsCalculatorsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# V-Shape Tool Frame
# #############################################################################################################
self.vshape_tool_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("V-Shape Tool Calculator"))
self.vshape_tool_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("V-Shape Tool Calculator")))
self.vshape_tool_label.setToolTip(
_("Calculate the tool diameter for a given V-shape tool,\n"
"having the tip diameter, tip angle and\n"
@@ -83,7 +83,7 @@ class ToolsCalculatorsPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Electroplating Frame
# #############################################################################################################
self.plate_title_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("ElectroPlating Calculator"))
self.plate_title_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("ElectroPlating Calculator")))
self.plate_title_label.setToolTip(
_("This calculator is useful for those who plate the via/pad/drill holes,\n"
"using a method like graphite ink or calcium hypophosphite ink or palladium chloride.")

View File

@@ -23,7 +23,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI):
self.options = app.options
# ## Board cutout
self.board_cutout_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.board_cutout_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.board_cutout_label.setToolTip(
_("Create toolpaths to cut around\n"
"the PCB and separate it from\n"
@@ -134,7 +134,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI):
param_grid.addWidget(marginlabel, 10, 0)
param_grid.addWidget(self.cutout_margin_entry, 10, 1)
self.gaps_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("Gaps"))
self.gaps_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Gaps")))
self.layout.addWidget(self.gaps_label)
# #############################################################################################################
# Gaps Frame
@@ -260,7 +260,7 @@ class ToolsCutoutPrefGroupUI(OptionsGroupUI):
gaps_grid.addWidget(self.big_cursor_cb, 18, 0, 1, 2)
# Cut by Drilling Title
self.title_drillcut_label = FCLabel('<span style="color:red;"><b>%s</b></span>' % _('Cut by Drilling'))
self.title_drillcut_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('red'), _('Cut by Drilling')))
self.title_drillcut_label.setToolTip(_("Create a series of drill holes following a geometry line."))
self.layout.addWidget(self.title_drillcut_label)

View File

@@ -25,7 +25,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.drill_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.drill_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.drill_label.setToolTip(
_("Create CNCJob with toolpaths for drilling or milling holes.")
)
@@ -226,7 +226,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Drill Slots Frame
# #############################################################################################################
self.dslots_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _('Drilling Slots'))
self.dslots_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Drilling Slots')))
self.layout.addWidget(self.dslots_label)
ds_frame = FCFrame()
@@ -272,7 +272,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Advanced Options Frame
# #############################################################################################################
self.exc_label = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _('Advanced Options'))
self.exc_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _('Advanced Options')))
self.exc_label.setToolTip(
_("A list of advanced parameters.")
)
@@ -417,7 +417,7 @@ class ToolsDrillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Area Exclusion Frame
# #############################################################################################################
self.area_exc_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Area Exclusion'))
self.area_exc_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Area Exclusion')))
self.area_exc_label.setToolTip(
_("Area exclusion parameters.")
)

View File

@@ -25,7 +25,7 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Adjustments Frame
# #############################################################################################################
self.film_adj_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _("Adjustments"))
self.film_adj_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _("Adjustments")))
self.film_adj_label.setToolTip(
_("Compensate print distortions.")
)
@@ -44,11 +44,6 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI):
_("A value greater than 1 will compact the film\n"
"while a value less than 1 will jolt it.")
)
self.film_scale_cb.setStyleSheet(
"""
QCheckBox {font-weight: bold; color: black}
"""
)
adj_grid.addWidget(self.film_scale_cb, 2, 0, 1, 2)
# SCALE FRAME
@@ -109,11 +104,6 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI):
_("Positive values will skew to the right\n"
"while negative values will skew to the left.")
)
self.film_skew_cb.setStyleSheet(
"""
QCheckBox {font-weight: bold; color: black}
"""
)
adj_grid.addWidget(self.film_skew_cb, 8, 0, 1, 2)
# SKEW FRAME
@@ -171,11 +161,6 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI):
self.film_mirror_cb.setToolTip(
_("Mirror the film geometry on the selected axis or on both.")
)
self.film_mirror_cb.setStyleSheet(
"""
QCheckBox {font-weight: bold; color: black}
"""
)
adj_grid.addWidget(self.film_mirror_cb, 12, 0, 1, 2)
self.film_mirror_axis = RadioSet([{'label': _('X'), 'value': 'x'},
@@ -195,7 +180,7 @@ class ToolsFilmPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Parameters Frame
# #############################################################################################################
self.film_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.film_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.film_label.setToolTip(
_("Create a PCB film from a Gerber or Geometry object.\n"
"The file is saved in SVG format.")

View File

@@ -22,7 +22,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI):
self.options = app.options
# ## Clear non-copper regions
self.iso_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.iso_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.iso_label.setToolTip(
_("Create a Geometry object with\n"
"toolpaths to cut around polygons.")
@@ -135,7 +135,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI):
# Tool Frame
# #############################################################################################################
# ### Tools ## ##
self.tools_table_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("Tool Parameters"))
self.tools_table_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Tool Parameters")))
self.layout.addWidget(self.tools_table_label)
tt_frame = FCFrame()
@@ -245,7 +245,7 @@ class ToolsISOPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# General Parameters Frame
# #############################################################################################################
self.gen_param_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("Common Parameters"))
self.gen_param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Common Parameters")))
self.gen_param_label.setToolTip(
_("Parameters that are common for all tools.")
)

View File

@@ -22,7 +22,7 @@ class ToolsLevelPrefGroupUI(OptionsGroupUI):
self.options = app.options
# ## Board cuttout
self.levelling_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.levelling_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.levelling_label.setToolTip(
_("Generate CNC Code with auto-levelled paths.")
)

View File

@@ -24,7 +24,7 @@ class ToolsMarkersPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.param_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.param_label.setToolTip(
_("Parameters used for this tool.")
)
@@ -104,7 +104,7 @@ class ToolsMarkersPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Offset Frame
# #############################################################################################################
self.offset_title_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Offset'))
self.offset_title_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Offset')))
self.offset_title_label.setToolTip(_("Offset locations from the set reference."))
self.layout.addWidget(self.offset_title_label)

View File

@@ -25,7 +25,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.mill_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.mill_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.mill_label.setToolTip(
_("Create CNCJob with toolpaths for milling either Geometry or drill holes.")
)
@@ -289,7 +289,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Advanced Options Frame
# #############################################################################################################
self.adv_label = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _('Advanced Options'))
self.adv_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _('Advanced Options')))
self.adv_label.setToolTip(
_("A list of advanced parameters.")
)
@@ -437,7 +437,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Area Exclusion Frame
# #############################################################################################################
self.area_exc_label = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _('Area Exclusion'))
self.area_exc_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _('Area Exclusion')))
self.area_exc_label.setToolTip(
_("Area exclusion parameters.")
)
@@ -503,7 +503,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Area Polish Frame
# #############################################################################################################
self.pol_label = FCLabel('<span style="color:brown;"><b>%s</b></span>' % _('Add Polish'))
self.pol_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('brown'), _('Add Polish')))
self.pol_label.setToolTip(
_("Will add a Paint section at the end of the GCode.\n"
"A metallic brush will clean the material after milling.")
@@ -562,7 +562,7 @@ class ToolsMillPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Excellon Milling Frame
# #############################################################################################################
self.mille_label = FCLabel('<span style="color:darkorange;"><b>%s</b></span>' % _('Excellon Milling'))
self.mille_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('darkorange'), _('Excellon Milling')))
self.mille_label.setToolTip(
_("Will mill Excellon holes progressively from the center of the hole.")
)

View File

@@ -23,7 +23,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
self.options = app.options
# ## Clear non-copper regions
self.clearcopper_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.clearcopper_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.clearcopper_label.setToolTip(
_("Create a Geometry object with\n"
"toolpaths to cut all non-copper regions.")
@@ -155,7 +155,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
# Tool Frame
# #############################################################################################################
# ### Tools ## ##
self.tools_table_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("Tool Parameters"))
self.tools_table_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Tool Parameters")))
self.layout.addWidget(self.tools_table_label)
tt_frame = FCFrame()
@@ -271,7 +271,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# General Parameters Frame
# #############################################################################################################
self.gen_param_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("Common Parameters"))
self.gen_param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Common Parameters")))
self.gen_param_label.setToolTip(
_("Parameters that are common for all tools.")
)

View File

@@ -25,7 +25,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
# ------------------------------
# ## Paint area
# ------------------------------
self.paint_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _('Parameters'))
self.paint_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _('Parameters')))
self.paint_label.setToolTip(
_("Creates tool paths to cover the\n"
"whole area of a polygon.")
@@ -138,7 +138,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
# Tool Frame
# #############################################################################################################
# ### Tools ## ##
self.tools_table_label = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("Tool Parameters"))
self.tools_table_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Tool Parameters")))
self.layout.addWidget(self.tools_table_label)
tt_frame = FCFrame()
@@ -228,7 +228,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# General Parameters Frame
# #############################################################################################################
self.gen_param_label = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("Common Parameters"))
self.gen_param_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Common Parameters")))
self.gen_param_label.setToolTip(
_("Parameters that are common for all tools.")
)

View File

@@ -24,7 +24,7 @@ class ToolsPanelizePrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.panelize_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.panelize_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.panelize_label.setToolTip(
_("Create an object that contains an array of (x, y) elements,\n"
"each element is a copy of the source object spaced\n"

View File

@@ -25,7 +25,7 @@ class ToolsSolderpastePrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.solderpastelabel = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.solderpastelabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.solderpastelabel.setToolTip(
_("A tool to create GCode for dispensing\n"
"solder paste onto a PCB.")

View File

@@ -21,7 +21,7 @@ class ToolsSubPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.sublabel = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.sublabel = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.sublabel.setToolTip(
_("A tool to substract one Gerber or Geometry object\n"
"from another of the same type.")

View File

@@ -25,7 +25,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# PARAMETERS Frame
# #############################################################################################################
self.transform_label = FCLabel('<span style="color:blue;"><b>%s</b></span>' % _("Parameters"))
self.transform_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), _("Parameters")))
self.transform_label.setToolTip(
_("Various transformations that can be applied\n"
"on a application object.")
@@ -85,7 +85,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Rotate Frame
# #############################################################################################################
rotate_title_lbl = FCLabel('<span style="color:tomato;"><b>%s</b></span>' % _("Rotate"))
rotate_title_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('tomato'), _("Rotate")))
self.layout.addWidget(rotate_title_lbl)
rot_frame = FCFrame()
@@ -115,7 +115,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI):
s_t_lay = QtWidgets.QHBoxLayout()
self.layout.addLayout(s_t_lay)
skew_title_lbl = FCLabel('<span style="color:teal;"><b>%s</b></span>' % _("Skew"))
skew_title_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('teal'), _("Skew")))
s_t_lay.addWidget(skew_title_lbl)
s_t_lay.addStretch()
@@ -168,7 +168,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI):
sc_t_lay = QtWidgets.QHBoxLayout()
self.layout.addLayout(sc_t_lay)
scale_title_lbl = FCLabel('<span style="color:magenta;"><b>%s</b></span>' % _("Scale"))
scale_title_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('magenta'), _("Scale")))
sc_t_lay.addWidget(scale_title_lbl)
sc_t_lay.addStretch()
@@ -214,7 +214,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI):
# #############################################################################################################
# Offset Frame
# #############################################################################################################
offset_title_lbl = FCLabel('<span style="color:green;"><b>%s</b></span>' % _("Offset"))
offset_title_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), _("Offset")))
self.layout.addWidget(offset_title_lbl)
off_frame = FCFrame()
@@ -254,7 +254,7 @@ class ToolsTransformPrefGroupUI(OptionsGroupUI):
b_t_lay = QtWidgets.QHBoxLayout()
self.layout.addLayout(b_t_lay)
buffer_title_lbl = FCLabel('<span style="color:indigo;"><b>%s</b></span>' % _("Buffer"))
buffer_title_lbl = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('indigo'), _("Buffer")))
b_t_lay.addWidget(buffer_title_lbl)
b_t_lay.addStretch()