gui: Added favicon

This commit is contained in:
Nathan Woodburn 2023-03-19 21:47:08 +11:00
parent 7e60847379
commit 7be83535c5
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ public class Game extends Application {
Scene scene = new Scene(this.root, WINDOW_WIDTH, WINDOW_HEIGHT); Scene scene = new Scene(this.root, WINDOW_WIDTH, WINDOW_HEIGHT);
stage.setScene(scene); stage.setScene(scene);
stage.setTitle("Blue Lagoon"); stage.setTitle("Blue Lagoon");
stage.getIcons().add(new javafx.scene.image.Image(Game.class.getResourceAsStream("favicon.png")));
stage.setResizable(false); stage.setResizable(false);
stage.show(); stage.show();
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB