From d73c5e0904c0e2f512cd5fdfb22b3cb3c0246e8f Mon Sep 17 00:00:00 2001 From: Simon Wilkening Date: Sun, 1 Dec 2024 02:23:50 +0100 Subject: [PATCH] Farben angepasst --- .../src/main/java/pp/monopoly/client/gui/popups/BuyCard.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyCard.java index 895b4a5..7e363e0 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyCard.java @@ -38,6 +38,7 @@ public class BuyCard extends Dialog { // Hauptcontainer für die Gebäudekarte buyCardContainer = new Container(); + buyCardContainer.setBackground(new QuadBackgroundComponent(field.getColor().getColor())); // Ändert den Rahmen und die Hintergrundfarbe der Karten float padding = 10; // Passt den backgroundContainer an die Größe des buyCardContainers an backgroundContainer.setPreferredSize(buyCardContainer.getPreferredSize().addLocal(padding, padding, 0));