Skip to content

Commit 88e03eb

Browse files
committed
Add message text into one single label
1 parent d25ce8a commit 88e03eb

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/ChatMessagesListController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ private <M extends ChatMessage, C extends ChatChannel<M>> void addChatRulesWarni
767767
private TwoPartyPrivateChatMessage createChatRulesWarningMessage(TwoPartyPrivateChatChannel channel) {
768768
UserProfile receiverUserProfile = channel.getMyUserIdentity().getUserProfile();
769769
UserProfile senderUserProfile = channel.getPeer();
770-
String text = Res.get("chat.private.chatRulesWarningMessage.text1");
770+
String text = Res.get("chat.private.chatRulesWarningMessage.text");
771771
return new TwoPartyPrivateChatMessage(StringUtils.createUid(),
772772
channel.getChatChannelDomain(),
773773
channel.getId(),
@@ -785,7 +785,7 @@ private TwoPartyPrivateChatMessage createChatRulesWarningMessage(TwoPartyPrivate
785785
private BisqEasyOpenTradeMessage createChatRulesWarningMessage(BisqEasyOpenTradeChannel channel) {
786786
UserProfile receiverUserProfile = channel.getMyUserIdentity().getUserProfile();
787787
UserProfile senderUserProfile = channel.getPeer();
788-
String text = Res.get("chat.private.chatRulesWarningMessage.text1");
788+
String text = Res.get("chat.private.chatRulesWarningMessage.text");
789789
return new BisqEasyOpenTradeMessage(channel.getTradeId(),
790790
StringUtils.createUid(),
791791
channel.getId(),

apps/desktop/desktop/src/main/java/bisq/desktop/main/content/chat/message_container/list/message_box/ChatRulesWarningMessageBox.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,13 @@ public ChatRulesWarningMessageBox(
4949
message.setAlignment(Pos.CENTER);
5050
message.setWrapText(true);
5151

52-
Label warningMessage = new Label(Res.get("chat.private.chatRulesWarningMessage.text2"));
53-
warningMessage.getStyleClass().addAll("text-fill-grey-dimmed", "font-light", "medium-text");
5452
learnMoreLink = new Hyperlink(Res.get("chat.private.chatRulesWarningMessage.learnMore"));
5553
learnMoreLink.getStyleClass().addAll("text-fill-green", "font-light", "medium-text");
5654
learnMoreLink.setOnAction(e -> controller.onLearnMoreAboutChatRules());
57-
HBox warningMessageAndLinkBox = new HBox(5, warningMessage, learnMoreLink);
58-
warningMessageAndLinkBox.setAlignment(Pos.BASELINE_LEFT);
5955

6056
VBox messageBg = new VBox();
6157
messageBg.setSpacing(5);
62-
messageBg.getChildren().addAll(warningHeadline, message, warningMessageAndLinkBox);
58+
messageBg.getChildren().addAll(warningHeadline, message, learnMoreLink);
6359
messageBg.setFillWidth(true);
6460
messageBg.setAlignment(Pos.CENTER_LEFT);
6561
messageBg.getStyleClass().add("system-message-background");

i18n/src/main/resources/chat.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ chat.private.openChatsList.headline=Chat peers
115115
chat.private.leaveChat.confirmation=Are you sure you want to leave this chat?\n\
116116
You will lose access to the chat and all the chat information.
117117
chat.private.chatRulesWarningMessage.headline=Warning
118-
chat.private.chatRulesWarningMessage.text1=Do not exchange contact information to buy or sell Bitcoin outside Bisq \
118+
chat.private.chatRulesWarningMessage.text=Do not exchange contact information to buy or sell Bitcoin outside Bisq \
119119
in order to prevent fraud and scams. \
120-
In case of such activity, peers should report it to moderators to identify potential Bisq rules violations.
121-
chat.private.chatRulesWarningMessage.text2=Users who engage in these practices will be banned from the network.
120+
In case of such activity, peers should report it to moderators to identify potential Bisq rules violations. \
121+
Users who engage in these practices will be banned from the network.
122122
chat.private.chatRulesWarningMessage.learnMore=Learn more
123123

124124

0 commit comments

Comments
 (0)