Difference between revisions of "Constraint: Dark Mode"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current dark mode setting.</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]] | ||
Latest revision as of 11:22, 9 January 2026
This constraint allows or prevents a macro/feature from running based on the current dark mode setting.
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
Triggers Sunset/Sunrise - Sunset
Actions Dark Theme (Enable)
Constraints Dark Mode - Disabled
See Also