<?xml version="1.0" encoding="utf-8"?>
<window type="dialog">
    <defaultcontrol always="true">7</defaultcontrol>
    <controls>
        <!-- <include>DimBG</include> -->
        <include>TopBar</include>
        <control type="group">
            <include>FacadeFadeDialogs2ndLevelCondition</include>
            <include>Icon_Fade</include>
            <animation effect="slide" start="0,0" end="0,156" time="0" condition="Window.IsActive(DialogPVRChannelsOSD.xml)|Window.IsActive(DialogPVRGuideOSD.xml)">Conditional</animation>
            <control type="group">
                <posy>-30</posy>
                <include>DialogOpenClose</include>
                <control type="image">
                    <posx>-200</posx>
                    <posy>240</posy>
                    <width>2320</width>
                    <height>660</height>
                    <include>DialogTransparency</include>
                    <texture border="150,40,150,40">$VAR[Theme.Color]/common/bg_dialog.png</texture>
                </control>
                <control type="image">
                    <posx>100</posx>
                    <posy>232</posy>
                    <width>1720</width>
                    <height>217</height>
                    <texture border="100">$VAR[Theme.Color]/common/bg_list.png</texture>
                </control>
                <control type="image">
                    <posx>100</posx>
                    <posy>736</posy>
                    <width>1720</width>
                    <height>172</height>
                    <texture border="100">$VAR[Theme.Color]/common/bg_list.png</texture>
                </control>
                <control type="image">
                    <posx>25</posx>
                    <posy>443</posy>
                    <width>373</width>
                    <height>300</height>
                    <aspectratio>keep</aspectratio>
                    <texture>$VAR[Thumbs]</texture>
                </control>
                <control type="image">
                    <posx>25</posx>
                    <posy>443</posy>
                    <width>373</width>
                    <height>300</height>
                    <aspectratio>keep</aspectratio>
                    <texture>$VAR[ThumbsBig]</texture>
                    <include>ThumbBorder</include>
                </control>
                <control type="label">
                    <animation effect="slide" start="0,0" end="0,-15" time="0" condition="!IsEmpty(ListItem.EpisodeName)">Conditional</animation>
                    <posx>TextMargin</posx>
                    <posy>273</posy>
                    <width>1800</width>
                    <height>135</height>
                    <align>center</align>
                    <font>InfoTitleFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.Title]</label>
                </control>
                <control type="label">
                    <posx>TextMargin</posx>
                    <posy>360</posy>
                    <width>1800</width>
                    <height>35</height>
                    <align>center</align>
                    <font>InfoTitleSubFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.EpisodeName]</label>
                </control>
                <control type="label">
                    <posx>423</posx>
                    <posy>438</posy>
                    <width>688</width>
                    <height>78</height>
                    <font>InfoDetailsFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.ChannelNumberLabel,, - ]$INFO[ListItem.ChannelName]</label>
                </control>
                <control type="label">
                    <posx>423</posx>
                    <posy>516</posy>
                    <width>688</width>
                    <height>78</height>
                    <font>InfoDetailsFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.StartTime,, / ]$INFO[ListItem.EndTime]</label>
                </control>
                <control type="label">
                    <posx>423</posx>
                    <posy>594</posy>
                    <width>688</width>
                    <height>78</height>
                    <font>InfoDetailsFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.Genre]</label>
                </control>
                <control type="label">
                    <posx>423</posx>
                    <posy>672</posy>
                    <width>688</width>
                    <height>78</height>
                    <font>InfoDetailsFont</font>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.Duration]</label>
                </control>
                <control type="textbox">
                    <posx>1171</posx>
                    <posy>471</posy>
                    <width>688</width>
                    <height>249</height>
                    <include>TextColor_MainColor</include>
                    <label>$INFO[ListItem.Plot]</label>
                    <pagecontrol>6060</pagecontrol>
                </control>
                <control type="scrollbar" id="6060">
                    <visible>Skin.HasSetting(ManualScroll)</visible>
                    <posx>1886</posx>
                    <posy>471</posy>
                    <height>249</height>
                    <include>VerticalScroller</include>
                    <onleft>5</onleft>
                    <onright>5</onright>
                </control>
                <control type="grouplist">
                    <posx>0</posx>
                    <posy>777</posy>
                    <width>1920</width>
                    <height>90</height>
                    <itemgap>30</itemgap>
                    <aligny>bottom</aligny>
                    <align>center</align>
                    <orientation>horizontal</orientation>
                    <onup>6060</onup>
                    <ondown>6060</ondown>
                    <onleft>6060</onleft>
                    <onright>6060</onright>
                    <control type="button" id="122">
                        <include>ButtonFocusAnimation</include>
                        <width>348</width>
                        <label>Extended Info</label>
                        <visible>System.HasAddon(script.extendedinfo)</visible>
                        <onclick>Action(Close)</onclick>
                        <onclick>dialog.close(all,true)</onclick>
                        <onclick>RunScript(script.extendedinfo,info=extendedinfo,name=$INFO[ListItem.Title])</onclick>
                    </control>
                    <control type="button" id="4">
                        <include>ButtonFocusAnimation</include>
                        <width>348</width>
                        <description>Find similar</description>
                        <label>19003</label>
                        <visible>Window.IsActive(PVRGuideInfo)</visible>
                    </control>
                    <control type="button" id="5">
                        <include>ButtonFocusAnimation</include>
                        <width>348</width>
                        <description>Switch to Channel</description>
                        <label>19165</label>
                        <visible>Window.IsActive(PVRGuideInfo)</visible>
                    </control>
                    <control type="button" id="8">
                        <include>ButtonFocusAnimation</include>
                        <width>348</width>
                        <description>Play recording</description>
                        <label>19687</label>
                        <visible>Window.IsActive(PVRGuideInfo)</visible>
                    </control>
                    <control type="button" id="6">
                        <include>ButtonFocusAnimation</include>
                        <width>348</width>
                        <description>Record</description>
                        <label>-</label>
                        <visible>Window.IsActive(PVRGuideInfo)</visible>
                    </control>
                    <control type="button" id="7">
                        <width>180</width>
                        <include>ButtonFocusAnimation</include>
                        <description>OK</description>
                        <label>186</label>
                    </control>
                </control>
            </control>
        </control>
    </controls>
</window>
