* update website
This commit is contained in:
parent
5f3289a7f6
commit
31a2df2c91
|
@ -63,16 +63,14 @@ public class GettingStartedStage {
|
|||
|
||||
webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> {
|
||||
if (n == Worker.State.SUCCEEDED) {
|
||||
stage.setOpacity(1.0);
|
||||
stage.show();
|
||||
stage.toFront();
|
||||
stage.setTitle(webview.getEngine().getTitle());
|
||||
webview.requestFocus();
|
||||
} else if (n == Worker.State.FAILED) {
|
||||
stage.close();
|
||||
}
|
||||
});
|
||||
|
||||
stage.setTitle("Getting Started");
|
||||
stage.setTitle(isMacApp() ? "🚀 Loading …" : "Loading ...");
|
||||
stage.setScene(new Scene(webview, webview.getPrefWidth(), webview.getPrefHeight(), Color.BLACK));
|
||||
|
||||
// force black background while page is loading
|
||||
|
@ -80,9 +78,7 @@ public class GettingStartedStage {
|
|||
}
|
||||
|
||||
public void show() {
|
||||
stage.setOpacity(0.0);
|
||||
stage.show();
|
||||
stage.toBack();
|
||||
}
|
||||
|
||||
protected void setBackground(WebEngine engine, int color) {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
<script src="index.js"></script>
|
||||
<link rel="stylesheet" href="galleria/themes/classic/galleria.classic.css">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<title>Getting Started</title>
|
||||
</head>
|
||||
<body onload="runGalleria()">
|
||||
<div class="galleria"></div>
|
||||
|
|
Loading…
Reference in New Issue