server

Clone or download

Revert "Updated matrix and twitter links"

This reverts commit 2e95290ce685f0a5362f99a71458828c6676e17d.

Modified Files

package com.stream_pi.server.window.settings.About;
package com.stream_pi.server.window.settings.About;
import javafx.application.HostServices;
import javafx.application.HostServices;
import javafx.geometry.Insets;
import javafx.geometry.Insets;
import javafx.scene.control.Hyperlink;
import javafx.scene.control.Hyperlink;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.VBox;
import javafx.scene.layout.VBox;
public class ContactTab extends ScrollPane
public class ContactTab extends ScrollPane
{
{
private final HostServices hostServices;
private final HostServices hostServices;
public ContactTab(HostServices hostServices)
public ContactTab(HostServices hostServices)
{
{
this.hostServices = hostServices;
this.hostServices = hostServices;
getStyleClass().add("about_contact_tab_scroll_pane");
getStyleClass().add("about_contact_tab_scroll_pane");
Hyperlink github = new Hyperlink("GitHub");
Hyperlink github = new Hyperlink("GitHub");
github.setOnAction(event -> openWebpage("https://github.com/stream-pi"));
github.setOnAction(event -> openWebpage("https://github.com/Stream-Pi"));
Hyperlink discord = new Hyperlink("Discord");
Hyperlink discord = new Hyperlink("Discord");
discord.setOnAction(event -> openWebpage("https://discord.gg/BExqGmk"));
discord.setOnAction(event -> openWebpage("https://discord.gg/BExqGmk"));
Hyperlink website = new Hyperlink("Website");
Hyperlink website = new Hyperlink("Website");
website.setOnAction(event -> openWebpage("https://stream-pi.com"));
website.setOnAction(event -> openWebpage("https://stream-pi.com"));
Hyperlink twitter = new Hyperlink("Twitter");
Hyperlink twitter = new Hyperlink("Twitter");
twitter.setOnAction(event -> openWebpage("https://twitter.com/stream_pi"));
twitter.setOnAction(event -> openWebpage("https://twitter.com/Stream_Pi"));
Hyperlink matrix = new Hyperlink("Matrix");
Hyperlink matrix = new Hyperlink("Matrix");
matrix.setOnAction(event -> openWebpage("https://matrix.to/#/+stream-pi-official:matrix.org"));
matrix.setOnAction(event -> openWebpage("https://matrix.to/#/#stream-pi_general:matrix.org"));
VBox vBox = new VBox(github, discord, website, twitter, matrix);
VBox vBox = new VBox(github, discord, website, twitter, matrix);
vBox.setSpacing(10.0);
vBox.setSpacing(10.0);
setContent(vBox);
setContent(vBox);
}
}
public void openWebpage(String url)
public void openWebpage(String url)
{
{
hostServices.showDocument(url);
hostServices.showDocument(url);
}
}
}
}