Closed edgarfgp closed 2 years ago
@TimLariviere This is ready for another review. Thanks for you patience 😀
@TimLariviere I think I have addressed all you suggestions 😀 . I had to put aspect on the image as the first parameter for convenience with the dark support. Let me know if there is anything I can improve .
Thanks!
I had to put aspect on the image as the first parameter for convenience with the dark support
I'm ok with that.
Btw Attributes.getAppTheme
was not making much sense given AppThemeValues.create
was already checking for Some | None
, and you also were checking for this inside the extension methods.
So I moved create
into a module (to avoid having to specify the generic type) and changed the extension methods a bit to only convert the dark value when needed.
Inlining will transform match dark with None -> None | Some v -> (...)
to simply v
anyway
Thanks for the explanation. Yeah it look much better now . I will keep in mind for my next PR’s 😀
Edit: I forgot to update the samples . I will make sure this does not Happen from now on
This PR add Image extensions based on https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.image?view=xamarin-forms :