<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
  <!-- #Trakt.Settings.Account.Dialog.Visible is true when account controls are visible -->
  <animation effect="fade" time="200">visible</animation>
  <animation effect="fade" time="200">hidden</animation>
  <controls>
    
    <control>
      <type>image</type>
      <id>0</id>
      <width>1280</width>
      <height>720</height>
      <texture>black.png</texture>
      <colordiffuse>90ffffff</colordiffuse>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
    <control>
      <description>Dialog Background</description>
      <type>image</type>
      <id>0</id>
      <posX>220</posX>
      <posY>130</posY>
      <width>840</width>
      <height>460</height>
      <texture>dialog_background.png</texture>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
    <control>
      <type>image</type>
      <id>0</id>
      <posX>890</posX>
      <posY>182</posY>
      <width>70</width>
			<height>70</height>
			<keepaspectratio>yes</keepaspectratio>
      <texture>logos\trakt.png</texture>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
    <control>
      <description>Title (Create/Login)</description>
      <type>label</type>
      <id>10</id>
      <posX>320</posX>
      <posY>200</posY>
      <label></label>
      <font>font14</font>
      <textcolor>ffa9d0f7</textcolor>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
    <control>
      <description>Username Label</description>
      <type>label</type>
      <id>0</id>
      <posX>320</posX>
      <posY>260</posY>
      <label>#Trakt.Translation.Username.Label</label>
      <font>font12</font>
      <textcolor>ffFFFFFF</textcolor>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    <control>
      <description>Username Button</description>
      <type>button</type>
      <id>11</id>
      <label></label>
      <posX>320</posX>
      <posY>292</posY>
      <onleft>15</onleft>
      <onright>15</onright>      
      <onup>16</onup>
      <ondown>12</ondown>
      <textXOff>15</textXOff>
      <textYOff>5</textYOff>
      <font>font10</font>
      <textalign>left</textalign>
      <height>30</height>
      <width>650</width>
      <textcolor>ffffffff</textcolor>
      <textcolorNoFocus>bfffffff</textcolorNoFocus>
      <textureFocus>traktLoginFieldFocus.png</textureFocus>
      <textureNoFocus>traktLoginFieldNoFocus.png</textureNoFocus>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
    <control>
      <description>Password Label</description>
      <type>label</type>
      <id>0</id>
      <posX>320</posX>
      <posY>325</posY>
      <label>#Trakt.Translation.Password.Label</label>
      <font>font12</font>
      <textcolor>ffFFFFFF</textcolor>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    <control>
      <description>Password Button</description>
      <type>button</type>
      <id>12</id>
      <label></label>
      <posX>320</posX>
      <posY>357</posY>
      <onleft>15</onleft>
      <onright>15</onright>
      <onup>11</onup>
      <ondown>13</ondown>
      <textXOff>15</textXOff>
      <textYOff>5</textYOff>
      <font>font10</font>
      <textalign>left</textalign>
      <height>30</height>
      <width>650</width>
      <textcolor>ffffffff</textcolor>
      <textcolorNoFocus>bfffffff</textcolorNoFocus>
      <textureFocus>traktLoginFieldFocus.png</textureFocus>
      <textureNoFocus>traktLoginFieldNoFocus.png</textureNoFocus>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
    <!-- Only Visible for Create New User -->
    <control>
      <description>Email Label</description>
      <type>label</type>
      <id>14</id>
      <posX>320</posX>
      <posY>390</posY>
      <label>#Trakt.Translation.Email.Label</label>
      <font>font12</font>
      <textcolor>ffFFFFFF</textcolor>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)+string.equals(#Trakt.Settings.Account.Dialog.NewUser,true)</visible>
    </control>
    <control>
      <description>Email Button</description>
      <type>button</type>
      <id>13</id>
      <label></label>
      <posX>320</posX>
      <posY>422</posY>
      <onleft>15</onleft>
      <onright>15</onright>
      <onup>12</onup>
      <ondown>15</ondown>
      <textXOff>15</textXOff>
      <textYOff>5</textYOff>
      <font>font10</font>
      <textalign>left</textalign>
      <height>30</height>
      <width>650</width>
      <textcolor>ffffffff</textcolor>
      <textcolorNoFocus>bfffffff</textcolorNoFocus>
      <textureFocus>traktLoginFieldFocus.png</textureFocus>
      <textureNoFocus>traktLoginFieldNoFocus.png</textureNoFocus>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)+string.equals(#Trakt.Settings.Account.Dialog.NewUser,true)</visible>
    </control>
    
    <control>
      <description>Create\Login Button</description>
      <type>button</type>
      <id>15</id>
      <label></label>
      <onup>13</onup>
      <ondown>11</ondown>
      <onright>16</onright>
      <onleft>16</onleft>
      <posX>620</posX>
      <posY>478</posY>
      <width>150</width>
      <height>32</height>
      <textcolor>ffffffff</textcolor>
      <font>font11</font>
      <textYOff>0</textYOff>
      <textXOff>0</textXOff>
      <textalign>center</textalign>
      <textcolorNoFocus>5fffffff</textcolorNoFocus>
			<textureFocus>tvguide_button_middle.png</textureFocus>
			<textureNoFocus>tvguide_button_light_middle.png</textureNoFocus>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    <control>
      <description>Cancel Button</description>
      <type>button</type>
      <id>16</id>
      <label>#Trakt.Translation.Cancel.Label</label>
      <onup>13</onup>
      <ondown>11</ondown>
      <onright>15</onright>
      <onleft>15</onleft>
      <posX>790</posX>
      <posY>478</posY>
      <width>150</width>
      <height>32</height>
      <textcolor>ffffffff</textcolor>
      <font>font11</font>
      <textYOff>0</textYOff>
      <textXOff>0</textXOff>
      <textalign>center</textalign>
      <textcolorNoFocus>5fffffff</textcolorNoFocus>
			<textureFocus>tvguide_button_middle.png</textureFocus>
			<textureNoFocus>tvguide_button_light_middle.png</textureNoFocus>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
 
    <control>
      <description>Test Connection</description>
      <type>label</type>
      <id>17</id>
      <posX>320</posX>
      <posY>480</posY>
      <label></label>
      <font>font12</font>
      <textcolor>ffa9d0f7</textcolor>
      <visible>string.equals(#Trakt.Settings.Account.Dialog.Visible,true)</visible>
    </control>
    
  </controls>
</window>