Upgraded to latest v3.0.0 and my icons are now way larger #65
|
Hello, I recently updated from version 2.4.1 to 3.0.0, and now all my app icons appear much larger due to the new sizing mechanism. Previously, my app was using specific width and height values. Is there a setting I can adjust to ensure that the icon sizes behave the same as they did in version 2.4.1? This way, I can gradually transition my icons to use IconSize instead of the fixed width and height. I am on AvaloniaUI, thanks |
Replies: 6 comments 6 replies
This comment has been hidden.
This comment has been hidden.
|
Hello, Same request here, I want to keep pixel perfect icons using v3.0.0 vs 2.4.1 Here is what I have : What should I change to keep the pixel perfect ? I have more than 370 icons in my app so the change need to be "generic". |
|
Currently there is no way to make it pixel perfect with the previous implementation. To kinda mimic previous behavior you can experiment with a Padding property on MaterialIcon. If you want to globally it your app, you can write style and put it to App.axaml, App.Styles section, something like this: <Style Selector="MaterialIcon">
<Setter Property="Padding" Value="2" />
<Style/>This issue would be tracked at #68 |
|
I merged #73 the fixed Width/Height=24 for a Path, and this is making the sizing the same as in 2.x.x (for my tests and use cases at least). This is published as https://www.nuget.org/packages/Material.Icons/3.0.2-nightly.0.1, so check it and share your feedback. Issue tracked in #68 |
|
Should be fixed in https://www.nuget.org/packages/Material.Icons/3.0.2 If you still experience issues with sizing under some conditions, please, open a new issue with details. Sorry for inconvenience, everyone |




Should be fixed in https://www.nuget.org/packages/Material.Icons/3.0.2
If you still experience issues with sizing under some conditions, please, open a new issue with details.
Sorry for inconvenience, everyone