You could do this with something like the following:

<$button>
<$action-setfield $tiddler="
$:/themes/tiddlywiki/vanilla/settings/backgroundimage 
<#%24%3A%2Fthemes%2Ftiddlywiki%2Fvanilla%2Fsettings%2Fbackgroundimage>" 
text="name_of_your_image_tiddler" />
<$action-setfield $tiddler="$:/palette" text="$:/palettes/Vanilla 
<#%24%3A%2Fpalettes%2FVanilla>" />
Light Mode
</$button>

<$button>
<$action-setfield $tiddler="
$:/themes/tiddlywiki/vanilla/settings/backgroundimage 
<https://groups.google.com/#%24%3A%2Fthemes%2Ftiddlywiki%2Fvanilla%2Fsettings%2Fbackgroundimage>"
 
text="" />
<$action-setfield $tiddler="$:/palette" text=" $:/palettes/SpartanNight 
<#%24%3A%2Fpalettes%2FSpartanNight>" />
Dark Mode
</$button>

Modify as necessary. 

On Friday, February 19, 2021 at 1:10:43 PM UTC-5 
[email protected] wrote:

> Hello all, 
> I do have a button to change from dark mode to light mode.
> on the light mode I do have a background picture that has the logo of my 
> company.
> on dark mode though, I want my background to be dark and have different 
> logo.
>
> I'm new to this and I need some help.
> How do I change the background picture when I click the dark mode button ?
>
> Thank you !
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a2b29b8c-2cf2-4d3c-9842-e516cb25bf93n%40googlegroups.com.

Reply via email to