-
Tiddlywiki 5.1.23 has a new filter operator causes use a simple code for switching colors:
Give a try in https://tiddlywiki.com/prerelease May be it can be used for switch palettes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@NicolasPetton - Please ignore the above solution. One caveat is if user has set the $:/palette to something else (none of day/light palettes) the toggle just appends the value to the existing one. There is another solution but it is not simpler than the one you have used (e.g two $reveal widgets) This alternative solution suggested by Saq in Google forum
|
Beta Was this translation helpful? Give feedback.
-
@NicolasPetton - As you my follow my discussion with Saq on Google forum this is the most simple solution by now
You may read darkPalette and lightPalete from a config tiddler fields. This way you may let Notebook users to simply decide on their dark/light palettes instead of head coded them. I am not sure if it make sense to use other palettes or Notebook design restricts the palette to vanilla and beige. |
Beta Was this translation helpful? Give feedback.
@NicolasPetton - As you my follow my discussion with Saq on Google forum this is the most simple solution by now
You may read darkPalette and lightPalete from a config tiddler fields. This way you may let Notebook users to simply decide on their dark/light palettes instead of head coded them. I am not sure if it make sense to use other palettes or Notebook design restricts the palette to vanilla and beige.