<theme>
	<formatVersion>4</formatVersion>

	<include>./config.xml</include>	

	<view name="system, grid">

		<helpsystem name="help">
			<pos>2 2</pos>
		</helpsystem>		
	</view>
	<variables>
		<baseColor>8b0000</baseColor>
		<gradientEndColor>6b2020</gradientEndColor>
		<centerFadeColor>8b000050</centerFadeColor>
		<bottomBarColor>8b0000c0</bottomBarColor>
		<glowColor>Ab000020</glowColor>
		<systemInfoColor>DDDDDDD8</systemInfoColor>
		<backgroundImage>./art/fiber.png</backgroundImage>
		<tilesViewName>Tiles</tilesViewName>
	</variables>
	<include subset="colorset" name="blue" displayName="${blue}">./art/colors/blue.xml</include>
	<include subset="colorset" name="red" displayName="${red}"/>
	<include subset="colorset" name="green" displayName="${green}">./art/colors/green.xml</include>
	<view name="menu">
		<menuText name="menutitle">
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.044</fontSize>
			<color>FAFAFA</color>
		</menuText>
		<menuText name="menufooter">
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.02</fontSize>
			<color>777777FF</color>
		</menuText>
		<menuText name="menutext">
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.038</fontSize>
			<color>969696</color>
			<separatorColor>323232FF</separatorColor>
			<selectorColor>${baseColor}</selectorColor>
			<selectorColorEnd>${gradientEndColor}</selectorColorEnd>
			<selectedColor>FFFFFF</selectedColor>
			<selectorGradientType>horizontal</selectorGradientType>
		</menuText>
		<menuTextSmall name="menutextsmall">
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.02</fontSize>
			<color>deec00</color>
		</menuTextSmall>
		<menuBackground name="menubg">
			<color>242424</color>
			<cornerSize>32 32</cornerSize>
			<path>./art/frame.png</path>
		</menuBackground>
		<menuIcons name="menuicons">
			<iconKodi>./art/icons/Kodi.png</iconKodi>
			<iconSystem>./art/icons/System.png</iconSystem>
			<iconUpdates>./art/icons/Updates.png</iconUpdates>
			<iconGames>./art/icons/Games.png</iconGames>
			<iconControllers>./art/icons/Controllers.png</iconControllers>
			<iconUI>./art/icons/UI.png</iconUI>
			<iconSound>./art/icons/Sound.png</iconSound>
			<iconNetwork>./art/icons/Network.png</iconNetwork>
			<iconScraper>./art/icons/Scraper.png</iconScraper>
			<iconAdvanced>./art/icons/Advanced.png</iconAdvanced>
			<iconQuit>./art/icons/Quit.png</iconQuit>
			<iconRestart>./art/icons/Restart.png</iconRestart>
			<iconShutdown>./art/icons/Shutdown.png</iconShutdown>
			<iconFastShutdown>./art/icons/Fastshutdown.png</iconFastShutdown>
			<iconRetroachievements>./art/icons/Contest.png</iconRetroachievements>
		</menuIcons>
		<menuTextEdit name="menutextedit">
			<inactive>./art/textinput_ninepatch.png</inactive>
			<active>./art/textinput_ninepatch_active.png</active>
		</menuTextEdit>
	</view>
	<view name="system">
		<image name="help-image" extra="true">
			<pos>0.23 0.892</pos>
			<maxSize>1 0.061</maxSize>
			<path>./art/${style}/help-system.png</path>
			<color>ffffff</color>	
			<origin>0 0</origin>
			<zIndex>100</zIndex>
		</image>

		<image name="background" extra="true">
			<pos>0 0</pos>
			<size>1 1</size>
			<!--  <path>./art/${style}/backgrounds/${system.fullName}.png</path> --> 
			<path>./art/${style}/background.png</path>
			<color>ffffff</color>
		</image>

		<text name="logoText">
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.04</fontSize>
			<color>${logoTextColor}</color>
			<forceUppercase>true</forceUppercase>
			<text>${system.fullName}</text>	
		</text>

		<carousel name="systemcarousel">
			<type>vertical</type>
			<color>00000000</color>
			<logoScale>1.2</logoScale>
			<logoSize>0.662 0.064</logoSize>
			<size>0.662 0.606</size>
			<pos>0.171 0.155</pos>
			<origin>0 0</origin>
			<maxLogoCount>7</maxLogoCount>
		</carousel>		
		<image name="logo" extra="true">
		<pos>1 1</pos>
			<path>./art/${style}/logos/${system.name}.png</path>
		</image>
		<text name="systemInfo">
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<backgroundColor>00000000</backgroundColor>
			<fontSize>0.038</fontSize>
			<size>0.395 0.040</size>
			<pos>0.302 0.788</pos>
			<color>000000</color>
			<alignment>center</alignment>
			<origin>0 0</origin>
			<zIndex>110</zIndex>			
		</text>

	</view>

	<view name="grid">

		<image name="background" extra="true">
			<pos>0 0</pos>
			<size>1 1</size>
			<!--  <path>./art/${style}/backgrounds/${system.fullName}.png</path> --> 
			<path>./art/${style}/background_system.png</path>
			<color>ffffff</color>
		</image>

		<imagegrid name="gamegrid">
			<pos>0.01 0.13</pos>
			<size>0.99 0.7</size>
			<padding>0.03 0.03 0.03 0.03</padding>
			<margin>0.005 0.034</margin>
			<autoLayout>5 2</autoLayout>
			<autoLayoutSelectedZoom>1</autoLayoutSelectedZoom>
			<animateSelection>false</animateSelection>
		</imagegrid>
		<gridtile name="default">
			<backgroundColor>FFFFFF00</backgroundColor>
			<backgroundCornerSize>9 9</backgroundCornerSize>
			<selectionMode>image</selectionMode>
			<padding>8 8</padding>
			<imageColor>FFFFFFB0</imageColor>
			<imageSizeMode>minSize</imageSizeMode>
		</gridtile>
		<gridtile name="selected">
			<padding>8 8</padding>
			<backgroundCenterColor>${centerFadeColor}</backgroundCenterColor>
			<backgroundEdgeColor>${bottomBarColor}</backgroundEdgeColor>
			<imageColor>FFFFFFFF</imageColor>
			<!-- <backgroundImage>./art/tile-selected.png</backgroundImage> -->
		</gridtile>
		<text name="gridtile">
			<color>D0D0D0D0</color>
			<backgroundColor>00000000</backgroundColor>
			<fontSize>0.02</fontSize>
			<alignment>center</alignment>
			<size>0 0.18</size>
			<glowColor>00000008</glowColor>
			<glowSize>3</glowSize>
		</text>
		<text name="gridtile_selected">
			<visible>false</visible>
		</text>
		<text name="gridtile">
			<visible>false</visible>
		</text>

		<text name="md_name">
			<pos>0.104 0.895</pos>
			<size>0.689 0.049</size>
			<origin>0 0</origin>
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.04</fontSize>
			<color>${selectedNameColor}</color>
			<forceUppercase>true</forceUppercase>			
		</text>

		<text name="logoText">
			<size>0.557 0.050</size>
			<pos>0.224 0.088</pos>
			<origin>0 0</origin>
			<fontPath>./art/OCRAEXT.ttf</fontPath>
			<fontSize>0.045</fontSize>
			<color>${logoTextColor}</color>		
			<forceUppercase>true</forceUppercase>			
		</text>

		<image name="help-image" extra="true">
			<pos>0.15 0.818</pos>
			<maxSize>0.694 0.069</maxSize>
			<path>./art/${style}/help-gamelist.png</path>
			<color>ffffff</color>	
			<origin>0 0</origin>
			<zIndex>100</zIndex>			
		</image>

		<image name="players-icon" extra="true">
			<color>FFFFFFFF</color>
			<maxSize>0.05 0.0708333333333333</maxSize>
			<origin>0 0</origin>
			<path>./art/${style}/players-icon.png</path>
			<pos>0.799 0.897</pos>
			<zIndex>100</zIndex>
		</image>

		<text name="md_players">
			<alignment>center</alignment>
			<color>000000ff</color>
			<fontPath>./art/NiseSegaCyrillic.ttf</fontPath>
			<fontSize>0.02</fontSize>
			<pos>0.8 0.899</pos>
			<size>0.044 0.030</size>
			<zIndex>101</zIndex>
		</text>		

		<image name="genre-icon" extra="true">
			<color>FFFFFFFF</color>
			<maxSize>0.05 0.0722222222222222</maxSize>
			<origin>0 0</origin>
			<path>./art/${style}/genre-icon.png</path>
			<pos>0.853 0.897</pos>
			<zIndex>100</zIndex>
		</image>

		<text name="md_genre">
			<alignment>center</alignment>
			<color>fff913ff</color>
			<fontPath>./art/GamesGenre.ttf</fontPath>
			<fontSize>0.06</fontSize>
			<pos>0.853 0.895</pos>
			<size>0.050 0.070</size>
			<zIndex>101</zIndex>
		</text>

	</view>
	<customView name="Grid + Video" inherits="grid" displayName="${basicGridVideoName}">
		<imagegrid name="gamegrid">     
			<showVideoAtDelay>800</showVideoAtDelay>
			<padding>0.04 0.03 0.04 0.03</padding>
			<!-- <margin>0.003 0.003</margin> -->
		</imagegrid>
		<gridtile name="default">
			<padding>2 2</padding>
			<!-- <backgroundCornerSize>0 0</backgroundCornerSize> -->
			<imageSizeMode>minSize</imageSizeMode>
		</gridtile>
	</customView>

</theme>