<?xml version="1.0" encoding="UTF-8"?>
<window id="134" type="dialog">
    <defaultcontrol always="true">400</defaultcontrol>
    <menucontrol>9000</menucontrol>
    <onunload condition="System.HasAddon(script.favourites)">RunScript(script.favourites)</onunload>

    <controls>
        <control type="group">
            <description>Favourites Dialog</description>
            <posy>PosYForFifteenLinesDialog</posy>
            <include content="WindowForDialog">
                <param name="height" value="HeightForFifteenLinesDialog" />
                <param name="headerlabel" value="$LOCALIZE[1036]" />
                <param name="icontexture" value="icons/icon-favourites.png" />
            </include>

            <control type="button" id="400">
                <description>Empty Favourites List Condition</description>
                <texturenofocus>-</texturenofocus>
                <texturefocus>-</texturefocus>
                <onfocus condition="!StringCompare(Container(450).NumItems,0)">SetFocus(450)</onfocus>
                <onfocus condition="StringCompare(Container(450).NumItems,0)">SetFocus(7)</onfocus>
            </control>

            <control type="panel" id="450">
                <posx>560</posx>
                <posy>80</posy>
                <width>1240</width>
                <height>600</height>
                <scrolltime>200</scrolltime>
                <pagecontrol>451</pagecontrol>
                <orientation>vertical</orientation>
                <onleft>9000</onleft>
                <onright>451</onright>

                <itemlayout height="200" width="310">
                    <control type="image">
                        <posx>5</posx>
                        <posy>5</posy>
                        <width>300</width>
                        <height>190</height>
                        <texture diffuse="elements/view-mask.png" fallback="defaultfavourite.png">$INFO[ListItem.Icon]</texture>
                        <aspectratio scalediffuse="false">scale</aspectratio>
                    </control>
                    <include content="OutlineLabel">
                        <param name="posx" value="10" />
                        <param name="posy" value="140" />
                        <param name="width" value="290" />
                        <param name="height" value="20" />
                        <param name="font" value="BookmarkButtonFont" />
                        <param name="textcolor" value="$VAR[BackgroundColor]" />
                        <param name="outlinecolor" value="$VAR[TextColor]" />
                        <param name="outlinesize" value="2" />
                        <param name="align" value="center" />
                        <param name="scroll" value="false" />
                        <param name="label" value="$INFO[ListItem.Label]" />
                    </include>
                </itemlayout>

                <focusedlayout height="200" width="310">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>310</width>
                        <height>200</height>
                        <texture colordiffuse="$VAR[MainColor]">elements/view-mask.png</texture>
                    </control>
                    <control type="image">
                        <posx>5</posx>
                        <posy>5</posy>
                        <width>300</width>
                        <height>190</height>
                        <texture diffuse="elements/view-mask.png" fallback="defaultfavourite.png">$INFO[ListItem.Icon]</texture>
                        <aspectratio scalediffuse="false">scale</aspectratio>
                    </control>
                    <include content="OutlineLabel">
                        <param name="posx" value="10" />
                        <param name="posy" value="140" />
                        <param name="width" value="290" />
                        <param name="height" value="20" />
                        <param name="font" value="BookmarkButtonFont" />
                        <param name="textcolor" value="$VAR[BackgroundColor]" />
                        <param name="outlinecolor" value="$VAR[MainColor]" />
                        <param name="outlinesize" value="2" />
                        <param name="align" value="center" />
                        <param name="label" value="$INFO[ListItem.Label]" />
                    </include>
                </focusedlayout>
            </control>

            <control type="scrollbar" id="451">
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="600" />
                </include>
                <onleft>450</onleft>
            </control>

            <control type="grouplist" id="9000">
                <include content="MarkupForButtonListForDialog">
                    <param name="posy" value="640" />
                    <param name="height" value="40" />
                </include>
                <onright>450</onright>

                <include content="CloseButtonForDialog">
                    <param name="id" value="7" />
                </include>
            </control>
        </control>
    </controls>
</window>
