amélioration interface et ajout d'éléments

This commit is contained in:
2026-03-03 22:10:41 +01:00
parent cf827b0ce4
commit cf33a6613c
5 changed files with 271 additions and 7 deletions

View File

@@ -15,6 +15,10 @@ import resources # This is generated from the .qrc file
if sys.platform.startswith('linux'):
os.environ["QT_QPA_PLATFORM"] = "xcb"
# Remove this into final release
from fake_patch_notes import patch_note
NO_STAFF = True
def load_custom_font():
# Load font from Qt resource
font_id = QFontDatabase.addApplicationFont(":/assets/Avocado-Cake-Demo.otf")
@@ -48,8 +52,12 @@ class MainWindow(QMainWindow):
# Adjust UI
self.maintitle_label.setFont(QFont(font_family, 38))
self.subtitle_label.setStyleSheet("color: rgb(163, 177, 198)")
self.staff_btn.hide()
self.spacer_substitution.hide()
if NO_STAFF :
self.staff_btn.hide()
self.spacer_substitution.hide()
self.info_text.setMarkdown(patch_note)
# Find the button by its objectName in Qt Designer
# Example: objectName = "close_btn"