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:
+3
-2
@@ -402,11 +402,12 @@ class MainWindow(QMainWindow):
|
||||
separator.setAlignment(Qt.AlignCenter)
|
||||
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.addWidget(separator)
|
||||
controlsLayout.addLayout(analyzeControlsLayout)
|
||||
controlsLayout.addStretch()
|
||||
controlsLayout.addStretch() # Balance the other side
|
||||
|
||||
# Hidden variables to replace checkboxes
|
||||
self.uploadsCheckBox = True
|
||||
|
||||
Reference in New Issue
Block a user