From cf827b0ce4817daf83ea9e42b2e2c6932b136adc Mon Sep 17 00:00:00 2001 From: Xarkam Date: Tue, 3 Mar 2026 20:53:41 +0100 Subject: [PATCH] change spacer by qwidget fake spacer --- mainwindow.py | 2 ++ mainwindow.ui | 15 ++++++--------- styles.qss | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index dd10f59..d37cf1e 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -48,6 +48,8 @@ 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() # Find the button by its objectName in Qt Designer # Example: objectName = "close_btn" diff --git a/mainwindow.ui b/mainwindow.ui index 1d4ebb9..d30f85b 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -136,7 +136,7 @@ - 42 + 25 25 @@ -446,17 +446,14 @@ - - - Qt::Orientation::Horizontal - - + + - 40 - 20 + 53 + 0 - + diff --git a/styles.qss b/styles.qss index c591ba5..bbb3e40 100644 --- a/styles.qss +++ b/styles.qss @@ -26,6 +26,6 @@ QPushButton#minimize_btn { border-bottom: 5px solid white; color: white; font-size: 18px; - padding: 10px; + padding: 0px; padding-top: 0 }