Moved remainingCharsLabel styling from code to CSS

This commit is contained in:
delvh
2020-06-21 17:04:27 +02:00
parent d20d72f6e2
commit b23ee61506
3 changed files with 7 additions and 5 deletions

View File

@ -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();