Minimal slide information in SlideShow
#1
I wanted to have the option to display a minimal slide information in the picture slideshow
only with filename, date and shutterspeed and aperture.
Complete EXIF information when pressing "info" on the remote was too much, so I figured out
how to make a small information overlay.
 
After some hard and long work and after copying the skin to have it modified (see skinning guide)
it turned out that basically only two files need to be changed:
In SlideShow.xml (mind the visible tag for the label):
<?xml version="1.0" encoding="UTF-8"?>
<window>
    <onload>Skin.SetBool(CustomSlideInfo)</onload>
        <controls>
                <control type="image">
                        <centerleft>50%</centerleft>
                        <centertop>50%</centertop>
                        <width>256</width>
                        <height>256</height>
                        <texture>icons/settings/player.png</texture>
                        <visible>SlideShow.IsVideo</visible>
                        <visible>![Player.Playing + Player.HasVideo] | SlideShow.IsPaused</visible>
                </control>
                <control type="label">
                    <description>Picture comment</description>
                    <left>5%</left>
                    <top>5%</top>
                    <width>1280</width>
                    <height>auto</height>
                    <align>left</align>
                    <aligny>top</aligny>
                    <font>!font10</font>
                    <font>font20</font>
                    <textcolor>FF7ACAFE</textcolor>
                    <!-- <visible>![Slideshow.IsPaused]</visible> -->
                    <visible>[Skin.HasSetting(CustomSlideInfo)]</visible>
                    <colordiffuse>grey</colordiffuse>
                    <shadowcolor>FFCE4421</shadowcolor>
                    <label>$INFO[slideshow.filename] [CR]$INFO[slideshow.exiftime] [CR]$INFO[slideshow.exposuretime] - $INFO[slideshow.aperture]</label>
                </control>
        </controls>
</window>

And to toggle the boolean "CustomSlideInfo" it needs to modify the remote.xml (in unserdata):
<keymap>
  <SlideShow>
    <remote>
      <guide>Skin.ToggleSetting(CustomSlideInfo)</guide>
    </remote>
  </SlideShow>
</keymap>

Maybe I missed something and the minimal slide information is already built-in?
Maybe this approach is right or wrong as per kodi concept?
However it works as intended on kodi 18.5 (OSMC, RPI) with the standard skin
and also with the OSMC skin.
Regards, Stefan
Reply


Messages In This Thread
Minimal slide information in SlideShow - by magnetron - 2020-02-03, 22:27
Logout Mark Read Team Forum Stats Members Help
Minimal slide information in SlideShow0