forked from j62/ctbrec
Add crypto wallets again
This commit is contained in:
parent
2a74761c54
commit
fb7953e045
|
@ -2,18 +2,17 @@ package ctbrec.ui;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import ctbrec.sites.chaturbate.Chaturbate;
|
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import javafx.geometry.Pos;
|
import javafx.geometry.Pos;
|
||||||
import javafx.scene.control.Button;
|
import javafx.scene.control.Button;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
import javafx.scene.control.Tab;
|
import javafx.scene.control.Tab;
|
||||||
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.image.ImageView;
|
import javafx.scene.image.ImageView;
|
||||||
import javafx.scene.layout.BorderPane;
|
import javafx.scene.layout.BorderPane;
|
||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
import javafx.scene.text.TextAlignment;
|
|
||||||
|
|
||||||
public class DonateTabFx extends Tab {
|
public class DonateTabFx extends Tab {
|
||||||
|
|
||||||
|
@ -37,17 +36,6 @@ public class DonateTabFx extends Tab {
|
||||||
header.setPadding(new Insets(20, 0, 0, 0));
|
header.setPadding(new Insets(20, 0, 0, 0));
|
||||||
container.setTop(header);
|
container.setTop(header);
|
||||||
|
|
||||||
ImageView tokenImage = new ImageView(getClass().getResource("/html/token.png").toString());
|
|
||||||
Button tokenButton = new Button("Buy tokens");
|
|
||||||
tokenButton.setOnAction((e) -> { DesktopIntegration.open(Chaturbate.AFFILIATE_LINK); });
|
|
||||||
VBox tokenBox = new VBox(5);
|
|
||||||
tokenBox.setAlignment(Pos.TOP_CENTER);
|
|
||||||
Label tokenDesc = new Label("If you buy tokens by using this button,\n"
|
|
||||||
+ "Chaturbate will award me 20% of the tokens' value for sending you over.\n"
|
|
||||||
+ "You get the full tokens and it doesn't cost you any more!");
|
|
||||||
tokenDesc.setTextAlignment(TextAlignment.CENTER);
|
|
||||||
tokenBox.getChildren().addAll(tokenImage, tokenButton, tokenDesc);
|
|
||||||
|
|
||||||
ImageView coffeeImage = new ImageView(getClass().getResource("/buymeacoffee-round.png").toString());
|
ImageView coffeeImage = new ImageView(getClass().getResource("/buymeacoffee-round.png").toString());
|
||||||
Button coffeeButton = new Button("Buy me a coffee");
|
Button coffeeButton = new Button("Buy me a coffee");
|
||||||
coffeeButton.setOnMouseClicked((e) -> { DesktopIntegration.open("https://www.buymeacoffee.com/0xboobface"); });
|
coffeeButton.setOnMouseClicked((e) -> { DesktopIntegration.open("https://www.buymeacoffee.com/0xboobface"); });
|
||||||
|
@ -69,17 +57,49 @@ public class DonateTabFx extends Tab {
|
||||||
patreonBox.setAlignment(Pos.TOP_CENTER);
|
patreonBox.setAlignment(Pos.TOP_CENTER);
|
||||||
patreonBox.getChildren().addAll(patreonImage, patreonButton);
|
patreonBox.getChildren().addAll(patreonImage, patreonButton);
|
||||||
|
|
||||||
|
int prefWidth = 360;
|
||||||
|
TextField bitcoinAddress = new TextField("15sLWZon8diPqAX4UdPQU1DcaPuvZs2GgA");
|
||||||
|
bitcoinAddress.setEditable(false);
|
||||||
|
bitcoinAddress.setPrefWidth(prefWidth);
|
||||||
|
ImageView bitcoinQrCode = new ImageView(getClass().getResource("/html/bitcoin-address.png").toString());
|
||||||
|
Label bitcoinLabel = new Label("Bitcoin");
|
||||||
|
bitcoinLabel.setGraphic(new ImageView(getClass().getResource("/html/bitcoin.png").toString()));
|
||||||
|
VBox bitcoinBox = new VBox(5);
|
||||||
|
bitcoinBox.setAlignment(Pos.TOP_CENTER);
|
||||||
|
bitcoinBox.getChildren().addAll(bitcoinLabel, bitcoinAddress, bitcoinQrCode);
|
||||||
|
|
||||||
|
TextField ethereumAddress = new TextField("0x996041638eEAE7E31f39Ef6e82068d69bA7C090e");
|
||||||
|
ethereumAddress.setEditable(false);
|
||||||
|
ethereumAddress.setPrefWidth(prefWidth);
|
||||||
|
ImageView ethereumQrCode = new ImageView(getClass().getResource("/html/ethereum-address.png").toString());
|
||||||
|
Label ethereumLabel = new Label("Ethereum");
|
||||||
|
ethereumLabel.setGraphic(new ImageView(getClass().getResource("/html/ethereum.png").toString()));
|
||||||
|
VBox ethereumBox = new VBox(5);
|
||||||
|
ethereumBox.setAlignment(Pos.TOP_CENTER);
|
||||||
|
ethereumBox.getChildren().addAll(ethereumLabel, ethereumAddress, ethereumQrCode);
|
||||||
|
|
||||||
|
TextField moneroAddress = new TextField("448ZQZpzvT4iRNAVBr7CMQBfEbN3H8uAF2BWabtqVRckgTY3GQJkUgydjotEPaGvpzJboUpe39J8rPBkWZaUbrQa31FoSMj");
|
||||||
|
moneroAddress.setEditable(false);
|
||||||
|
moneroAddress.setPrefWidth(prefWidth);
|
||||||
|
ImageView moneroQrCode = new ImageView(getClass().getResource("/html/monero-address.png").toString());
|
||||||
|
Label moneroLabel = new Label("Monero");
|
||||||
|
moneroLabel.setGraphic(new ImageView(getClass().getResource("/html/monero.png").toString()));
|
||||||
|
VBox moneroBox = new VBox(5);
|
||||||
|
moneroBox.setAlignment(Pos.TOP_CENTER);
|
||||||
|
moneroBox.getChildren().addAll(moneroLabel, moneroAddress, moneroQrCode);
|
||||||
|
|
||||||
HBox topBox = new HBox(5);
|
HBox topBox = new HBox(5);
|
||||||
topBox.setAlignment(Pos.CENTER);
|
topBox.setAlignment(Pos.CENTER);
|
||||||
topBox.setSpacing(50);
|
topBox.setSpacing(50);
|
||||||
topBox.getChildren().addAll(tokenBox);
|
topBox.getChildren().addAll(buyCoffeeBox, paypalBox, patreonBox);
|
||||||
|
|
||||||
HBox bottomBox = new HBox(5);
|
HBox bottomBox = new HBox(5);
|
||||||
bottomBox.setAlignment(Pos.CENTER);
|
bottomBox.setAlignment(Pos.CENTER);
|
||||||
bottomBox.setSpacing(50);
|
bottomBox.setSpacing(50);
|
||||||
bottomBox.getChildren().addAll(buyCoffeeBox, paypalBox, patreonBox);
|
bottomBox.getChildren().addAll(bitcoinBox, ethereumBox, moneroBox);
|
||||||
|
|
||||||
VBox centerBox = new VBox(50);
|
VBox centerBox = new VBox(50);
|
||||||
|
VBox.setMargin(topBox, new Insets(20, 0, 0, 0));
|
||||||
centerBox.getChildren().addAll(topBox, bottomBox);
|
centerBox.getChildren().addAll(topBox, bottomBox);
|
||||||
container.setCenter(centerBox);
|
container.setCenter(centerBox);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue