Difference between revisions of "Trigger: Floating Button"

Line 1: Line 1:
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About this trigger</strong></span>
+
<pre class="header-style">
 
 
 
 
 
This trigger will display a floating button on the screen that can be clicked to activate a macro.
 
This trigger will display a floating button on the screen that can be clicked to activate a macro.
  
Line 7: Line 5:
  
 
If the button is dragged over the trash can icon, the macro will be deactivated (set by default).
 
If the button is dragged over the trash can icon, the macro will be deactivated (set by default).
 +
</pre>
  
==<p><b>Supported configurations</b></p>==
+
'''Configuration options'''
  
=== Identifier ===
+
* Identifier
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 16: Line 15:
 
</pre>
 
</pre>
  
=== Icon ===
+
* Icon
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 22: Line 21:
 
</pre>
 
</pre>
  
=== Set background ===
+
* Set background
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 28: Line 27:
 
</pre>
 
</pre>
  
=== Transparent background ===
+
* Transparent background
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 34: Line 33:
 
</pre>
 
</pre>
  
=== Padding ===
+
* Padding
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 40: Line 39:
 
</pre>
 
</pre>
  
=== Opacity ===
+
* Opacity
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 46: Line 45:
 
</pre>
 
</pre>
  
=== Normal or Small ===
+
* Normal or Small
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 52: Line 51:
 
</pre>
 
</pre>
  
=== Disable macro on remove ===
+
* Disable macro on remove
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Line 65: Line 64:
 
* ''''' You are interested in  ''''' '''''[https://macrodroidforum.com/wiki/index.php/Action:_Floating_Button_Configure Set floating button action]'''''
 
* ''''' You are interested in  ''''' '''''[https://macrodroidforum.com/wiki/index.php/Action:_Floating_Button_Configure Set floating button action]'''''
  
=== Force location when enabled ===
+
* Force location when enabled
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">

Revision as of 13:13, 13 June 2024

This trigger will display a floating button on the screen that can be clicked to activate a macro.

To show and hide the button, the macro must be activated or deactivated accordingly.

If the button is dragged over the trash can icon, the macro will be deactivated (set by default).

Configuration options

  • Identifier
It is an id that will serve you later when you use the "Configure floating button" action to identify the button that will be configured in the same macro or another macro.
  • Icon
It allows you to use installed application icons, user icons (own images), macrodroid icons, as well as notification and material design.
  • Set background
Use a background color below the icon.
  • Transparent background
Show the floating button without a background color.
  • Padding
Change a larger or smaller icon padding.
  • Opacity
Change the opacity, higher or lower.
  • Normal or Small
Toggling between 2 different sizes of floating button.
  • Disable macro on remove
This is the default option for the hover button when you drag the hover button to the recycle bin 
(it will appear when you start dragging the button)
you can also toggle it by simply deactivating the toggle
(it can be re-enabled manually or with the "set floating button action").
An alternative option is to deactivate the trigger by removing the floating button.
  • Force location when enabled
Whenever this box is checked the floating button will appear at the specified coordinates, otherwise it will appear in the centre of the screen.
Now supports using magic text to define the location when enabled (needs an integer variable).