diff --git a/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid b/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid index 1a8722d17..07b8e32c4 100644 --- a/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid +++ b/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid @@ -1,6 +1,7 @@ title: Background Actions created: 20250212154426403 modified: 20250212154426403 +tags: Mechanisms <<.demo-tiddler """ title: SampleBackgroundAction: Story Change diff --git a/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid b/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid index 1944a7e0a..f95219b0d 100644 --- a/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid +++ b/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid @@ -1,5 +1,8 @@ title: Media Query Tracker Mechanism tags: Mechanisms +created: 20250212154426403 +modified: 20250212154426403 + <<.from-version "5.4.0">> The media query tracker mechanism allows you to define [[custom CSS media queries|https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries]] to be bound to a specified [[info|InfoMechanism]] tiddler. The info tiddler will be dynamically update to reflect the current state of the media query. diff --git a/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid new file mode 100644 index 000000000..bdf0eed7b --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid @@ -0,0 +1,14 @@ +title: $:/changenotes/5.4.0/#9641 +description: Background actions and media query tracking +tags: $:/tags/ChangeNote +release: 5.4.0 +change-type: enhancement +change-category: internal +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9641 +github-contributors: Jermolene + +Introduces[[Background Actions]] that are triggered whenever there is a change to the results of a specified filter. + +Building on that, it also introduces a new [[Media Query Tracker Mechanism]] that can track the results of any CSS media query (not just dark mode), storing the results in a shadow `$:/info/...` tiddler + +These improvements were cherrypicked from [[#8702 - Colour Handling Improvements|https://github.com/TiddlyWiki/TiddlyWiki5/pull/8702]] when it was deferred until v5.5.0.