mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
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).
This commit is contained in:
parent
6fa719df2a
commit
a59e9d4073
@ -39,5 +39,10 @@
|
|||||||
<artifactId>guava</artifactId>
|
<artifactId>guava</artifactId>
|
||||||
<version>13.0</version>
|
<version>13.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aquafx-project</groupId>
|
||||||
|
<artifactId>aquafx</artifactId>
|
||||||
|
<version>0.1</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
@ -1,5 +1,6 @@
|
|||||||
package wallettemplate;
|
package wallettemplate;
|
||||||
|
|
||||||
|
import com.aquafx_project.AquaFx;
|
||||||
import com.google.bitcoin.core.NetworkParameters;
|
import com.google.bitcoin.core.NetworkParameters;
|
||||||
import com.google.bitcoin.kits.WalletAppKit;
|
import com.google.bitcoin.kits.WalletAppKit;
|
||||||
import com.google.bitcoin.params.MainNetParams;
|
import com.google.bitcoin.params.MainNetParams;
|
||||||
@ -50,6 +51,9 @@ public class Main extends Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void init(Stage mainWindow) throws IOException {
|
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.
|
// Load the GUI. The Controller class will be automagically created and wired up.
|
||||||
URL location = getClass().getResource("main.fxml");
|
URL location = getClass().getResource("main.fxml");
|
||||||
FXMLLoader loader = new FXMLLoader(location);
|
FXMLLoader loader = new FXMLLoader(location);
|
||||||
|
Loading…
Reference in New Issue
Block a user