Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Oct 18, 2022
1 parent 6b62520 commit ec31ecd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/colordetector/BaseApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void start(Stage stage) throws IOException, NativeHookException {
stage.setScene(scene);
stage.show();

stage.getIcons().add(new Image("file:app-icon.png"));
stage.getIcons().add(new Image(Objects.requireNonNull(getClass().getClassLoader().getResource("app-icon.png")).toExternalForm()));

GlobalScreen.registerNativeHook();
GlobalKeyListener globalKeyListener = new GlobalKeyListener(controller);
Expand Down
Binary file added src/main/resources/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec31ecd

Please sign in to comment.