1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-07 03:06:56 +00:00

Introduce background palettes for plugins

This commit is contained in:
Jeremy Ruston 2025-02-06 11:53:07 +00:00
parent 4fe90a6c73
commit 4c216646a4
6 changed files with 18 additions and 7 deletions

View File

@ -58,6 +58,10 @@ tags: $:/tags/Macro
<!-- Clear the output palette that stores the plain CSS values of palette entries -->
<$action-deletetiddler $tiddler=<<outputPalette>>/>
<$action-setfield $tiddler=<<outputPalette>> type="application/x-tiddler-dictionary"/>
<!-- Import the background palettes -->
<$list filter="[all[shadows+tiddlers]tag[$:/tags/BackgroundPalette]sort[]]" variable="palette-name">
<$transclude $variable="actions-compile-palette-import" inputPalette=<<palette-name>> outputPalette=<<consolidatedPalette>> scheme=<<scheme>>/>
</$list>
<!-- Consolidate the chain of palettes -->
<$transclude $variable="actions-compile-palette-import" inputPalette=<<inputPalette>> outputPalette=<<consolidatedPalette>> scheme=<<scheme>>/>
<!-- Save the current scheme in the output tiddler -->

View File

@ -7,7 +7,8 @@
"tiddlywiki/menubar",
"tiddlywiki/confetti",
"tiddlywiki/dynannotate",
"tiddlywiki/tour"
"tiddlywiki/tour",
"tiddlywiki/consent-banner"
],
"themes": [
"tiddlywiki/vanilla",

View File

@ -1,4 +1,6 @@
title: $:/config/DefaultColourMappings/
title: $:/plugins/tiddlywiki/consent-banner/background-palette
type: application/x-tiddler-dictionary
tags: $:/tags/BackgroundPalette
consent-banner-backdrop-background: rgba(0,0,0,0.2)
consent-banner-background: #009677

View File

@ -0,0 +1,6 @@
title: $:/plugins/tiddlywiki/menubar/background-palette
type: application/x-tiddler-dictionary
tags: $:/tags/BackgroundPalette
menubar-foreground: #fff
menubar-background: #5778d8

View File

@ -1,4 +0,0 @@
title: $:/config/DefaultColourMappings/
menubar-foreground: #fff
menubar-background: #5778d8

View File

@ -1,4 +1,6 @@
title: $:/config/DefaultColourMappings/
title: $:/plugins/tiddlywiki/tour/background-palette
type: application/x-tiddler-dictionary
tags: $:/tags/BackgroundPalette
tour-chooser-button-foreground: <<colour very-muted-foreground>>
tour-chooser-button-hover-background: <<colour muted-foreground>>