Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">This trigger will fire when the corresponding MacroDroid widget button is pressed. There are four default colored buttons provided, and you can configure a custom button by selecting an icon and label. MacroDroid widgets can be added to your home screen via the normal Android mechanism.</pre>
This trigger will fire when the corresponding MacroDroid widget button is pressed.
     −
There are four default coloured buttons provided, and you can configure custom button by selecting an icon and label.
+
''' Options '''
   −
MacroDroid widgets can be added to your home screen via the normal mechanism.
+
''' Widget Types '''
   −
Only one widget button trigger may be added per macro.
+
* '''Custom''': Create a fully customized widget with your own icon and label
</pre>
+
* '''Green''': Pre-configured green colored button
<br>
+
* '''Blue''': Pre-configured blue colored button
'''Example Usage'''<br/>
+
* '''Red''': Pre-configured red colored button
 +
* '''Yellow''': Pre-configured yellow colored button
   −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
''' Custom Widget Options '''
Triggers
      +
When selecting Custom widget type:
   −
</pre><br>
+
* '''Widget Label''': Text displayed on or below the widget (supports Magic Text)
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
+
* '''Icon''': Select an icon from the built-in icon library or use a custom image
Actions
+
* '''Icon Text''': Optional text overlay on the icon (supports Magic Text)
 +
* '''Icon Tint''': Enable tinting and select a custom tint color for the icon
    +
''' Adding Widgets '''
   −
</pre><br>
+
To add a MacroDroid widget to your home screen:
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
+
1. Long-press on an empty area of your home screen
Constraints
+
2. Select "Widgets" from the menu
 +
3. Find MacroDroid in the widget list
 +
4. Drag the desired widget button to your home screen
 +
5. Select the macro to associate with the widget
    +
''' Examples '''
   −
</pre><br>
+
  <pre class="trigger-style">Triggers
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
  −
Local variables
      +
Widget Button Pressed (Custom)</pre>
 +
  <pre class="action-style">Actions
   −
</pre><br>
+
Silent Mode: Toggle
 +
Vibrate: 100ms</pre>
 +
 
 +
''Toggle silent mode with a custom home screen widget.''
 +
 
 +
----
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Widget Button Pressed (Green)</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Wifi: On
 +
Bluetooth: On
 +
Notification: Connected Mode Enabled</pre>
 +
 
 +
''Quick access to enable connectivity options using the green widget button.''
 +
 
 +
''' Notes '''
 +
 
 +
* Only one Widget Button trigger may be added per macro.
 +
* Custom widgets support user images from your device's storage in addition to built-in icons.
 +
* Widget labels can use Magic Text to display dynamic information.
 +
* The widget appearance can be updated dynamically using the Configure Widget Button action.
 +
* Widgets remain on the home screen independently of the macro's enabled/disabled state.
 +
* If the associated macro is disabled, pressing the widget will have no effect.
 +
* Custom widget icons support tinting to match your home screen theme.
 +
 
 +
''' See Also '''
 +
 
 +
* [[Action:_Widget_Button_Modify|Widget Button Modify Action]]