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

@@ -526,7 +526,8 @@ class CalcUI:
# #####################
# ## Title of the Units Calculator
units_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('blue'), self.unitsName))
units_label = FCLabel('%s' % self.unitsName, color='blue', bold=True)
self.layout.addWidget(units_label)
units_frame = FCFrame()
@@ -588,7 +589,8 @@ class CalcUI:
# ################################ V-shape Tool Calculator ####################################################
# #############################################################################################################
# ## Title of the V-shape Tools Calculator
v_shape_title_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('green'), self.v_shapeName))
v_shape_title_label = FCLabel('%s' % self.v_shapeName, color='green', bold=True)
self.layout.addWidget(v_shape_title_label)
v_frame = FCFrame()
@@ -662,7 +664,7 @@ class CalcUI:
# ############################## ElectroPlating Tool Calculator ###############################################
# #############################################################################################################
# ## Title of the ElectroPlating Tools Calculator
tin_title_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('purple'), self.eplateName))
tin_title_label = FCLabel('%s' % self.eplateName, color='purple', bold=True)
tin_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.")
@@ -848,7 +850,7 @@ class CalcUI:
# ############################## Tinning Calculator ###############################################
# #############################################################################################################
# ## Title of the Tinning Calculator
tin_title_label = FCLabel('<span style="color:%s;"><b>%s</b></span>' % (self.app.theme_safe_color('orange'), self.tinningName))
tin_title_label = FCLabel('%s' % self.tinningName, color='orange', bold=True)
tin_title_label.setToolTip(
_("Calculator for chemical quantities\n"
"required for tinning PCB's.")
@@ -1011,7 +1013,7 @@ class CalcUI:
grid_tin.addWidget(separator_line, 26, 0, 1, 2)
# Volume
self.vol_lbl = FCLabel('<span style="color:%s;">%s:</span>' % (self.app.theme_safe_color('red'), _("Volume")))
self.vol_lbl = FCLabel('%s' % _("Volume"), color='red', bold=True)
self.vol_lbl.setToolTip(_('Desired volume of tinning solution.'))
self.vol_entry = FCDoubleSpinner(callback=self.confirmation_message)
self.vol_entry.setSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding,