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

@@ -275,7 +275,7 @@ class HeadingOptionUI(OptionUI):
self.color = color if color else ""
def build_heading_widget(self):
heading = FCLabel('<span style="color:%s%s;"><b>%s</b></span>' % (self.app.theme_safe_color(''), 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