From fe682d87ef0f58c2aa938e6b77d63c7bfc5b4fd9 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Fri, 5 Feb 2021 04:49:25 +0800 Subject: [PATCH] [Desktop] align UI - zoomed card - winlose overlay --- .../src/main/java/forge/screens/match/ViewWinLose.java | 6 +++--- .../src/main/java/forge/toolbox/special/CardZoomer.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/forge-gui-desktop/src/main/java/forge/screens/match/ViewWinLose.java b/forge-gui-desktop/src/main/java/forge/screens/match/ViewWinLose.java index 3259f673bdf..3b8d132f024 100644 --- a/forge-gui-desktop/src/main/java/forge/screens/match/ViewWinLose.java +++ b/forge-gui-desktop/src/main/java/forge/screens/match/ViewWinLose.java @@ -48,7 +48,7 @@ public class ViewWinLose implements IWinLoseView { private final SkinnedLabel lblTitle = new SkinnedLabel("WinLoseFrame > lblTitle needs updating."); private final SkinnedLabel lblStats = new SkinnedLabel("WinLoseFrame > lblStats needs updating."); - private final JPanel pnlOutcomes = new JPanel(new MigLayout("wrap, align center")); + private final JPanel pnlOutcomes = new JPanel(new MigLayout("wrap, ax center, ay center")); /** String constraint parameters for title blocks and cardviewer blocks. */ private static final SkinColor FORE_COLOR = FSkin.getColor(Colors.CLR_TEXT); @@ -146,9 +146,9 @@ public class ViewWinLose implements IWinLoseView { // Add all components accordingly. overlay.setLayout(new MigLayout("insets 0, w 100%!, h 100%!")); - pnlLeft.setLayout(new MigLayout("insets 0, wrap, align center")); + pnlLeft.setLayout(new MigLayout("insets 0, wrap, ax center, ay center")); pnlRight.setLayout(new MigLayout("insets 0, wrap")); - pnlCustom.setLayout(new MigLayout("insets 0, wrap, align center")); + pnlCustom.setLayout(new MigLayout("insets 0, wrap, ax center, ay center")); final boolean customIsPopulated = control.populateCustomPanel(); if (customIsPopulated) { diff --git a/forge-gui-desktop/src/main/java/forge/toolbox/special/CardZoomer.java b/forge-gui-desktop/src/main/java/forge/toolbox/special/CardZoomer.java index 180df87dd29..d4faf0cb0d8 100644 --- a/forge-gui-desktop/src/main/java/forge/toolbox/special/CardZoomer.java +++ b/forge-gui-desktop/src/main/java/forge/toolbox/special/CardZoomer.java @@ -244,7 +244,7 @@ public enum CardZoomer { pnlMain = new JPanel(); pnlMain.setOpaque(false); overlay.setLayout(new MigLayout("insets 0, w 100%!, h 100%!")); - pnlMain.setLayout(new MigLayout("insets 0, wrap, align center")); + pnlMain.setLayout(new MigLayout("insets 0, wrap, ax center, ay center")); overlay.add(pnlMain, "w 100%!, h 100%!"); }