-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Android MauiIcon resizetizering issue #11159
Comments
Checked after .net7 update (maui-* workloads - 7.0.49/7.0.100) - behavior still the same. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Any update? Thanks |
I experimented with this option today using my iPhone after we had some weird issues with ForegroundScale. My expectation was that a value of 1.0 means that my AppIcon has its full size as designed (100%) and gets reduced with values smaller than that (with 0.5 being half its original size). However, the Resizetizer takes this input value and multiplies some main scale value with it. Also: Regarding iOS I'd say: Just don't use that option. Then the mechanism is ignored and the icon behaves as expected. |
There was an issue with the conversion of the double value, caused by incorrect culture being used. |
how long usually can we expect a release for a fix for something like this? |
Hi @Bohdandn. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 2.0. Not repro on android emulator API33 platform with sample project. |
Why is the icon zoomed-in when foregroundscale=1? |
Description
MauiIcon on Android 8+ resizing wrongly scales foreground and "ForegroundScale" option that should fix it behaves unexpectedly.
Default project, default csproj, changes:
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" />
Main points:
Here how it looks like:
Emulator: Nexus 6 API24
Emulator: Pixel 3 XL API33
ForegroundScale="0.65"
ForegroundScale="0.2"
ForegroundScale="0.1"
ForegroundScale="0.05" - looking to the trend I expected this one to finally fit...
Setting BaseSize="128,128" doesn't seem to change anything
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Bohdandn/simple-maui
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 8+
Did you find any workaround?
Use android native capabilities to set icon
Relevant log output
No response
The text was updated successfully, but these errors were encountered: