mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-20 21:04:28 -04:00
Add window icon, change texts, remove balance display
This commit is contained in:
parent
4b117b2e84
commit
d2b1c5f37c
22 changed files with 68 additions and 88 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.persistence.Persistence;
|
||||
|
@ -40,6 +41,7 @@ import java.util.Arrays;
|
|||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.*;
|
||||
import javafx.scene.image.*;
|
||||
import javafx.scene.input.*;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
|
@ -110,6 +112,12 @@ public class BitSquare extends Application {
|
|||
settings.applyPersistedSettings((Settings) persistence.read(settings.getClass().getName()));
|
||||
|
||||
primaryStage.setTitle("BitSquare (" + APP_NAME + ")");
|
||||
if (ImageUtil.isRetina())
|
||||
primaryStage.getIcons().add(new Image(BitSquare.class.getResourceAsStream
|
||||
("/images/window_icon@2x.png")));
|
||||
else
|
||||
primaryStage.getIcons().add(new Image(BitSquare.class.getResourceAsStream
|
||||
("/images/window_icon.png")));
|
||||
|
||||
ViewLoader.setInjector(injector);
|
||||
|
||||
|
@ -136,8 +144,6 @@ public class BitSquare extends Application {
|
|||
|
||||
Profiler.initScene(primaryStage.getScene());
|
||||
|
||||
// primaryStage.setOnCloseRequest(observable -> stop());
|
||||
|
||||
primaryStage.show();
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue