Jan,

Perhaps someone with more knowledge of the core can help, no luck in my 
investigation. I cant even find the core code (javascript) 
for tm-full-screen.

This is the alternative button(pair) I suggested and it works giving you 
the state tiddler containing yes or not yes. If you hide the existing Full 
screen icon and only show this one it would make it work except for one 
issue, hitting esc can also change full screen and the toggle becomes out 
of sync.

<$reveal type="nomatch" state="$:/temp/fullscreen" text="yes">
<$button message="tm-full-screen" set="$:/temp/fullscreen" setTo="yes">
{{$:/core/images/full-screen-button}}
</$button>
</$reveal>
<$reveal type="match" state="$:/temp/fullscreen" text="yes">
<$button message="tm-full-screen" set="$:/temp/fullscreen" setTo="no">
{{$:/core/images/full-screen-button}}
</$button>
</$reveal>


Perhaps this will get you started, If I discover something I will let you 
know.

Regards
Tony


On Tuesday, 14 August 2018 00:36:02 UTC+10, Jan wrote:
>
> Hi Tony, 
> thanks for your reply, help on the core method is  what i would need. 
>
> -Jan 
>
> Am 13.08.2018 um 16:26 schrieb TonyM: 
> > Jan, 
> > 
> > If you search the shadows you find the button tiddler 
> $:/core/ui/Buttons/full-screen 
> > 
> > There is no two state setting for the button. I think the info and fold 
> buttons do that. But not Full screen button taking it in and out of 
> fullscreen mode seems to use the same action message tm-full-screen which 
> is documented herehttps://
> tiddlywiki.com/#WidgetMessage%3A%20tm-full-screen 
> > 
> > Which shows we may need to look into the core to find how it tells if it 
> is in full screen mode and if we can access that value. 
> > 
> > Alternativly you could make your own fullscreen button(s) that have 
> additional action widgets that toggle a value that you can then test for. I 
> say buttons because you only see one at a time but one says go full screen, 
> the other says stop and both change a toggle value. 
> > 
> > Is this enought or would you like help making a new button or analysing 
> the core method? 
> > 
> > Regards 
> > Tony 
>
>

-- 
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/9be12f46-a7cd-4b49-923e-9c0f268aca0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to