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.
This commit is contained in:
zhexu14 2024-04-15 20:49:42 +10:00 committed by GitHub
parent dc3d1b0b5b
commit 4c5d968dd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()