Page 1 of 1

Changeable shortcut icon?

Posted: 09 Oct 2016 13:26
by Econdoc
I have a Home page shortcut that toggles cell data on and off. I would like the shortcut to indicate, either by different colors or by two different icons, the on/off state.
Is it possible to do?

Re: Changeable shortcut icon?

Posted: 09 Oct 2016 15:44
by MURTUMA
Short answer: no.

Long answer: It is possible but the procedure in launchers in general makes it so complicated and/or inconvenient that it effectively renders it un-usable.

The shortcuts and app icons are created and handled by launcher itself. It could be possible to remove the shortcut and make a new one with different icon with action Control ui, but I can't recommend even trying that at all. Currently the only exeption I know of for this is Lightning Launcher. Nearly everything(including the shortcut icons) is customizable and controllable with Automagic via plugins provided by the launcher. It also allows to make scripts in the launcher itself so you might not even need Automagic for handling the shortcut icon.

Bushmills wrote an excellent thread on this subject and it might help you to get started if you already use or are ready to change to Lightning Launcher: http://automagic4android.com/forum/view ... f=5&t=5898

Re: Changeable shortcut icon?

Posted: 10 Oct 2016 18:51
by Martin
Alternatively you could also use a widget instead of a shortcut. Automagic provides the widget AM Toggle Widget to toggle between on/off respectively true/false which usually works quite OK but is not very flexible in the way it looks.
Using a custom widget could also work but changing the icon requires to use action Script and function setWidgetElementProperty so I would only recommend it when you are comfortable with scripting.

Regards,
Martin