diff --git a/core/wiki/macros/CSS.tid b/core/wiki/macros/CSS.tid index 37587b9a5..178990328 100644 --- a/core/wiki/macros/CSS.tid +++ b/core/wiki/macros/CSS.tid @@ -34,6 +34,7 @@ tags: $:/tags/Macro \end actions-compile-palette-wikified \procedure actions-compile-palette(inputTitle,outputTitle,defaultImport="$:/palettes/Vanilla") +\procedure tv-action-refresh-policy() always <$let tempPalette="$:/temp/palette-source" > @@ -63,6 +64,7 @@ tags: $:/tags/Macro \end actions-compile-palette \procedure actions-recompile-current-palette() +\procedure tv-action-refresh-policy() always <$transclude $variable="actions-compile-palette" inputTitle={{$:/palette}} outputTitle="$:/temp/palette-colours"/> \end actions-recompile-current-palette @@ -70,7 +72,7 @@ tags: $:/tags/Macro \procedure tv-action-refresh-policy() always <$action-deletetiddler $tiddler="$:/temp/palette-colours"/> <$action-setfield $tiddler="$:/palette" $field="text" $value=<>/> -<$transclude $variable="actions-compile-palette" inputTitle=<> outputTitle="$:/temp/palette-colours"/> +<> \end actions-switch-colour-palette \procedure tv-palette-name() $:/temp/palette-colours diff --git a/editions/test/tiddlers/tests/data/palettes/BasicLookup.tid b/editions/test/tiddlers/tests/data/palettes/BasicLookup.tid new file mode 100644 index 000000000..2cba05a7e --- /dev/null +++ b/editions/test/tiddlers/tests/data/palettes/BasicLookup.tid @@ -0,0 +1,45 @@ + +title: Operators/Palettes/BasicLookup +description: Compute the +type: text/vnd.tiddlywiki-multiple +tags: [[$:/tags/wiki-test-spec]] + +title: Output + +\import [subfilter{$:/core/config/GlobalImportFilter}] +<> +<> ++ +title: Actions + +\import [subfilter{$:/core/config/GlobalImportFilter}] +<> ++ +title: $:/palette + +MyPalette ++ +title: MyPalette +name: My Palette +description: My custom palette +tags: $:/tags/Palette +type: application/x-tiddler-dictionary +palette-import: MyOtherPalette +color-scheme: light + +page-background: <> +custom: #f4e4d4 ++ +title: MyOtherPalette +name: My Other Palette +description: My other custom palette +tags: $:/tags/Palette +type: application/x-tiddler-dictionary +color-scheme: light + +page-background: #d4e4f4 +background: red ++ +title: ExpectedResult + +

#f4e4d4

red

\ No newline at end of file