Center controls layout with separator in the middle

- Add stretch layouts on both sides to center the controls
- Separator (|) now positioned in the center of the window
- Database controls balanced on the left side of separator
- Analysis controls balanced on the right side of separator
- Symmetrical, professional layout with perfect centering
This commit is contained in:
Alec
2025-07-17 16:28:33 +02:00
parent 9b13720a15
commit e854deb1bc
+3 -2
View File
@@ -402,11 +402,12 @@ class MainWindow(QMainWindow):
separator.setAlignment(Qt.AlignCenter) separator.setAlignment(Qt.AlignCenter)
separator.setStyleSheet("color: gray; font-size: 16px; padding: 0 10px;") separator.setStyleSheet("color: gray; font-size: 16px; padding: 0 10px;")
# Add all sections to main layout with proper alignment # Add all sections to main layout with centered separator
controlsLayout.addStretch() # Push everything to center
controlsLayout.addLayout(dbButtonsLayout) controlsLayout.addLayout(dbButtonsLayout)
controlsLayout.addWidget(separator) controlsLayout.addWidget(separator)
controlsLayout.addLayout(analyzeControlsLayout) controlsLayout.addLayout(analyzeControlsLayout)
controlsLayout.addStretch() controlsLayout.addStretch() # Balance the other side
# Hidden variables to replace checkboxes # Hidden variables to replace checkboxes
self.uploadsCheckBox = True self.uploadsCheckBox = True