Remove PayPal and BuyMeACoffee
This commit is contained in:
parent
d15a851a3a
commit
e66f360571
|
@ -2,10 +2,8 @@ package ctbrec.ui.tabs;
|
|||
|
||||
|
||||
|
||||
import ctbrec.ui.DesktopIntegration;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.Tab;
|
||||
import javafx.scene.control.TextField;
|
||||
|
@ -37,22 +35,6 @@ public class DonateTabFx extends Tab {
|
|||
header.setPadding(new Insets(20, 0, 0, 0));
|
||||
container.setTop(header);
|
||||
|
||||
ImageView coffeeImage = new ImageView(getClass().getResource("/buymeacoffee-round.png").toString());
|
||||
Button coffeeButton = new Button("Buy me a coffee");
|
||||
coffeeButton.setPadding(new Insets(5));
|
||||
coffeeButton.setOnMouseClicked(e -> DesktopIntegration.open("https://www.buymeacoffee.com/0xboobface"));
|
||||
VBox buyCoffeeBox = new VBox(5);
|
||||
buyCoffeeBox.setAlignment(Pos.TOP_CENTER);
|
||||
buyCoffeeBox.getChildren().addAll(coffeeImage, coffeeButton);
|
||||
|
||||
ImageView paypalImage = new ImageView(getClass().getResource("/paypal-round.png").toString());
|
||||
Button paypalButton = new Button("PayPal");
|
||||
paypalButton.setPadding(new Insets(5));
|
||||
paypalButton.setOnMouseClicked(e -> DesktopIntegration.open("https://www.paypal.me/0xb00bface"));
|
||||
VBox paypalBox = new VBox(5);
|
||||
paypalBox.setAlignment(Pos.TOP_CENTER);
|
||||
paypalBox.getChildren().addAll(paypalImage, paypalButton);
|
||||
|
||||
int prefWidth = 360;
|
||||
TextField bitcoinAddress = new TextField("15sLWZon8diPqAX4UdPQU1DcaPuvZs2GgA");
|
||||
bitcoinAddress.setEditable(false);
|
||||
|
@ -74,7 +56,7 @@ public class DonateTabFx extends Tab {
|
|||
ethereumBox.setAlignment(Pos.TOP_CENTER);
|
||||
ethereumBox.getChildren().addAll(ethereumLabel, ethereumAddress, ethereumQrCode);
|
||||
|
||||
TextField moneroAddress = new TextField("448ZQZpzvT4iRNAVBr7CMQBfEbN3H8uAF2BWabtqVRckgTY3GQJkUgydjotEPaGvpzJboUpe39J8rPBkWZaUbrQa31FoSMj");
|
||||
TextField moneroAddress = new TextField("871K7xaLR2X8E84CUBi7D88diXgKjbhjZHTEFfJv9ec9eo4NVPCQ2UsGxkroseCcKQbZsHMgW3kg6HR4tfct3fX2HoFDzK6");
|
||||
moneroAddress.setEditable(false);
|
||||
moneroAddress.setPrefWidth(prefWidth);
|
||||
ImageView moneroQrCode = new ImageView(getClass().getResource("/html/monero-address.png").toString());
|
||||
|
@ -84,19 +66,14 @@ public class DonateTabFx extends Tab {
|
|||
moneroBox.setAlignment(Pos.TOP_CENTER);
|
||||
moneroBox.getChildren().addAll(moneroLabel, moneroAddress, moneroQrCode);
|
||||
|
||||
HBox topBox = new HBox(5);
|
||||
topBox.setAlignment(Pos.CENTER);
|
||||
topBox.setSpacing(50);
|
||||
topBox.getChildren().addAll(buyCoffeeBox, paypalBox);
|
||||
|
||||
HBox bottomBox = new HBox(5);
|
||||
bottomBox.setAlignment(Pos.CENTER);
|
||||
bottomBox.setSpacing(50);
|
||||
bottomBox.getChildren().addAll(bitcoinBox, ethereumBox, moneroBox);
|
||||
VBox.setMargin(bottomBox, new Insets(20, 0, 0, 0));
|
||||
|
||||
VBox centerBox = new VBox(50);
|
||||
VBox.setMargin(topBox, new Insets(20, 0, 0, 0));
|
||||
centerBox.getChildren().addAll(topBox, bottomBox);
|
||||
centerBox.getChildren().addAll(bottomBox);
|
||||
container.setCenter(centerBox);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue