-
Notifications
You must be signed in to change notification settings - Fork 106
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
New templates cause blurred / low-res look on Windows when using other than 100% display scaling settings #330
Comments
Tested also on fresh Windows 11 and Windows 10 installations following the guide on https://platform.uno/docs/articles/get-started-vs-2022.html |
Update: If built using "unpackaged" option and then run with "Override DPI scaling" in compatibility settings set to "Application" scaling works as intended (high-res, sharp). So it looks like this problem is probably caused by the app not telling the OS that it's able to scale itself. |
Update: I was able to track down a potential cause of this problem. Replacing EDIT: |
I believe this was fixed already by @MartinZikmund in unoplatform/uno.templates#44 |
Yes, that should fix the problem |
Current behavior
When using unoapp template from Uno.Templates or Visual Studio template wizard resulting Windows app is blurred / low-res looking if system display scaling is other than 100%.
(screenshot showing Uno.Templates unoapp window in the background, and native looking, not blurred window in the foreground)
![image](https://user-images.githubusercontent.com/39161575/232548792-862a1dba-3d4a-4d66-95bc-47b6d6ea9d51.png)
Expected behavior
App correctly scaling with display scaling
How to reproduce it (as minimally and precisely as possible)
Follow getting started guide (for example https://platform.uno/docs/articles/get-started-vs-2022.html) and set display scaling to 150% or 200%. App should be blurry.
Workaround
Use Rider Getting Started guide (https://platform.uno/docs/articles/get-started-rider.html?tabs=windows). App won't be blury in legacy template used in this guide.
EDIT:
Changing
<Manifest Include="$(ApplicationManifest)" />
to<Manifest Include="app.manifest" />
,<WindowsAppSDKSelfContained>
to true and deleting UnoApp.Windows/obj directory also works.(See comment #330)
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
Uno.WinUI: 4.8.24
Affected platforms
Windows
IDE
Visual Studio 2022
IDE version
17.5.4
Relevant plugins
No response
Anything else we need to know?
Windows 11 22H2
AMD 23.4.2 driver
The text was updated successfully, but these errors were encountered: