I'd like it to be on par with the fullscreen video experience. Eventually, if I can implement this to begin with, I'd like to add some more controls and customisation.
Just relooked at modals as a solution. I think this might actually work. Before I was concerned about the button at the bottom, but that is all customisable, and combined with action-sendmessage with tm-full-screen, and tm-close-tiddler, this should be... done, I just did it.
First define a convenient macro:
\define fullscreen-image(path)
<$button>
<$action-sendmessage $message="tm-modal" $param="image-viewer" image-path=$path$ />
<$action-sendmessage $message="tm-full-screen" />
<img src=$path$>
</$button>
\end
So it's just a button with an image inside and a couple of action widgets. The first action widget opens the modal tiddler, as a modal of course, and passes it the path of the image. The other action widget enters fullscreen mode.
So in some tiddler where you want an image, just insert:
<<fullscreen-image "image-path.png">>
The "image-viewer" tiddler is what will be shown in the modal:
<$button>
<$action-sendmessage $message="tm-close-tiddler" />
<$action-sendmessage $message="tm-full-screen" $param="exit" />
<img src=<<image-path>>>
</$button>
footer: (leave blank)
Very similar to the macro, but with different action widgets. The first action widget closes the modal tiddler. The second exits fullscreen mode.
Not bad I'd say. Just a bit of CSS to tidy it up.
Might make that into a more clear tutorial once my site is ready.
Kalcifer