Skip to content

Commit

Permalink
Issue 3232: Clean up Air Wing Configuration Dialogue Box (#3377)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zhexu14 committed Apr 15, 2024
1 parent dc3d1b0 commit 4c5d968
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qt_ui/windows/AirWingConfigurationDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def __init__(
)
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()
Expand Down Expand Up @@ -664,7 +665,7 @@ def __init__(
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)
Expand Down Expand Up @@ -790,7 +791,7 @@ def __init__(self, game: Game, parent) -> None:
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()

Expand Down

0 comments on commit 4c5d968

Please sign in to comment.