From e854deb1bc2715b580d16409b0bd867feacee526 Mon Sep 17 00:00:00 2001 From: Alec Date: Thu, 17 Jul 2025 16:28:33 +0200 Subject: [PATCH] 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 --- slskd_stats_gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slskd_stats_gui.py b/slskd_stats_gui.py index 8812701..bda0c09 100644 --- a/slskd_stats_gui.py +++ b/slskd_stats_gui.py @@ -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