Eric, Thanks a lot that is a good way to implement such a mechanism. The Story with settings are not changing the look as I expected, but I will explore it further.
The suggested tiddlers are in the attached JSON file for anyone wanting to
play
Regards
Tony
On Friday, October 25, 2019 at 2:25:41 PM UTC+11, Eric Shulman wrote:
>
> On Thursday, October 24, 2019 at 7:34:50 PM UTC-7, TonyM wrote:
>>
>> Thanks heaps. That is workable but I was hoping it could be adjusted
>> dynamically. So the size can be dragged to fit.
>>
>
> Try this:
>
> First, change the following shadow definitions as shown:
>
> $:/themes/tiddlywiki/vanilla/metrics/bodyfontsize
> {{$:/temp/fontsize}}px
>
> $:/themes/tiddlywiki/vanilla/metrics/bodylineheight
> {{{ [{$:/temp/fontsize}multiply[1.3]] }}}px
>
> $:/themes/tiddlywiki/vanilla/metrics/storywidth
> {{$:/temp/storywidth}}px
>
> $:/themes/tiddlywiki/vanilla/metrics/storyright
> {{$:/temp/storywidth}}px
>
> $:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth
> {{{ [{$:/temp/storywidth}subtract[86]] }}}px
>
> Then, write your range controls like this:
> Story width: <$range tiddler="$:/temp/storywidth" min="600" max="1000"
> default="770" /> {{$:/themes/tiddlywiki/vanilla/metrics/storywidth}}
>
> Font size: <$range tiddler="$:/temp/fontsize" min="15" max="40" default=
> "15" /> {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}}
>
> That should do it. Let me know how it goes...
>
> enjoy,
> -e
>
>
>
>
>
>
>
>
--
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/38933133-fe34-40d1-ba97-9a91146f1f55%40googlegroups.com.
rangeSet.json
Description: application/json

