| 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 fire when the device's dark theme is enabled or disabled. |
| | + | </pre> |
| | | | |
| − | This trigger will fire when the device's dark theme is enabled or disabled (as configured).
| + | ''' Options ''' |
| | | | |
| − | <span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>Supported configurations</strong></span>
| + | * '''Enabled''' - The trigger fires when dark mode is turned on. |
| | | | |
| − | === Enable/Disable ===
| + | * '''Disabled''' - The trigger fires when dark mode is turned off. |
| | | | |
| − | The trigger is activated when the dark theme is disabled according to the configuration (Enabled/Disabled).
| + | ''' Examples ''' |
| | + | |
| | + | Example 1: Adjust screen brightness when dark theme changes |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Dark Theme Change [Enabled]</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Set Brightness: 30%</pre> |
| | + | |
| | + | 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]] |