[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-19 Thread Scott Sauyet
Charlie Veniot wrote: > Done. Plus a "reset" button. I created a version of this that scales logarithmically from 30% to 400%. It feels smoother and more useful to me. GigantiCorp doesn't allow me to upload attachments to Google Groups. I'll try to do that from home later, but the changes a

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-19 Thread
Thanks Eric, that works - nice. Small hint: The slide is much smoother using this code in the sidebar (as a workaround): ``` Schriftgröße (Anzeige):   <$range tiddler="fontsizeValue" min="14" max="44" default="28" increment="1" class="slider"/>   {{fontsizeValue}}px <$button class="tc-bt

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-19 Thread Eric Shulman
The TWCore setting `$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize` assumes that it includes the CSS units (e.g., “px”). However, the $range widget only sets a numeric value, thus losing the default “px” suffix. To work around this, try the following: ``` <$let target="$:/themes/tiddlywiki/va

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-19 Thread
Hi Charlie, if I do the same for Font size for tiddler body I'm loosing the suffix "px" when using the slider. Schriftgröße (Anzeige):   <$range tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsi

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-18 Thread
Thanks Charlie! This code works: Schriftgröße (Editor):   <$range tiddler="fontsizeEditor" min="16" max="22" default="18" increment="0.5" class="slider"/>   {{fontsizeEditor}} px <$button class="tc-btn-invisible" tooltip="Reset"> <$action-setfield $tiddler="fontsizeEditor" text="18"/>  ''↺''

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-18 Thread Charlie Veniot
There are a few problems in your TW scripting. The first line, action-setfield. All action widgets have to be the result of something happening (like clicking on a button). That action doesn't have anything to trigger it, so it will never happen. The other action-setfield does happen when pu

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-18 Thread
Hello forum, inspired by @Charlie Veniot I tried to add the reset button to my wiki - but no effect when clicking on the button. Any idea why? Also tested on https://tiddlywiki.com/ [image: code.png] *Code:* <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize" text={{

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-18 Thread Charlie Veniot
Done. Plus a "reset" button. [image: Screenshot 2023-05-18 2.19.38 PM.png] On Thursday, May 18, 2023 at 10:50:52 AM UTC-3 Scott Sauyet wrote: > Charlie Veniot wrote: > > Just for the giggles to figure out how I would go about it. > > Very nice! One suggestion: make the max 200 or so rather th

[tw5] Re: TW Gadget: Tiddler Editor Text Resizer

2023-05-18 Thread Scott Sauyet
Charlie Veniot wrote: > Just for the giggles to figure out how I would go about it. Very nice! One suggestion: make the max 200 or so rather than the default 100. Help those with poorer eyesight! -- Scott -- You received this message because you are subscribed to the Google Groups "Tiddl