AnaelMobilia / NextINpact-Unofficial

Application Android "NextINpact (Unofficial)"
GNU General Public License v3.0
16 stars 4 forks source link

[Feature] VectorDrawable icon, Themed / Monochrome Launcher icon #313

Open sebastien46 opened 8 months ago

sebastien46 commented 8 months ago

- Added a VectorDrawable version of the ic_launcher_foreground icon using the new Next Icon:

ic_launcher_foreground_beta

- Replaced the Bitmap Version of ic_launcher_foreground with it's VectorDrawable counterpart:

image

- Added a Themed / Monochrome launcher icon:

image

- Regenerated baked bitmaps with the new ic_launcher_foreground

AnaelMobilia commented 8 months ago

Bonjour @sebastien46 ,

Qu'apportent ces changements d'icônes du launcher ?

A noter que pour les API <24, cela ajoute des dépendances supplémentaires, donc du poids à l'apk.

To support vector drawable and animated vector drawable on devices running platform versions lower than Android 5.0 (API level 21), or use fillColor, fillType and strokeColor functionalities below Android 7.0 (API level 24), [VectorDrawableCompat](https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/VectorDrawableCompat) and [AnimatedVectorDrawableCompat](https://developer.android.com/reference/androidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat) are available through two support libraries: support-vector-drawable and animated-vector-drawable, respectively.

Bonne journée, Anael

sebastien46 commented 8 months ago

Qu'apportent ces changements d'icônes du launcher ?

Pour les API <=26, cela ajoute le support des Icônes Adaptives et remplace le mipmap utilisé par l'icône par un vecteur VectorDrawable / svg, les API en dessous utilisent les mipmaps normaux comme avant, à part si la méthode AndroidX que vous mentionnez est utilisée. Si vous le souhaitez, je peux réinstaurer les anciens mipmaps pour ces appareils. Pour les API <= 33, le support des Icônes à Thème est implémenté.