mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-13 15:08:09 +00:00

The changes in #8555 are needed in order to be able to offer the desired user experience for dark mode changes.
9 lines
337 B
Plaintext
9 lines
337 B
Plaintext
title: SampleBackgroundAction: Dark Mode
|
|
tags: $:/tags/BackgroundAction
|
|
track-filter: [{$:/info/browser/darkmode}]
|
|
|
|
<%if [{$:/info/browser/darkmode}match[no]] %>
|
|
<$action-setfield $tiddler="$:/palette" text="$:/palettes/TwentyTwenties"/>
|
|
<%else%>
|
|
<$action-setfield $tiddler="$:/palette" text="$:/palettes/TwentyTwenties/Dark"/>
|
|
<%endif%> |