- replaced all the FCLabel widgets that have color HTML with the new FCLabel widget that uses parameters for 'color' and weight

This commit is contained in:
Marius Stanciu
2022-04-18 03:41:04 +03:00
committed by Marius
parent 04357843fe
commit d8a0be84a3
79 changed files with 263 additions and 264 deletions

View File

@@ -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('%s' % _(self.label_text), color=str(self.color), bold=True)
heading.setToolTip(_(self.label_tooltip))
return heading