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:
parent
4fe90a6c73
commit
4c216646a4
@ -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 -->
|
||||
|
@ -7,7 +7,8 @@
|
||||
"tiddlywiki/menubar",
|
||||
"tiddlywiki/confetti",
|
||||
"tiddlywiki/dynannotate",
|
||||
"tiddlywiki/tour"
|
||||
"tiddlywiki/tour",
|
||||
"tiddlywiki/consent-banner"
|
||||
],
|
||||
"themes": [
|
||||
"tiddlywiki/vanilla",
|
||||
|
@ -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
|
6
plugins/tiddlywiki/menubar/background-palette.tid
Normal file
6
plugins/tiddlywiki/menubar/background-palette.tid
Normal 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
|
@ -1,4 +0,0 @@
|
||||
title: $:/config/DefaultColourMappings/
|
||||
|
||||
menubar-foreground: #fff
|
||||
menubar-background: #5778d8
|
@ -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>>
|
Loading…
x
Reference in New Issue
Block a user