1
0
Fork 0
mirror of synced 2024-05-20 12:32:50 +12:00

Fix markdown text in hide label

This commit is contained in:
lennard 2023-05-08 19:42:59 +02:00
parent 5522a34518
commit 7e7c73d2f0
No known key found for this signature in database
GPG key ID: AB6010FE63C7C2B1
2 changed files with 16 additions and 2 deletions

View file

@ -263,6 +263,11 @@ class Ui_GameInfo(object):
self.hide_game_check.setObjectName("hide_game_check")
self.info_layout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.hide_game_check)
self.label = QtWidgets.QLabel(GameInfo)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label.setObjectName("label")
self.info_layout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label)
self.right_layout.addLayout(self.info_layout)
@ -304,7 +309,7 @@ class Ui_GameInfo(object):
self.uninstall_button.setText(_translate("GameInfo", "Uninstall Game"))
self.install_button.setText(_translate("GameInfo", "Install Game"))
self.import_button.setText(_translate("GameInfo", "Import Game"))
self.label.setText(_translate("GameInfo", "<html><head/><body><p align=\"right\"><span style=\" font-weight:600;\">Hide Game</span></p></body></html>"))
self.label.setText(_translate("GameInfo", "Hide Game"))
if __name__ == "__main__":

View file

@ -528,8 +528,17 @@
</item>
<item row="7" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;right&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hide Game&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Hide Game</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>