From 60dd4b6152296ab1e1a21b381f7d45dcc9b61ecb Mon Sep 17 00:00:00 2001 From: DieGurke <55625494+DieGurke@users.noreply.github.com> Date: Sat, 1 Aug 2020 17:24:15 +0200 Subject: [PATCH] Some minor fixes Co-authored-by: delvh --- .../src/main/java/envoy/client/ui/listcell/MessageControl.java | 3 ++- client/src/main/resources/css/base.css | 1 - client/src/main/resources/css/dark.css | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/main/java/envoy/client/ui/listcell/MessageControl.java b/client/src/main/java/envoy/client/ui/listcell/MessageControl.java index 5a0c640..9b66c6c 100644 --- a/client/src/main/java/envoy/client/ui/listcell/MessageControl.java +++ b/client/src/main/java/envoy/client/ui/listcell/MessageControl.java @@ -65,6 +65,7 @@ public class MessageControl extends Label { // Creating the underlying VBox and the dateLabel final var hbox = new HBox(); if (message.getSenderID() != localDB.getUser().getID() && message instanceof GroupMessage) { + // Displaying the name of the sender in a group final var label = new Label(); label.getStyleClass().add("groupMemberNames"); label.setText(localDB.getUsers() @@ -178,7 +179,7 @@ public class MessageControl extends Label { } /** - * @param localDB the localDB + * @param localDB the localDB used by the current user * @since Envoy Client v0.2-beta */ public static void setLocalDB(LocalDB localDB) { MessageControl.localDB = localDB; } diff --git a/client/src/main/resources/css/base.css b/client/src/main/resources/css/base.css index 9a106c0..4c289bb 100644 --- a/client/src/main/resources/css/base.css +++ b/client/src/main/resources/css/base.css @@ -100,7 +100,6 @@ -fx-background-color: transparent; -fx-border: solid; -fx-border-width: 0.0 0.0 1.0 0.0; - } #remainingCharsLabel { diff --git a/client/src/main/resources/css/dark.css b/client/src/main/resources/css/dark.css index 0550a51..ca98909 100644 --- a/client/src/main/resources/css/dark.css +++ b/client/src/main/resources/css/dark.css @@ -80,6 +80,5 @@ .scroll-bar:vertical .thumb { -fx-background-color: #707070; -fx-background-insets : 4.0, 0.0, 0.0; - -fx-background-radius : 2.0em; + -fx-background-radius : 2.0em; } -