Using Tasker to change the appearance of a Quick-Setting tile?

848 views
Skip to first unread message

Hippo Man

unread,
Apr 2, 2020, 4:30:17 PM4/2/20
to Tasker
I have a task which toggles the value of a variable between 0 and 1, and other Tasker tasks alter their behavior based upon that variable's value.

I put a reference to that task in Settings->Action-Quick Settings Tasks, and that allows me to invoke that task by means of a Quick-Setting tile.

I'm wondering if there is any way in Tasker to change the appearance of that Quick-Setting tile based upon the value of that toggled variable. This way, I could visually determine the setting of that variable as I click that tile.

By "change the appearance", I'm talking about any visual alteration: size, color, title, shape, or whatever.

Thank you very much.

João Dias

unread,
Apr 3, 2020, 7:24:05 AM4/3/20
to tas...@googlegroups.com
This is currently not possible with Tasker. Use AutoNotifcation instead to fully configure quick setting tiles though :)

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Message has been deleted

Hippo Man

unread,
Apr 3, 2020, 11:29:22 AM4/3/20
to Tasker
On Friday, April 3, 2020 at 7:24:05 AM UTC-4, joaomgcd wrote:
This is currently not possible with Tasker. Use AutoNotifcation instead to fully configure quick setting tiles though :)

Thank you very much.

I don't see a way to reconfigure the appearance of existing Quick-Setting tiles in AutoNotification, either. 

Am I missing something?

João Dias

unread,
Apr 3, 2020, 11:57:30 AM4/3/20
to tas...@googlegroups.com
Can you clarify what you mean by "existing"?

Hippo Man

unread,
Apr 3, 2020, 2:54:31 PM4/3/20
to Tasker
On Friday, April 3, 2020 at 11:57:30 AM UTC-4, joaomgcd wrote:
Can you clarify what you mean by "existing"?

By "existing", I mean altering the appearance of a Quick-Setting tile which is already in use.

Specifically ...

I'd like to set up a Quick-Setting tile via AutoNotification (or any other viable method) and have it fire off a Tasker task when it is clicked.

This Tasker task would perform various functions, and it would also toggle a Tasker variable from 0 to 1 or from 1 to 0.  In other words, that Tasker variable would have two states which are toggled every time the Quick-Setting tile is clicked.

The value of that Tasker variable would affect the functionality of the Tasker task. And I also I want the value of that Tasker variable to determine the physical apparance of the Quick-Setting tile. For example, when the value is 0, the Quick-Setting tile might be shown with one background color, and when the value is 1, the tile might be shown with a different background color. So whenever that Quick-Setting tile is clicked, it would toggle its appearance in conjunction with the current setting of that Tasker variable.

I don't care if this change in physical appearance involves color, size, title text, or whatever. I just want to be able to view the tile and know what the current state of that Tasker variable is, and for the appearance of the tile to always reflect the state of that Tasker variable.

Some standard system tiles already work that way. For example, the Airplane Mode tile changes its appearance depending on whether Airplane Mode is toggled on or off. I would like my custom tile to behave in a parallel fashion.

Hippo Man

unread,
Apr 3, 2020, 9:22:05 PM4/3/20
to Tasker
I ended up getting this working.

I created a task which toggles the Tasker variable and then uses the AutoNotification tile action to manage one of the available tiles. It gets called two ways, based on the value of that Tasker variable, each way setting the tile to have a different icon on it. That takes care of the tile toggling between the two appearances, based upon that variable's value.

Both actions have the same command associated with them, and there is a context which responds to that command in an AutoApps command filter event which fires off the task I mentioned above. In addition to setting the tile icon based upon the value of the Tasker variable, that task also implements the the functionality that needs to be performed, depending upon the value of that Tasker variable.

This all works fine on my device.

Hippo Man

unread,
Apr 3, 2020, 9:32:54 PM4/3/20
to Tasker
Here's pseudo-code for what I did ...

Task ToggleTile
 
Variable set SpecialVar = (SpecialVar + 1) % 2
 
If SpecialVar < 1 then
   
Perform Tile:AutoNotification, command = toggle_tile, icon = icon0
   
# execute the code specific to SpecialVar == 0
 
Else
   
Perform Tile:AutoNotification, command = toggle_tile, icon = icon1
   
# execute the code specific to SpecialVar == 1
 
EndIf

Profile TileMonitor
 
Event: AutoAppsCommand, filter = toggle_tile
         
Fire off task ToggleTile



João Dias

unread,
Apr 6, 2020, 7:21:48 AM4/6/20
to tas...@googlegroups.com
Glad you got it! :)
Reply all
Reply to author
Forward
0 new messages