mfractor / mfractor-feedback

Found a bug or have a feature request for MFractor? Submit it here!
3 stars 0 forks source link

Launcher Icon Importer #300

Closed ravero closed 3 years ago

ravero commented 3 years ago

The App Icon Importer already allows developers to import single images as App Icon on iOS and Launcher Icons (using mipmap single image) to Android, which is enough for iOS but still lacks an important characteristic of Android Launcher Icons on more recent versions, the Adaptive Icons.

The idea of this feature is to build upon the existing App Icon Importer to add support for importing Adaptive Icons to Android projects. The Adaptive Icons has it's own requirements and validations, but a very simplified workflow would be:

At first my idea was to integrate those features on the existing Icon Importer dialog, but having a deep thought on it, maybe it would be better to have a separate dialog specific for this kind of import. This would avoid confusion with iOS that uses a single image. Also would avoid confusion on eligible target projects, that in a separate dialog would be only Android projects on the solution. Notice that this doesn't invalidate the current Icon Importer Features, since the user may still want to import only a single image icon to his android projects and not adopt the adaptive icons.

lachlanwgordon commented 3 years ago

For my adaptive icons I usually use a blank colour for my XML drawable for the background. I've also seen this in templates from Microsoft and Google so i think it's fairly common.

Could you have the option to select a foreground PNG and just enter a hex code/use a colour picker for the background?

matthewrdev commented 3 years ago

@lachlanwgordon @ravero This has been implemented in the Visual Studio Mac version of the app icon importer; please see the Create Adaptive Icon checkbox to generate the launcher_foreground images and the icon and icon_round xml files. MFractor will default the background to @android:color/white.

image