change spacer by qwidget fake spacer

This commit is contained in:
2026-03-03 20:53:41 +01:00
parent 6e5aefa299
commit cf827b0ce4
3 changed files with 9 additions and 10 deletions

View File

@@ -48,6 +48,8 @@ class MainWindow(QMainWindow):
# Adjust UI # Adjust UI
self.maintitle_label.setFont(QFont(font_family, 38)) self.maintitle_label.setFont(QFont(font_family, 38))
self.subtitle_label.setStyleSheet("color: rgb(163, 177, 198)") 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 # Find the button by its objectName in Qt Designer
# Example: objectName = "close_btn" # Example: objectName = "close_btn"

View File

@@ -136,7 +136,7 @@
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>42</width> <width>25</width>
<height>25</height> <height>25</height>
</size> </size>
</property> </property>
@@ -446,17 +446,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_5"> <widget class="QWidget" name="spacer_substitution" native="true">
<property name="orientation"> <property name="minimumSize">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>53</width>
<height>20</height> <height>0</height>
</size> </size>
</property> </property>
</spacer> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="staff_btn"> <widget class="QPushButton" name="staff_btn">

View File

@@ -26,6 +26,6 @@ QPushButton#minimize_btn {
border-bottom: 5px solid white; border-bottom: 5px solid white;
color: white; color: white;
font-size: 18px; font-size: 18px;
padding: 10px; padding: 0px;
padding-top: 0 padding-top: 0
} }