From e6c90508ab6f3693bfce9169cce245e786941eb7 Mon Sep 17 00:00:00 2001 From: dervart Date: Tue, 17 Jun 2025 20:21:41 +0700 Subject: [PATCH] native package: left alignment for portproton & addgame QLabels --- portprotonqt/dialogs.py | 1 + portprotonqt/main_window.py | 1 + 2 files changed, 2 insertions(+) diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index 00ccbf4..ae1f361 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -95,6 +95,7 @@ class AddGameDialog(QDialog): self.setStyleSheet(self.theme.MAIN_WINDOW_STYLE + self.theme.MESSAGE_BOX_STYLE) layout = QFormLayout(self) + layout.setLabelAlignment(Qt.AlignmentFlag.AlignLeft) # Game name self.nameEdit = QLineEdit(self) diff --git a/portprotonqt/main_window.py b/portprotonqt/main_window.py index 4defbfd..bd3abe2 100644 --- a/portprotonqt/main_window.py +++ b/portprotonqt/main_window.py @@ -954,6 +954,7 @@ class MainWindow(QMainWindow): formLayout = QFormLayout() formLayout.setContentsMargins(0, 10, 0, 0) formLayout.setSpacing(10) + formLayout.setLabelAlignment(Qt.AlignmentFlag.AlignLeft) # 1. Time detail_level self.timeDetailCombo = QComboBox()