Skip to content

Commit

Permalink
Change headers for chat menu and chat box
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Dec 15, 2023
1 parent d8ba2f0 commit 3148006
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private void createHeaderVBox(boolean hasPeerToDisplay) {
chatHeaderVBox.getChildren().add(hBox);
chatHeaderVBox.setAlignment(Pos.CENTER_LEFT);
} else {
Label emptyChatBoxHeader = new Label(Res.get("chat.private.title"));
Label emptyChatBoxHeader = new Label(Res.get("chat.private.messagebox.noChats.title"));
emptyChatBoxHeader.getStyleClass().add("chat-container-headline");
chatHeaderVBox.getChildren().add(emptyChatBoxHeader);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public UserProfileSelection.ListItem fromString(String string) {
leaveChannelButton = createAndGetChatButton(Res.get("chat.leave"), 120);
leaveChannelButton.getStyleClass().add("outlined-button");

Label noChatsLabel = new Label(Res.get("chat.private.messagebox.noChats"));
Label noChatsLabel = new Label(Res.get("chat.private.messagebox.noChats.description"));
noChatsLabel.getStyleClass().add("chat-container-placeholder-text");
noChatsLabel.setTextAlignment(TextAlignment.CENTER);
noChatsLabel.setWrapText(true);
Expand Down
5 changes: 3 additions & 2 deletions i18n/src/main/resources/chat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ chat.leave.warn=Are you sure you want to leave that private channel with ''{0}''
######################################################

chat.private.title=Private chats
chat.private.messagebox.noChats=You don't have any ongoing conversations.\n\n\
chat.private.messagebox.noChats.title=Chat window
chat.private.messagebox.noChats.description=You don't have any ongoing conversations.\n\n\
To chat with a peer privately, hover over their message in a public chat and click 'Send private message'.
chat.private.openChatsList.headline=Peers
chat.private.openChatsList.headline=Chat peers


######################################################
Expand Down

0 comments on commit 3148006

Please sign in to comment.