-
|
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 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
This comment has been hidden.
This comment has been hidden.
-
Beta Was this translation helpful? Give feedback.
-
|
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". |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.




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