| Line 1: |
Line 1: |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current dark mode setting.</pre> |
| − | This constraint can be used to allow a trigger to fire or an action to run only when the dark theme is on/off on Android 10+. | + | |
| − | </pre> | + | ''' Options ''' |
| | + | |
| | + | * '''Enabled''': Constraint passes only when dark mode is on |
| | + | * '''Disabled''': Constraint passes only when dark mode is off |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Turn on dark theme at sunset if it is currently off'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Sunset/Sunrise - Sunset</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Dark Theme (Enable)</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | Dark Mode - Disabled</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger: Dark Theme Change|Dark Theme Change Trigger]] |
| | + | * [[Action: Dark Theme|Dark Theme Action]] |