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

AppWindow Icon renders at low quality #614

Open
PremekTill opened this issue Oct 3, 2024 · 1 comment
Open

AppWindow Icon renders at low quality #614

PremekTill opened this issue Oct 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@PremekTill
Copy link

Describe the bug
The Fluent Avalonia AppWindow Icon (top left on OS Windows) renders at low quality, which results in a significantly worse image quality compared to the base Avalonia Window Icon.

After some testing, this seems to be caused by bitmap interpolation quality settings – setting RenderOptions.BitmapInterpolationMode="HighQuality" on the AppWindow brings the rendering quality to the same level as in base Avalonia. As such, to fix this issue, it might be enough to set the BitmapInterpolationMode on the Icon directly. (The issue may have been caused by a change in the defaults for this setting between Avalonia 0.10 and 11.0 in the first place.)

Screenshots
window_icon_comparison
Left to right: FluentAvalonia AppWindow Icon (current), Avalonia Window Icon, FluentAvalonia AppWindow Icon (set to HighQuality).

Desktop/Platform (please complete the following information):

  • OS: Windows 10
  • FluentAvalonia Version 2.1.0
  • Avalonia Version 11.1.3

Additional context
This issue seems very similar to #600, but I'm not sure if the cause could be the same (there seems to be no way to set BitmapInterpolation mode globally and I do not know whether Taskbar Icon is affected by this setting at all). There were also some other changes specific to Taskbar Icon rendering in downstream Avalonia (AvaloniaUI/Avalonia#14564) which, if they do not carry over to AppWindow, could cause the difference found in #600 independently of this issue.

@PremekTill PremekTill added the bug Something isn't working label Oct 3, 2024
@amwx
Copy link
Owner

amwx commented Nov 29, 2024

I have no clue why this would happen. There is nothing in the AppWindow code that deals anything with icon quality or the native win32 taskbar icons. So unless redefining the style for AppWindow is missing something that the default Avalonia Window has, I'm at a loss.
Note: I don't want to set the RenderQuality on the Window to HighQuality as I don't know what impacts that may have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants