diff --git a/tiddlers/__dynamic_light-dark_detection.tid b/tiddlers/__dynamic_light-dark_detection.tid new file mode 100644 index 0000000..f625ed0 --- /dev/null +++ b/tiddlers/__dynamic_light-dark_detection.tid @@ -0,0 +1,10 @@ +caption: Dynamically detect browser or OS setting +code-body: yes +tags: $:/tags/DarkLightChangeActions +title: _/dynamic/light-dark/detection + +<$reveal type="match" stateTitle="$:/config/palette/enable-light-dark-detection" text="yes"> + <$let default={{{ [match[yes]then[$:/config/palette/default-dark]else[$:/config/palette/default-light]] }}}> + <$action-setfield $tiddler="$:/palette" text={{{ [get[text]] }}}/> + + \ No newline at end of file