mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-20 12:54:37 -04:00
Moved window icon code to main class
This commit is contained in:
parent
864c7a15db
commit
89b7dac5b8
2 changed files with 8 additions and 8 deletions
|
@ -22,6 +22,7 @@ import io.bitsquare.di.BitSquareModule;
|
|||
import io.bitsquare.gui.AWTSystemTray;
|
||||
import io.bitsquare.gui.Navigation;
|
||||
import io.bitsquare.gui.components.Popups;
|
||||
import io.bitsquare.gui.util.ImageUtil;
|
||||
import io.bitsquare.gui.util.Profiler;
|
||||
import io.bitsquare.msg.MessageFacade;
|
||||
import io.bitsquare.msg.SeedNodeAddress;
|
||||
|
@ -42,6 +43,7 @@ import java.util.List;
|
|||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.*;
|
||||
import javafx.scene.image.*;
|
||||
import javafx.scene.input.*;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
|
@ -140,6 +142,12 @@ public class BitSquare extends Application {
|
|||
|
||||
primaryStage.setTitle("BitSquare (" + APP_NAME + ")");
|
||||
|
||||
// sometimes there is a rendering bug, see https://github.com/bitsquare/bitsquare/issues/160
|
||||
if (ImageUtil.isRetina())
|
||||
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/images/window_icon@2x.png")));
|
||||
else
|
||||
primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/images/window_icon.png")));
|
||||
|
||||
ViewLoader.setInjector(injector);
|
||||
|
||||
final ViewLoader loader =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue