| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | + | <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.
| + | ''' Options ''' |
| | | | |
| − | <span style="color: #0E9549; font-size: 24px;">'''Please note that'''</span>
| + | * '''Enabled''': Constraint passes only when dark mode is on |
| | + | * '''Disabled''': Constraint passes only when dark mode is off |
| | | | |
| − | Works for Android 10+.
| + | ''' 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]] |