Hello,
I have a tiddler that handles body font-sizing... Maybe something like this
can make it easier for you to switch font-sizes, too:
Title:
$:/jd/Buttons/font-size
List:
40px 34px 30px 24px 20px 18px 17px 15px 14px 13px 12px 10px
Tags:
$:/tags/PageControls
Text:
<$wikify name="fontUp" text="""
<$list
filter="[{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}previous[$:/jd/Buttons/font-size]]"
emptyMessage="40px"/>
""">
<$wikify name="fontDown" text="""
<$list
filter="[{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}next[$:/jd/Buttons/font-size]]"
emptyMessage="10px"/>
""">
<$button class="tc-btn-invisible" tooltip="Decrease font size">
<$action-setfield
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize"
text=<<fontDown>>/>
<$action-setfield
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodylineheight" text="1.2"/>
−
</$button>
<$button class="tc-btn-invisible" tooltip="Increase font size">
<$action-setfield
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize"
text=<<fontUp>>/>
<$action-setfield
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodylineheight" text="1.2"/>
+
</$button>
</$wikify>
</$wikify>
I used <$wikify> because I need the "emptyMessage" parameter, the list
field contains font sizes the buttons will scroll through, and I tagged the
tiddler where I wanted it go.
Hope this helps :)
-jd
On Saturday, September 29, 2018 at 9:25:51 PM UTC+9, Tahoka Freeway wrote:
>
> I'm using a couple of TW's with Vanilla palette where I sometimes have to
> present on a TV or projector to a group.
>
> When I do so, the text is too small to be readable to most. So I manually
> adjust the font sizes in Theme Tweaks and all is good.
>
> Is there a way to switch the font sizes over just like switching between
> palettes so I can quickly change from laptop mode to presentation mode?
>
> Thx.
>
--
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/27b965a4-7023-41da-b5d4-83f37b1f1d9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.