From a59e9d4073a6b4af21ba0b69da56a0e1e806df57 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Sun, 22 Sep 2013 15:01:40 +0200 Subject: [PATCH] Wallet template: use Aqua style on MacOS. The indeterminate progress bar is a bit buggy in this version but the rest looks correct (for Mountain Lion). --- wallettemplate/pom.xml | 5 +++++ wallettemplate/src/main/java/wallettemplate/Main.java | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/wallettemplate/pom.xml b/wallettemplate/pom.xml index 9fe2dc95..13815ff0 100644 --- a/wallettemplate/pom.xml +++ b/wallettemplate/pom.xml @@ -39,5 +39,10 @@ guava 13.0 + + com.aquafx-project + aquafx + 0.1 + \ No newline at end of file diff --git a/wallettemplate/src/main/java/wallettemplate/Main.java b/wallettemplate/src/main/java/wallettemplate/Main.java index 29fd7ceb..94248b7e 100644 --- a/wallettemplate/src/main/java/wallettemplate/Main.java +++ b/wallettemplate/src/main/java/wallettemplate/Main.java @@ -1,5 +1,6 @@ package wallettemplate; +import com.aquafx_project.AquaFx; import com.google.bitcoin.core.NetworkParameters; import com.google.bitcoin.kits.WalletAppKit; import com.google.bitcoin.params.MainNetParams; @@ -50,6 +51,9 @@ public class Main extends Application { } private void init(Stage mainWindow) throws IOException { + if (System.getProperty("os.name").toLowerCase().contains("mac")) { + AquaFx.style(); + } // Load the GUI. The Controller class will be automagically created and wired up. URL location = getClass().getResource("main.fxml"); FXMLLoader loader = new FXMLLoader(location);