wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.93k stars 1.31k forks source link

Add custom icon options. #14476

Open mattmiklic opened 3 years ago

mattmiklic commented 3 years ago

On iOS we offer custom icons as it's an option provided by the system. Speaking with @ParaskP7 we wanted to explore whether it's possible to bring this to Android as well. There are five color options, but I'll show two for the sake of brevity:

Pink: Pink

Spectrum: Spectrum

I've exported all five background colors as separate SVGs. The foreground SVG is included in this zip, but it's unchanged from what we're currently using.

New-Icons.zip

If we find out this is possible, then I'll look at how we should present the options in the UI.

Dan-Q commented 3 years ago

Even if Android doesn't natively support applications with multiple icon types, this might be somewhat achievable by adding a new Widget type (like the existing "just the icon" widget) but in other (or selectable!) color styles that can be pinned to the desktop. Basically-this approach is used by the FeedMe feed reader app to allow users to add a custom-colored shortcut icon to their desktop.

eduardozulian commented 2 years ago

If we implement this, it would be nice to also offer a themed icon for Android 12

kuropixel commented 2 years ago

Just wanted to add that some users at wpcom (5262120-zen) are also requesting the option to have custom icons or the ability to choose.

I wanted to note that the Android DuckDuckGo app had this feature. Would it be difficult to implement? Screenshot_20220605-125723 Screenshot_20220605-125736

mattmiklic commented 2 years ago

I'd love for us to add custom icon choices for Android the way we do on iOS. I wasn't aware that it was possible on Android but I recently found out it's available in Pocket Casts for Android as well.

joashrajin commented 2 years ago

@mattmiklic Yes, with Pocket Casts you can choose your app icon. It generally works fine, but with the current implementation you end up with 2 icons - the original app icon and the custom icon that the user chose.

We normally just recommend that users drag the custom icon to their home screen. Some Launchers also allow you to hide the duplicate app icon.

kuropixel commented 2 years ago

Another request. 5280194-zen

joashrajin commented 2 years ago

+1 at #5332325-zen

thomashorta commented 1 year ago

Just adding a bit of extra info here.

I just took a quick look at the behavior of both of them (DuckDuckGo and Pocket Casts) and they do it differently.

DDG

DDG does seem to change the icon of their launcher activity so the launcher icon is replaced by the one you chose. I am not 100% sure how they achieve this, but it looks like good behavior, though the app kinda looks like it crashed when it changed the icon (probably a forced app restart, on purpose).

image

Pocket Casts

Pocket Casts uses a different approach, having several disabled activity aliases for the launcher Activity, one for each icon, and enabling the one the user chooses, causing more than 1 launcher to appear, so you can choose the one you will put in your main screen. Having more than 1 launcher looks odd, even though the app does tell the user that multiple icons will appear in their launcher and that it might take a while for the icon to appear (probably depends on the launcher / device OEM).

image