From 4c5d968dd74e3e286eeef6fcca1b8c1c240ae585 Mon Sep 17 00:00:00 2001 From: zhexu14 <64713351+zhexu14@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:49:42 +1000 Subject: [PATCH] Issue 3232: Clean up Air Wing Configuration Dialogue Box (#3377) Set default size of Air Wing Configuration Dialogue Box so that a whole squadron can be seen, addressing #3232 Make some UI elements smaller so that the Dialogue Box does not take too much screen real estate and works on smaller monitors. --- qt_ui/windows/AirWingConfigurationDialog.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qt_ui/windows/AirWingConfigurationDialog.py b/qt_ui/windows/AirWingConfigurationDialog.py index 89bafac0..e9ea81f7 100644 --- a/qt_ui/windows/AirWingConfigurationDialog.py +++ b/qt_ui/windows/AirWingConfigurationDialog.py @@ -285,6 +285,7 @@ class SquadronConfigurationBox(QGroupBox): ) self.player_list.setAcceptRichText(False) self.player_list.setEnabled(squadron.player and squadron.aircraft.flyable) + self.player_list.setMaximumHeight(125) left_column.addWidget(self.player_list) button_row = QHBoxLayout() @@ -664,7 +665,7 @@ class OverfullAirbasesDisplay(QGroupBox): parent: QWidget | None = None, ) -> None: super().__init__("Overfull airbases", parent) - self.setMaximumHeight(200) + self.setMaximumHeight(125) self.parking_tracker = parking_tracker self.parking_tracker.allocation_changed.connect(self.on_allocation_changed) @@ -790,7 +791,7 @@ class AirWingConfigurationDialog(QDialog): self.game = game self.parking_tracker = AirWingConfigParkingTracker(game) - self.setMinimumSize(1024, 768) + self.resize(1024, 900) self.setWindowTitle(f"Air Wing Configuration") # TODO: self.setWindowIcon()