| 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 device's dark them is enabled or disabled (as configured).</pre> | + | This trigger will fire when the device's dark theme is enabled or disabled. |
| − | <br>
| + | </pre> |
| − | '''Example Usage'''<br/>
| |
| | | | |
| − | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
| + | ''' Options ''' |
| − | Triggers
| |
| | | | |
| | + | * '''Enabled''' - The trigger fires when dark mode is turned on. |
| | | | |
| − | </pre><br>
| + | * '''Disabled''' - The trigger fires when dark mode is turned off. |
| − | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Actions
| |
| | | | |
| | + | ''' Examples ''' |
| | | | |
| − | </pre><br>
| + | Example 1: Adjust screen brightness when dark theme changes |
| − | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
| |
| − | Constraints
| |
| | | | |
| | + | <pre class="trigger-style">Triggers |
| | | | |
| − | </pre><br> | + | Dark Theme Change [Enabled]</pre> |
| − | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | + | <pre class="action-style">Actions |
| − | Local variables
| |
| | | | |
| | + | Set Brightness: 30%</pre> |
| | | | |
| − | </pre><br> | + | Example 2: Send notification when light theme is activated |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Dark Theme Change [Disabled]</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Notification: Light theme activated |
| | + | Set Brightness: 70%</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger monitors the system's ui_night_mode setting for changes. |
| | + | * The trigger only fires when the state actually changes, not repeatedly while the device remains in the same mode. |
| | + | * Works with both manual theme changes and scheduled automatic changes. |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Action:_Dark_Theme|Set Dark Theme Action]] |
| | + | * [[Constraint:_Dark_Mode|Dark Mode Constraint]] |