mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-29 03:46:31 -04:00
add hyperlink to dispute resolution in TAC window
This commit is contained in:
parent
bffcf7c7c0
commit
bd3fffada4
@ -20,11 +20,16 @@ package haveno.desktop.main.overlays.windows;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import haveno.core.locale.Res;
|
import haveno.core.locale.Res;
|
||||||
import haveno.desktop.app.HavenoApp;
|
import haveno.desktop.app.HavenoApp;
|
||||||
|
import haveno.desktop.components.HyperlinkWithIcon;
|
||||||
import haveno.desktop.main.overlays.Overlay;
|
import haveno.desktop.main.overlays.Overlay;
|
||||||
|
import javafx.geometry.Insets;
|
||||||
import javafx.geometry.Rectangle2D;
|
import javafx.geometry.Rectangle2D;
|
||||||
|
import javafx.scene.layout.GridPane;
|
||||||
import javafx.stage.Screen;
|
import javafx.stage.Screen;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import static haveno.desktop.util.FormBuilder.addHyperlinkWithIcon;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class TacWindow extends Overlay<TacWindow> {
|
public class TacWindow extends Overlay<TacWindow> {
|
||||||
|
|
||||||
@ -91,11 +96,10 @@ public class TacWindow extends Overlay<TacWindow> {
|
|||||||
String fontStyleClass = smallScreen ? "small-text" : "normal-text";
|
String fontStyleClass = smallScreen ? "small-text" : "normal-text";
|
||||||
messageTextArea.getStyleClass().add(fontStyleClass);
|
messageTextArea.getStyleClass().add(fontStyleClass);
|
||||||
|
|
||||||
// TODO: link to the wiki
|
HyperlinkWithIcon hyperlinkWithIcon = addHyperlinkWithIcon(gridPane, ++rowIndex, Res.get("tacWindow.arbitrationSystem"),
|
||||||
// HyperlinkWithIcon hyperlinkWithIcon = addHyperlinkWithIcon(gridPane, ++rowIndex, Res.get("tacWindow.arbitrationSystem"),
|
"https://docs.haveno.exchange/the-project/dispute-resolution");
|
||||||
// "https://haveno.exchange/wiki/Dispute_resolution");
|
hyperlinkWithIcon.getStyleClass().add(fontStyleClass);
|
||||||
// hyperlinkWithIcon.getStyleClass().add(fontStyleClass);
|
GridPane.setMargin(hyperlinkWithIcon, new Insets(-6, 0, -20, -4));
|
||||||
// GridPane.setMargin(hyperlinkWithIcon, new Insets(-6, 0, -20, -4));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user