Moved remainingCharsLabel styling from code to CSS
This commit is contained in:
@ -85,10 +85,6 @@ public final class ChatScene {
|
||||
messageList.setCellFactory(listView -> new MessageListCell());
|
||||
userList.setCellFactory(listView -> new ContactListCell());
|
||||
|
||||
// Unfortunately, remainingChars.setTextFill(...) does not work as it is most
|
||||
// likely overridden by CSS
|
||||
remainingChars.setStyle("-fx-text-fill: #00FF00; -fx-opacity: 1; -fx-background-color: transparent;");
|
||||
|
||||
// Listen to received messages
|
||||
eventBus.register(MessageCreationEvent.class, e -> {
|
||||
final var message = e.get();
|
||||
|
Reference in New Issue
Block a user