Flip main/detail text boldness.

Emphasize the main item text and leave the fine print as fine print.
This commit is contained in:
Dan Albert 2021-10-21 22:27:35 -07:00
parent 6dae5b98d5
commit a2140b915f

View File

@ -109,10 +109,10 @@ class AutoSettingsLayout(QGridLayout):
raise TypeError(f"Unhandled option type: {description}")
def add_label(self, row: int, description: OptionDescription) -> None:
text = description.text
text = f"<strong>{description.text}</strong>"
if description.detail is not None:
wrapped = "<br />".join(textwrap.wrap(description.detail, width=55))
text += f"<br /><strong>{wrapped}</strong>"
text += f"<br />{wrapped}"
label = QLabel(text)
if description.tooltip is not None:
label.setToolTip(description.tooltip)