Removes the shadow around the colony panel when playing on low resolution. This allows the buttons on the colony panel to be displayed properly when having only a 768px height window.

This commit is contained in:
Stian Grenborgen 2022-07-09 10:39:41 +02:00
parent c05a99e246
commit 40cbdc4b81
1 changed files with 8 additions and 0 deletions

View File

@ -405,6 +405,14 @@ public final class ColonyPanel extends PortPanel
SwingUtilities.replaceUIInputMap(this.nameBox,
JComponent.WHEN_IN_FOCUSED_WINDOW, nameIM);
if (getGUI().getMapViewDimension().height < 770) {
/*
* Reduces the border size so that the Colony panel
* can get slightly bigger.
*/
setBorder(FreeColImageBorder.panelWithoutShadowBorder);
}
initialize(colony);
getGUI().restoreSavedSize(this, new Dimension(1050, 725));
}