you can switch a style defintion:
<$reveal type="nomatch" state="$:/state/1" text="show">
<$button set="$:/state/1" setTo="show">to green </$button>
<style>
.background {
background-color:red;
</style>
</$reveal>
<$reveal type="match" state="$:/state/1" text="show">
<$button set="$:/state/1" setTo="hide">to red</$button>
<style>
.background {
background-color:green;
</style>
</$reveal>
@@.tc-tiddler-frame
@@.background
@@width:800px;
text text
@@
@@
@@
all the best
BJ
On Wednesday, December 27, 2017 at 4:20:45 PM UTC+1, Marcus wrote:
>
> Hi everybody.
>
> I like to change the colors with a button.
>
> I tried for example:
>
> \define color(name:"red") $name$
>
>
> @@.tc-tiddler-frame
> @@background-color:<<color>>;
> @@width:800px;
> text text
> @@
>
> and also this:
>
> @@.tc-tiddler-frame
> @@background-color:<$macrocall $name="color"/>;
> @@width:800px;
> text text
> @@
>
>
> But this doesn't work.
> Is there any idea?
>
>
> By the way: is there also an idea how I can change the the font with a
> button?
>
> Thanks in advance.
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/92ebf238-20ba-42bd-b0f5-24e993863348%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.