From 059b56e11a120abadff2ac1065f2ba64b0562f11 Mon Sep 17 00:00:00 2001 From: rkfg Date: Mon, 21 Mar 2016 21:48:57 +0300 Subject: [PATCH] Add transparency to highlighted player panel. --- .../src/main/java/mage/client/game/PlayerPanelExt.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/game/PlayerPanelExt.java b/Mage.Client/src/main/java/mage/client/game/PlayerPanelExt.java index 40dbb69d55..f2a85347d5 100644 --- a/Mage.Client/src/main/java/mage/client/game/PlayerPanelExt.java +++ b/Mage.Client/src/main/java/mage/client/game/PlayerPanelExt.java @@ -105,7 +105,7 @@ public class PlayerPanelExt extends javax.swing.JPanel { private static final Border GREEN_BORDER = new LineBorder(Color.green, 3); private static final Border RED_BORDER = new LineBorder(Color.red, 2); private static final Border EMPTY_BORDER = BorderFactory.createEmptyBorder(0, 0, 0, 0); - private final Color greenBackgroundColor = new Color(180, 255, 180); + private final Color greenBackgroundColor = new Color(180, 255, 180, 200); private int avatarId = -1; private String flagName; @@ -286,12 +286,10 @@ public class PlayerPanelExt extends javax.swing.JPanel { private void resetBackgroundColor() { panelBackground.resetBackgroundColor(); - zonesPanel.setBackground(null); } private void setGreenBackgroundColor() { panelBackground.setBackgroundColor(greenBackgroundColor); - zonesPanel.setBackground(greenBackgroundColor); } /** @@ -489,6 +487,7 @@ public class PlayerPanelExt extends javax.swing.JPanel { zonesPanel.setPreferredSize(new Dimension(100, 20)); zonesPanel.setSize(100, 20); zonesPanel.setLayout(null); + zonesPanel.setOpaque(false); image = ImageHelper.getImageFromResources("/info/command_zone.png"); r = new Rectangle(21, 21);