Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.9.0: Windows system tray icon is low resolution #1996

Closed
devinbileck opened this issue Nov 29, 2018 · 8 comments
Closed

0.9.0: Windows system tray icon is low resolution #1996

devinbileck opened this issue Nov 29, 2018 · 8 comments

Comments

@devinbileck
Copy link
Member

The new Bisq icon shown in the Windows system tray is low resolution and looks bad.
image

@ripcurlx
Copy link
Contributor

I'll add a high-res icon version and do the same retina check as we do for macOS. Hopefully that solves this problem.

ripcurlx added a commit to ripcurlx/bisq-desktop that referenced this issue Nov 29, 2018
@devinbileck
Copy link
Member Author

@ripcurlx Now I am encountering the following

Nov-30 00:21:17.300 [JavaFX Application Thread] ERROR bisq.desktop.app.BisqApp: Error during app init java.lang.IllegalArgumentException: input == null!
	at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1400)
	at bisq.desktop.app.SystemTray.init(SystemTray.java:107)
	at bisq.desktop.app.SystemTray.<init>(SystemTray.java:74)
	at bisq.desktop.app.SystemTray.create(SystemTray.java:68)
	at bisq.desktop.app.BisqApp.setupStage(BisqApp.java:231)
	at bisq.desktop.app.BisqApp.startApplication(BisqApp.java:137)
	at bisq.desktop.app.BisqAppMain.startApplication(BisqAppMain.java:126)
	at bisq.core.app.BisqExecutable.onApplicationLaunched(BisqExecutable.java:211)
	at bisq.desktop.app.BisqAppMain.onApplicationLaunched(BisqAppMain.java:94)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
	at java.base/java.lang.Thread.run(Thread.java:844)

task_bar_icon_windows@2x.png needs to be renamed to system_tray_icon_windows@2x.png

When I rename it, the icon is still shown low-res in the system tray. Might need to provide a different icon size or update the icon scaling (https://github.com/bisq-network/bisq/blob/master/desktop/src/main/java/bisq/desktop/app/SystemTray.java#L108)

@devinbileck
Copy link
Member Author

I find that if I use trayIcon.setImageAutoSize(true) instead of trayIconImage.getScaledInstance, it does look a little better:
image

However, I have only tried this change on my laptop (which uses the hi res image) and have not tried on my desktop (which uses the low res image). And I have also not tried it on Linux.

@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 1, 2018

Damn, I thought it will work the same as with macOS. I’ll try it in my Windows VM on Monday morning. Just is a little bit slow to work with.

@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 1, 2018

Worst case scenario I’ll roll it back as it was before and we add it in the next update, when we have time to properly test it.

@devinbileck
Copy link
Member Author

@ripcurlx can you reopen this so we remember to address it.

@ripcurlx ripcurlx reopened this Dec 3, 2018
@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 4, 2018

@devinbileck Do you want to take this issue yourself? I think it might be easier to test on a real Windows machine than within a VM. Let me know if you need any help with the setup.

@devinbileck
Copy link
Member Author

@ripcurlx Sure, I will look into this one.

devinbileck added a commit to devinbileck/bisq that referenced this issue Feb 26, 2019
For high resolution, using auto sizing provides better results.

Fixes bisq-network#1996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants