Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to trading rules wiki article in Tac Window #7349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Loading