Set Envoy logo as stage icon

This commit is contained in:
Kai S. K. Engelbart 2020-03-26 21:01:42 +01:00
parent 5cd5d516c0
commit 3a9fa365b4
3 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package envoy.client.ui;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
@ -26,6 +27,7 @@ public final class Startup extends Application {
var chatScene = new Scene(anchorPane);
primaryStage.setTitle("Envoy");
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/icons/envoy_logo.png")));
primaryStage.setScene(chatScene);
primaryStage.show();
}

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB