* update website

This commit is contained in:
Reinhard Pointner 2015-06-05 17:53:13 +00:00
parent 5f3289a7f6
commit 31a2df2c91
2 changed files with 3 additions and 6 deletions

View File

@ -63,16 +63,14 @@ public class GettingStartedStage {
webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> { webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> {
if (n == Worker.State.SUCCEEDED) { if (n == Worker.State.SUCCEEDED) {
stage.setOpacity(1.0); stage.setTitle(webview.getEngine().getTitle());
stage.show();
stage.toFront();
webview.requestFocus(); webview.requestFocus();
} else if (n == Worker.State.FAILED) { } else if (n == Worker.State.FAILED) {
stage.close(); stage.close();
} }
}); });
stage.setTitle("Getting Started"); stage.setTitle(isMacApp() ? "🚀 Loading …" : "Loading ...");
stage.setScene(new Scene(webview, webview.getPrefWidth(), webview.getPrefHeight(), Color.BLACK)); stage.setScene(new Scene(webview, webview.getPrefWidth(), webview.getPrefHeight(), Color.BLACK));
// force black background while page is loading // force black background while page is loading
@ -80,9 +78,7 @@ public class GettingStartedStage {
} }
public void show() { public void show() {
stage.setOpacity(0.0);
stage.show(); stage.show();
stage.toBack();
} }
protected void setBackground(WebEngine engine, int color) { protected void setBackground(WebEngine engine, int color) {

View File

@ -6,6 +6,7 @@
<script src="index.js"></script> <script src="index.js"></script>
<link rel="stylesheet" href="galleria/themes/classic/galleria.classic.css"> <link rel="stylesheet" href="galleria/themes/classic/galleria.classic.css">
<link rel="stylesheet" href="index.css"> <link rel="stylesheet" href="index.css">
<title>Getting Started</title>
</head> </head>
<body onload="runGalleria()"> <body onload="runGalleria()">
<div class="galleria"></div> <div class="galleria"></div>