forked from j62/ctbrec
1
0
Fork 0

Replace patreon button with Ko-fi

This commit is contained in:
0xboobface 2020-05-13 20:03:09 +02:00
parent bd92c315fb
commit e04b528edd
3 changed files with 7 additions and 7 deletions

View File

@ -40,7 +40,7 @@ public class DonateTabFx extends Tab {
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"); });
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);
@ -48,18 +48,18 @@ public class DonateTabFx extends Tab {
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"); });
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);
ImageView patreonImage = new ImageView(getClass().getResource("/patreon-round.png").toString());
Button patreonButton = new Button("Become a Patron");
patreonButton.setPadding(new Insets(5));
patreonButton.setOnMouseClicked((e) -> { DesktopIntegration.open("https://www.patreon.com/0xb00bface"); });
ImageView kofiImage = new ImageView(getClass().getResource("/kofi-round.png").toString());
Button kofiButton = new Button("Ko-fi");
kofiButton.setPadding(new Insets(5));
kofiButton.setOnMouseClicked(e -> DesktopIntegration.open("https://ko-fi.com/0xb00bface"));
VBox patreonBox = new VBox(5);
patreonBox.setAlignment(Pos.TOP_CENTER);
patreonBox.getChildren().addAll(patreonImage, patreonButton);
patreonBox.getChildren().addAll(kofiImage, kofiButton);
int prefWidth = 360;
TextField bitcoinAddress = new TextField("15sLWZon8diPqAX4UdPQU1DcaPuvZs2GgA");

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB