<?xml version="1.0" encoding="UTF-8"?>
<!--
theme name:		Fundamental
version:		2.0
author:			Grila
-->

<theme>
	<formatVersion>7</formatVersion>
	<include>./core/icons/menuicons.xml</include>

	<include subset="colorset" name="blue" displayName="Blue">./core/colors/blue.xml</include>
	<include subset="colorset" name="dark" displayName="Dark">./core/colors/dark.xml</include>

	<view name="screen">	
		<controllerActivity name="controllerActivity">
		<pos>0.01 0.97</pos>
		<size>0.085 0.025</size>
		<itemSpacing>0.003</itemSpacing>
		<imagePath>./core/icons/gamepad.svg</imagePath>
		<color>FFFFFF90</color>
		<activityColor>FFFFFF</activityColor>
		<hotkeyColor>DEEC00</hotkeyColor>
		<verticalAlignment>center</verticalAlignment>
		</controllerActivity>		
	</view>
	
	<view name="menu">
		<menuText name="menutitle">
			<fontPath>./core/fonts/ubuntu_bold.ttf</fontPath>
			<fontSize>0.044</fontSize>
			<color>${colorTitle}</color>
		</menuText>

		<menuText name="menufooter">
			<fontPath>./core/fonts/ubuntu_medium.ttf</fontPath>
			<fontSize>0.02</fontSize>
			<color>${colorFooterMenu}</color>
		</menuText>

		<menuText name="menutext">
			<fontPath>./core/fonts/ubuntu_medium.ttf</fontPath>
			<fontSize>0.03</fontSize>
			<color>${colorTitle}</color>
			<separatorColor>${colorSeparator}</separatorColor>
			<selectorColor>${colorSelector}</selectorColor>
			<selectorColorEnd>${colorEndSelector}</selectorColorEnd>
			<selectedColor>${colorSelected}</selectedColor>
		</menuText>

		<menuTextSmall name="menutextsmall">
			<fontPath>./core/fonts/ubuntu_medium.ttf</fontPath>
			<fontSize>0.02</fontSize>
			<color>${colorText}</color>
		</menuTextSmall>

		<menuBackground name="menubg">
			<color>${colorBackgroundMenu}</color>
			<cornerSize>32 32</cornerSize>
			<path>./core/images/frame.png</path>
		</menuBackground>
	</view>

	<view name="system, basic, detailed, grid">
		<image name="background" extra="true">
			<path>./core/images/bg.jpg</path>
			<origin>0 0</origin>
			<pos>0 0</pos>
			<size>1 1</size>
			<color>${mainThemeColor}</color>
			<zIndex>0</zIndex>
		</image>

		<helpsystem name="help">
			<textColor>${metaTextColor}</textColor>
			<iconColor>${metaTextColor}</iconColor>
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
		</helpsystem>
	</view>

	<view name="system">
		<helpsystem name="help">
			<pos>0.015625 0.962962962962963</pos>
		</helpsystem>
	</view>

	<feature supported="carousel">
		<view name="system">
			<image name="ui" extra="true">
				<path>./core/images/carousel_detailed_video_view.png</path>
				<origin>0 0</origin>
				<pos>0 0</pos>
				<size>1 1</size>
				<color>${mainThemeColor}</color>
			</image>

			<image name="backgroundLogo" extra="true">
				<path>./core/images/backgroundlogo.svg</path>
				<origin>0 0</origin>
				<pos>0 0.43</pos>
				<maxSize>0.24 0.15</maxSize>
				<color>EFEFEF</color>
			</image>

			<helpsystem name="help">
				<pos>0.265625 0.962962962962963</pos>
			</helpsystem>

			<carousel name="systemcarousel">
				<type>vertical</type>
				<pos>0 0</pos>
				<size>0.23 1</size>
				<color>00000000</color>
				<logoScale>1.7</logoScale>
				<logoSize>0.1 0.1</logoSize>
				<maxLogoCount>5</maxLogoCount>
			</carousel>

			<text name="console_name" extra="true">
				<text>${system.fullName}</text>
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0740740740740741</fontSize>
				<pos>0.265625 0.0277777777777778</pos>
				<size>0.71875 0.0648148148148148</size>
				<alignment>left</alignment>
				<color>${titleTextColor}</color>
			</text>

			<text name="systemInfo">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.0925925925925926</pos>
				<size>0.71875 0.0277777777777778</size>
				<backgroundColor>00000000</backgroundColor>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
			</text>

			<image name="console" extra="true">
				<origin>0.5 0.5</origin>
				<pos>0.8072916666666667 0.3888888888888889</pos>
				<maxSize>0.3333333333333333 0.4444444444444444</maxSize>
			</image>

			<text name="console_notes" extra="true">
				<fontPath>./core/fonts/segoeuil.ttf</fontPath>
				<fontSize>0.0277777777777778</fontSize>
				<pos>0.265625 0.6388888888888889</pos>
				<size>0.71875 0</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.17</lineSpacing>
			</text>

			<text name="release_date" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.2037037037037037</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>

			<text name="developer" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.2592592592592593</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>

			<text name="cpu" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.3148148148148148</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>

			<text name="memory" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.3703703703703704</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>

			<text name="graphics" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.4259259259259259</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>

			<text name="sound" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.4814814814814815</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>

			<text name="media" extra="true">
				<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
				<fontSize>0.0333333333333333</fontSize>
				<pos>0.265625 0.537037037037037</pos>
				<size>0.3489583333333333 0.037037037037037</size>
				<alignment>left</alignment>
				<color>${metaTextColor}</color>
				<lineSpacing>1.5</lineSpacing>
			</text>
		</view>
	</feature>

	<view name="basic">
		<image name="ui" extra="true">
			<path>./core/images/basic_view.png</path>
			<origin>0 0</origin>
			<pos>0 0</pos>
			<size>1 1</size>
			<color>${mainThemeColor}</color>
		</image>

		<helpsystem name="help">
			<pos>0.015625 0.962962962962963</pos>
		</helpsystem>

		<image name="logo">
			<origin>0.5 0.5</origin>
			<pos>0.5 0.1203703703703704</pos>
			<maxSize>0.4791666666666667 0.1481481481481481</maxSize>
		</image>

		<textlist name="gamelist">
			<selectorColor>${titleTextColor}</selectorColor>
			<selectedColor>${metaTextColor}</selectedColor>
			<primaryColor>${metaTextColor}</primaryColor>
			<secondaryColor>${metaTextColor}</secondaryColor>
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<pos>0.25 0.212962962962963</pos>
			<size>0.5 0.7222222222222222</size>
			<fontSize>0.0333333333333333</fontSize>
			<scrollSound>./core/sound/scroll.wav</scrollSound>
		</textlist>
	</view>

	<view name="detailed">
		<image name="ui" extra="true">
			<path>./core/images/carousel_detailed_video_view.png</path>
			<origin>0 0</origin>
			<pos>0 0</pos>
			<size>1 1</size>
			<color>${mainThemeColor}</color>
			<zIndex>1</zIndex>
		</image>

		<video name="md_video">
			<origin>0.5 0.5</origin>
			<pos>0.8072916666666667 0.3888888888888889</pos>
			<maxSize>0.3333333333333333 0.4444444444444444</maxSize>
			<delay>0.8</delay>
			<showSnapshotNoVideo>true</showSnapshotNoVideo>
			<showSnapshotDelay>true</showSnapshotDelay>
			<loops>0</loops>
		</video>

		<helpsystem name="help">
			<pos>0.265625 0.962962962962963</pos>
		</helpsystem>

		<text name="console_name" extra="true">
			<text>${system.fullName}</text>
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0740740740740741</fontSize>
			<pos>0.265625 0.0277777777777778</pos>
			<size>0.71875 0.0648148148148148</size>
			<alignment>left</alignment>
			<color>${titleTextColor}</color>
		</text>

		<textlist name="gamelist">
			<selectorColor>${titleTextColor}</selectorColor>
			<selectedColor>${metaTextColor}</selectedColor>
			<primaryColor>${metaTextColor}</primaryColor>
			<secondaryColor>${metaTextColor}</secondaryColor>
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<pos>0 0.0277777777777778</pos>
			<size>0.25 0.9444444444444444</size>
			<fontSize>0.0333333333333333</fontSize>
			<horizontalMargin>0.0026041666666667</horizontalMargin>
			<scrollSound>./core/sound/scroll.wav</scrollSound>
		</textlist>

		<image name="logo">
			<origin>0.5 0.5</origin>
			<pos>2 2</pos>
			<maxSize>0.1 0.1</maxSize>
		</image>

		<text name="md_lbl_rating">
			<pos>2 2</pos>
		</text>

		<text name="md_lbl_lastplayed, md_lbl_genre, md_lbl_players, md_lbl_rating, md_lbl_releasedate, md_lbl_developer, md_lbl_publisher, md_lbl_playcount">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
			<alignment>left</alignment>
			<color>${metaTextColor}</color>
		</text>

		<text name="md_genre, md_players, md_developer, md_publisher, md_playcount">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
			<alignment>left</alignment>
			<color>${metaTextColor}</color>
		</text>

		<datetime name="md_lastplayed, md_releasedate">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
			<color>${metaTextColor}</color>
		</datetime>

		<text name="md_description">
			<fontPath>./core/fonts/segoeuil.ttf</fontPath>
			<fontSize>0.0277777777777778</fontSize>
			<pos>0.265625 0.6388888888888889</pos>
			<size>0.71875 0.2962962962962963</size>
			<alignment>left</alignment>
			<color>${metaTextColor}</color>
			<lineSpacing>1.17</lineSpacing>
		</text>

		<text name="md_lbl_releasedate">
			<pos>0.265625 0.2037037037037037</pos>
			<size>0.0677083333333333 0.037037037037037</size>
		</text>

		<datetime name="md_releasedate">
			<pos>0.3333333333333333 0.2037037037037037</pos>
			<size>0.28125 0.037037037037037</size>
		</datetime>

		<text name="md_lbl_developer">
			<pos>0.265625 0.2592592592592593</pos>
			<size>0.078125 0.037037037037037</size>
		</text>

		<text name="md_developer">
			<pos>0.34375 0.2592592592592593</pos>
			<size>0.2708333333333333 0.037037037037037</size>
		</text>

		<text name="md_lbl_publisher">
			<pos>0.265625 0.3148148148148148</pos>
			<size>0.0729166666666667 0.037037037037037</size>
		</text>

		<text name="md_publisher">
			<pos>0.3385416666666667 0.3148148148148148</pos>
			<size>0.2760416666666667 0.037037037037037</size>
		</text>

		<text name="md_lbl_genre">
			<pos>0.265625 0.3703703703703704</pos>
			<size>0.046875 0.037037037037037</size>
		</text>

		<text name="md_genre">
			<pos>0.3125 0.3703703703703704</pos>
			<size>0.3020833333333333 0.037037037037037</size>
		</text>

		<text name="md_lbl_players">
			<pos>0.265625 0.4259259259259259</pos>
			<size>0.0625 0.037037037037037</size>
		</text>

		<text name="md_players">
			<pos>0.328125 0.4259259259259259</pos>
			<size>0.2864583333333333 0.037037037037037</size>
		</text>

		<text name="md_lbl_lastplayed">
			<pos>0.265625 0.4814814814814815</pos>
			<size>0.0885416666666667 0.037037037037037</size>
		</text>

		<datetime name="md_lastplayed">
			<pos>0.3541666666666667 0.4814814814814815</pos>
			<size>0.2604166666666667 0.037037037037037</size>
		</datetime>

		<text name="md_lbl_playcount">
			<pos>0.265625 0.537037037037037</pos>
			<size>0.09375 0.037037037037037</size>
		</text>

		<text name="md_playcount">
			<pos>0.359375 0.537037037037037</pos>
			<size>0.2552083333333333 0.037037037037037</size>
		</text>

		<rating name="md_rating">
			<pos>0.265625 0.13</pos>
			<size>0 0.05</size>
			<filledPath>./core/images/filled.png</filledPath>
			<unfilledPath>./core/images/unfilled.png</unfilledPath>
		</rating>
	</view>

	<view name="grid">
		<image name="ui" extra="true">
			<path>./core/images/carousel_grid_view.png</path>
			<origin>0 0</origin>
			<pos>0 0</pos>
			<size>1 1</size>
			<color>${mainThemeColor}</color>
			<zIndex>1</zIndex>
		</image>

		<helpsystem name="help">
			<pos>0.265625 0.962962962962963</pos>
		</helpsystem>

		<image name="backgroundLogo" extra="true">
			<path>./core/images/backgroundlogo.svg</path>
			<origin>0 0</origin>
			<pos>0 0.05</pos>
			<maxSize>0.24 0.15</maxSize>
			<color>EFEFEF</color>
		</image>

		<image name="logo">
			<origin>0.5 0.5</origin>
			<pos>0.11 0.12</pos>
			<maxSize>0.20 0.13</maxSize>
		</image>

		<imagegrid name="gamegrid">
			<pos>0.26 0.12</pos>
			<size>0.75 0.78</size>
			<margin>0 0</margin>
			<padding>0.01 0.01 0.01 0.1</padding>
			<zIndex>10</zIndex>
      		<autoLayout>4 3</autoLayout>
			<autoLayoutSelectedZoom>1.12</autoLayoutSelectedZoom>
      		<animateSelection>false</animateSelection>
			<centerSelection>false</centerSelection>
			<showVideoAtDelay>800</showVideoAtDelay>
		</imagegrid>

		<gridtile name="default">
		    <backgroundColor>FFFFFF00</backgroundColor>
			<backgroundCornerSize>9 9</backgroundCornerSize>
			<selectionMode>image</selectionMode>
			<padding>5 5</padding>
			<imageColor>FFFFFFB0</imageColor>
		</gridtile>

		<gridtile name="selected">
			<backgroundColor>42424200</backgroundColor>
			<imageColor>FFFFFFFF</imageColor>
		</gridtile>

		<ninepatch name="gridtile.background:selected">
			<animateColor>b3b3b3ff</animateColor>
			<animateColorTime>350</animateColorTime>
		</ninepatch>

		<text name="md_name">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.05</fontSize>
			<pos>0.265625 0.02</pos>
			<size>0.71875 0.0648148148148148</size>
			<alignment>left</alignment>
			<color>${titleTextColor}</color>
		</text>

		<text name="md_lbl_lastplayed, md_lbl_genre, md_lbl_players, md_lbl_releasedate, md_lbl_developer, md_lbl_publisher, md_lbl_playcount">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
			<alignment>left</alignment>
			<color>${metaTextColor}</color>
		</text>

		<text name="md_genre, md_players, md_developer, md_publisher, md_playcount">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
			<alignment>left</alignment>
			<color>${metaTextColor}</color>
		</text>

		<datetime name="md_lastplayed, md_releasedate">
			<fontPath>./core/fonts/BebasKai-Regular.otf</fontPath>
			<fontSize>0.0333333333333333</fontSize>
			<color>${metaTextColor}</color>
		</datetime>

		<rating name="md_rating">
			<pos>0.01 0.23</pos>
			<size>0 0.07</size>
			<filledPath>./core/images/filled.png</filledPath>
			<unfilledPath>./core/images/unfilled.png</unfilledPath>
		</rating>

		<text name="md_lbl_releasedate">
			<pos>0.01 0.33</pos>
			<size>0.1 0.03</size>
		</text>

		<datetime name="md_releasedate">
			<pos>0.1 0.33</pos>
			<size>0.13 0.03</size>
		</datetime>

		<text name="md_lbl_developer">
			<pos>0.01 0.38</pos>
			<size>0.1 0.03</size>
		</text>

		<text name="md_developer">
			<pos>0.1 0.38</pos>
			<size>0.13 0.03</size>
		</text>

		<text name="md_lbl_publisher">
			<pos>0.01 0.43</pos>
			<size>0.1 0.03</size>
		</text>

		<text name="md_publisher">
			<pos>0.1 0.43</pos>
			<size>0.13 0.03</size>
		</text>

		<text name="md_lbl_genre">
			<pos>0.01 0.48</pos>
			<size>0.1 0.03</size>
		</text>

		<text name="md_genre">
			<pos>0.1 0.48</pos>
			<size>0.13 0.03</size>
		</text>

		<text name="md_lbl_players">
			<pos>0.01 0.53</pos>
			<size>0.1 0.03</size>
		</text>

		<text name="md_players">
			<pos>0.1 0.53</pos>
			<size>0.13 0.03</size>
		</text>

		<text name="md_lbl_lastplayed">
			<pos>0.01 0.58</pos>
			<size>0.1 0.03</size>
		</text>

		<datetime name="md_lastplayed">
			<pos>0.1 0.58</pos>
			<size>0.13 0.03</size>
		</datetime>

		<text name="md_lbl_playcount">
			<pos>0.01 0.63</pos>
			<size>0.1 0.03</size>
		</text>

		<text name="md_playcount">
			<pos>0.1 0.63</pos>
			<size>0.14 0.03</size>
		</text>	

		<text name="md_description">
			<fontPath>./core/fonts/segoeuil.ttf</fontPath>
			<fontSize>0.0277777777777778</fontSize>
			<pos>0.01 0.7</pos>
			<size>0.23 0.26</size>
			<color>${metaTextColor}</color>
			<lineSpacing>1.17</lineSpacing>
		</text>	
	</view>
</theme>
