amélioration interface et ajout d'éléments
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user