mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
welcome page tweak
This commit is contained in:
parent
1fea119173
commit
d1fbe94d90
1 changed files with 4 additions and 3 deletions
|
@ -15,8 +15,8 @@ import org.controlsfx.control.ToggleSwitch;
|
||||||
public class WelcomeDialog extends Dialog<Mode> {
|
public class WelcomeDialog extends Dialog<Mode> {
|
||||||
private static final String[] ELECTRUM_SERVERS = new String[]{
|
private static final String[] ELECTRUM_SERVERS = new String[]{
|
||||||
"ElectrumX (Recommended)", "https://github.com/spesmilo/electrumx",
|
"ElectrumX (Recommended)", "https://github.com/spesmilo/electrumx",
|
||||||
"electrs", "https://github.com/romanz/electrs",
|
"electrs (Experimental)", "https://github.com/romanz/electrs",
|
||||||
"esplora-electrs", "https://github.com/Blockstream/electrs"};
|
"esplora-electrs (Experimental)", "https://github.com/Blockstream/electrs"};
|
||||||
|
|
||||||
private final HostServices hostServices;
|
private final HostServices hostServices;
|
||||||
|
|
||||||
|
@ -71,7 +71,8 @@ public class WelcomeDialog extends Dialog<Mode> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private HyperlinkLabel createBulletedLink(String name, String url) {
|
private HyperlinkLabel createBulletedLink(String name, String url) {
|
||||||
HyperlinkLabel label = new HyperlinkLabel(" \u2022 [" + name + "]");
|
String[] nameParts = name.split(" ");
|
||||||
|
HyperlinkLabel label = new HyperlinkLabel(" \u2022 [" + nameParts[0] + "] " + (nameParts.length > 1 ? nameParts[1] : ""));
|
||||||
label.setOnAction(event -> {
|
label.setOnAction(event -> {
|
||||||
hostServices.showDocument(url);
|
hostServices.showDocument(url);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue