diff --git a/app-ui/src/main/java/com/mercury/platform/ui/components/panel/settings/page/SupportPagePanel.java b/app-ui/src/main/java/com/mercury/platform/ui/components/panel/settings/page/SupportPagePanel.java index 3dd1ca40..37de75ad 100644 --- a/app-ui/src/main/java/com/mercury/platform/ui/components/panel/settings/page/SupportPagePanel.java +++ b/app-ui/src/main/java/com/mercury/platform/ui/components/panel/settings/page/SupportPagePanel.java @@ -27,7 +27,7 @@ public void onViewInit() { JTextArea donateText = componentsFactory.getSimpleTextArea("We aimed to create a convenience tool in form of an easy-to-use application, primarily for trading purposes. If MercuryTrade successfully managed to save your time or improve your experience, you can thank us by donating or telling your friends. If you want your name to be featured in our in-app Hall of Fame please provide this information within the transaction!"); - donateText.setPreferredSize(new Dimension(300, 150)); + donateText.setPreferredSize(new Dimension(300, 450)); JPanel donateButtonPanel = componentsFactory.getTransparentPanel(new FlowLayout(FlowLayout.CENTER)); donateButtonPanel.setBorder(BorderFactory.createEmptyBorder(60, 0, 0, 0)); donatePanel.add(donateButtonPanel); @@ -82,6 +82,7 @@ public void mouseWheelMoved(MouseWheelEvent e) { private List getDonations() { List donations = new ArrayList<>(); + donations.add(new DonationPair("SmoofBrane", AppThemeColor.TEXT_NICKNAME)); donations.add(new DonationPair("LiftingNerdBro", AppThemeColor.TEXT_DEFAULT)); donations.add(new DonationPair("Sklifan", AppThemeColor.TEXT_DEFAULT)); donations.add(new DonationPair("222Craft", AppThemeColor.TEXT_DEFAULT)); diff --git a/app-ui/src/main/java/com/mercury/platform/ui/frame/titled/SettingsFrame.java b/app-ui/src/main/java/com/mercury/platform/ui/frame/titled/SettingsFrame.java index 3b2a11fe..e2da7104 100644 --- a/app-ui/src/main/java/com/mercury/platform/ui/frame/titled/SettingsFrame.java +++ b/app-ui/src/main/java/com/mercury/platform/ui/frame/titled/SettingsFrame.java @@ -126,8 +126,21 @@ private JPanel getSaveButtonPanel() { MercuryStoreUI.settingsRestoreSubject.onNext(true); }); + JButton donate = componentsFactory.getIconButton("app/paypal.png", 70f, AppThemeColor.ADR_FOOTER_BG, "Donate"); + donate.addMouseListener(new MouseAdapter() { + @Override + public void mousePressed(MouseEvent e) { + try { + Desktop.getDesktop().browse(new URI("https://www.paypal.me/Morph21MT")); + } catch (Exception e1) { + e1.printStackTrace(); + } + } + }); + saveButton.setPreferredSize(new Dimension(110, 26)); cancelButton.setPreferredSize(new Dimension(110, 26)); + root.add(this.componentsFactory.wrapToSlide(donate, AppThemeColor.HEADER, 2, 2, 2, 2)); root.add(this.componentsFactory.wrapToSlide(cancelButton, AppThemeColor.HEADER, 2, 2, 2, 2)); root.add(this.componentsFactory.wrapToSlide(saveButton, AppThemeColor.HEADER, 2, 2, 2, 2)); return root; diff --git a/app-ui/src/main/resources/currency/alch.png b/app-ui/src/main/resources/currency/alch.png new file mode 100644 index 00000000..880df86a Binary files /dev/null and b/app-ui/src/main/resources/currency/alch.png differ