From f6083d708684bb2b276fcf315432428824b05e32 Mon Sep 17 00:00:00 2001 From: delvh Date: Tue, 30 Jun 2020 22:11:09 +0200 Subject: [PATCH] Removed unnecessary Label creation --- src/main/java/envoy/client/ui/listcell/MessageListCell.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/envoy/client/ui/listcell/MessageListCell.java b/src/main/java/envoy/client/ui/listcell/MessageListCell.java index be66259..8edd772 100644 --- a/src/main/java/envoy/client/ui/listcell/MessageListCell.java +++ b/src/main/java/envoy/client/ui/listcell/MessageListCell.java @@ -58,8 +58,7 @@ public class MessageListCell extends ListCell { cell.getChildren().add(textLabel); // Setting the message status icon and background color if (message.getRecipientID() != client.getID()) { - final var statusIcon = new Label("", new ImageView(statusImages.get(message.getStatus()))); - statusIcon.setPadding(new Insets(1, 0, 5, 5)); + final var statusIcon = new ImageView(statusImages.get(message.getStatus())); cell.getChildren().add(statusIcon); cell.getStyleClass().add("own-message"); } else cell.getStyleClass().add("received-message");