mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Flip main/detail text boldness.
Emphasize the main item text and leave the fine print as fine print.
This commit is contained in:
parent
6dae5b98d5
commit
a2140b915f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user