-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Regression] Window bar app icon is low quality again #7361
Comments
Seems like NW2 is causing this, so tagging #7230 |
+1 Maybe related issue: #7379 |
It works for me with this sample: |
Agreed, icon has "sharp" render. Check screenshots inside this issue: #7379 (comment). |
@TheRealDannyyy could you attach a picture with the good icon of my sample project? |
@rogerwang Any progress on this minor issue? I'm not sure if I can provide more info for reproduction. Disabling NW2 should give a good comparison between icon qualities. Would be great if we can get this fixed for the next major release. |
@rogerwang the problem is that NW2 sharpens the icon, instead of the usual behavior (see NW1 behavior). This can in some cases look better but in most cases, just reduces the quality of icons and makes them look "over-sharpened" to users. |
Could you provide a sample of reduced quality? |
Here is another test example (download: icon comparison.zip): You can also visit Construct 3 |
Can you confirm the regression happens first in 0.43.5? I have a sample suggests this. Your sample doesn't look obvious here and the construct 3 website doesn't show with any favicon when I load it in NW with |
Construct 3 Download: https://downloads.scirra.com/c3-desktop/c3-nwjs-package-beta.zip The regression happens first in 0.42.4, which is also when NW2 got released. I think this issue might be caused by Chrome's Windows 10 custom titlebar implementation. |
I didn't try the c3 package because it's a complex application and the window icon can be affected in various places. It would be helpful if you can extract the icon from it and confirm that with the simple sample ... |
With the C3 icon and your provided sample: NW2_C3.zip |
I just made some adjustments to the drawing code of the custom title bar. But it can't be identical to the system native titlebar as the icon is resized and drawn by system GUI code in that case, while with custom titlebar the icon is shrinked and drawed by skia, which in turn uses GPU shader to draw the image. For finer control on this I suggest using a 1:1 small icon picture, or use the native titlebar. |
Thanks! Will review it when it's live. |
Tested and works fine in NWjs 0.46.1, thanks for the fix! |
NWJS Version: v0.44.0
Operating System: Windows 10
Expected behavior
High quality icon should be set like in the task bar.
Actual behavior
Low quality icon is being used in window bar
How to reproduce
Download Construct 3 Desktop and just run it on a Windows 10 system.
The text was updated successfully, but these errors were encountered: