From 349a067c3a66cc8de4a351180c23e83fc740dd9c Mon Sep 17 00:00:00 2001 From: suddenwhipvapor <124399749+suddenwhipvapor@users.noreply.github.com> Date: Sat, 4 Jan 2025 15:54:50 +0000 Subject: [PATCH] Add link to trading rules wiki --- .../desktop/main/overlays/windows/TacWindow.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/main/overlays/windows/TacWindow.java b/desktop/src/main/java/bisq/desktop/main/overlays/windows/TacWindow.java index dda1a08906f..7e6b359fd60 100644 --- a/desktop/src/main/java/bisq/desktop/main/overlays/windows/TacWindow.java +++ b/desktop/src/main/java/bisq/desktop/main/overlays/windows/TacWindow.java @@ -112,17 +112,26 @@ protected void addMessage() { String fontStyleClass = smallScreen ? "small-text" : "normal-text"; messageLabel.getStyleClass().add(fontStyleClass); - Label label = new AutoTooltipLabel(" - For more details and a general overview please read the full documentation about "); + Label rulesLinkLabel = new AutoTooltipLabel(" - Read the complete "); + rulesLinkLabel.getStyleClass().add(fontStyleClass); + + Label label = new AutoTooltipLabel(", and find more details and general overview in the full documentation about "); label.getStyleClass().add(fontStyleClass); + //not translated, as noted in String text of show() + HyperlinkWithIcon rulesLinkWithIcon = new ExternalHyperlink("trading rules"); + rulesLinkWithIcon.setOnAction(e -> GUIUtil.openWebPage("https://bisq.wiki/Trading_rules")); + rulesLinkWithIcon.getStyleClass().add(fontStyleClass); + HBox.setMargin(rulesLinkWithIcon, new Insets(-0.5, 0, 0, 0)); + HyperlinkWithIcon hyperlinkWithIcon = new ExternalHyperlink(Res.get("tacWindow.arbitrationSystem").toLowerCase() + "."); hyperlinkWithIcon.setOnAction(e -> GUIUtil.openWebPage("https://bisq.wiki/Dispute_resolution")); hyperlinkWithIcon.getStyleClass().add(fontStyleClass); HBox.setMargin(hyperlinkWithIcon, new Insets(-0.5, 0, 0, 0)); - HBox hBox = new HBox(label, hyperlinkWithIcon); + HBox hBox = new HBox(rulesLinkLabel, rulesLinkWithIcon, label, hyperlinkWithIcon); GridPane.setRowIndex(hBox, ++rowIndex); - GridPane.setMargin(hBox, new Insets(-5, 0, -20, 0)); + GridPane.setMargin(hBox, new Insets(-12, 0, -20, 0)); gridPane.getChildren().add(hBox); }