<!--
HEXA Theme for Retrobat 4+ / Batocera v32+
By Helmic
-->

<?xml version="1.0" encoding="UTF-8"?>
<theme>
<formatVersion>7</formatVersion>

    <subset name="gamelistWallPaint" displayName="${lowSpecs}${lowSpecsPi}${lang.gamelistWallPaint}" appliesTo="(wallpaper),system,basic,detailed,grid,gamecarousel">
        <include name="no" displayName="${lang.no}"/>
		<include name="yesBw" displayName="${lang.yesBw}"/>
		<include name="yesColor" displayName="${lang.yesColor}"/>
        <include name="custom" displayName="${lang.custom}"/>
    </subset>

	<view name="basic">

		<image name="wallPaint" extra="true" ifSubset="gamelistWallPaint:yesColor|yesBw|custom,fullHexa:yes">
			<saturation>1.4</saturation>
			<saturation ifSubset="gamelistWallPaint:yesBw">0</saturation>
            <path>./../../default/color.png</path>
            <path>./../../default/color-${lang}.png</path>
            <path>./../../${system.theme}/color.png</path>
            <path>./../../${system.theme}/color-${lang}.png</path>
            <path region="us">./../../${system.theme}/us/color.png</path>
            <path region="jp">./../../${system.theme}/jp/color.png</path>
            <path ifSubset="gamelistWallPaint:custom">./../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom">./../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifArch="windows">./../../../../../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifNotArch="windows">./../../../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifArch="windows">./../../../../../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifNotArch="windows">./../../../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <linearSmooth>true</linearSmooth>
			<maxSize>1.3 99</maxSize>
			<maxSize ifSubset="gamelistWallPaint:custom">99 1</maxSize>
			<pos>0.5 0.5</pos>
			<origin>0.5 0.5</origin>
            <zIndex>1</zIndex>
			<gradientType>vertical</gradientType>			
			<color>ffffffdf</color>
			<colorEnd>ffffff80</colorEnd>
			<color ifSubset="wall:wallDark">ffffff8c</color>
			<colorEnd ifSubset="wall:wallDark|wallLight">ffffff4d</colorEnd>
			<opacity>0.5</opacity>			
			<visible ifSubset="gamelistWallPaint:no">false</visible>			
		</image>
 	
	</view>

	<view name="detailed,grid,gamecarousel">

		<image name="wallPaint" extra="true" ifSubset="gamelistWallPaint:custom,fullHexa:yes">
			<saturation>1.4</saturation>
            <path ifSubset="gamelistWallPaint:custom">./../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom">./../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifArch="windows">./../../../../../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifNotArch="windows">./../../../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifArch="windows">./../../../../../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifNotArch="windows">./../../../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <linearSmooth>true</linearSmooth>
			<maxSize ifSubset="gamelistWallPaint:custom">99 1</maxSize>
			<pos>0.5 0.5</pos>
			<origin>0.5 0.5</origin>
            <zIndex>1</zIndex>
			<gradientType>vertical</gradientType>			
			<color>ffffff</color>
			<colorEnd>0000004d</colorEnd>
			<color ifSubset="wall:wallDark">ffffff8c</color>
			<colorEnd ifSubset="wall:wallDark|wallLight">ffffff4d</colorEnd>
			<opacity>0.3</opacity>			
			<visible ifSubset="gamelistWallPaint:no">false</visible>			
		</image>

		<image name="md_fanart" ifSubset="gamelistWallPaint:yesColor|yesBw,fullHexa:yes">
			<saturation>1.4</saturation>
			<saturation ifSubset="gamelistWallPaint:yesBw">0</saturation>
            <linearSmooth>false</linearSmooth>
			<size>1 1</size>
			<origin>0.5 0.5</origin>
			<pos>0.5 0.5</pos>
			<zIndex>1</zIndex>
			<color>ffffff</color>
			<colorEnd>0000004d</colorEnd>
			<color ifSubset="wall:wallDark">ffffff8c</color>
			<colorEnd ifSubset="wall:wallDark|wallLight">ffffff4d</colorEnd>
			<gradientType>vertical</gradientType>			
			<opacity>0</opacity>			
			<scale>0</scale>	
			<visible ifSubset="gamelistWallPaint:no">false</visible>			
			<storyboard event="open">
                <animation property="scale" from="0" to="1" duration="1" mode="easeOut"/>
                <animation property="opacity" from="0" to="0.3" duration="500" mode="easeOut"/>
           </storyboard>
			<storyboard event="activateNext">
                <animation property="scale" from="0" to="1" duration="1" mode="easeOut"/>
                <animation property="opacity" from="0" to="0.3" duration="500" mode="easeOut"/>
            </storyboard>
			<storyboard event="activatePrev">
                <animation property="scale" from="0" to="1" duration="1" mode="easeOut"/>
                <animation property="opacity" from="0" to="0.3" duration="500" mode="easeOut"/>
           </storyboard>
			<storyboard event="deactivateNext">
                <animation property="opacity" from="0" to="0" duration="1" mode="easeIn"/>
            </storyboard>
			<storyboard event="deactivatePrev">
                <animation property="opacity" from="0" to="0" duration="1" mode="easeIn"/>
            </storyboard>
		</image>
	
	</view>

	<customView name="library" inherits="detailed" displayName="${lang.library}">
        
		<image name="wallPaint" extra="true" ifSubset="gamelistWallPaint:yesColor|yesBw|custom,fullHexa:yes">
			<saturation>1.4</saturation>
			<saturation ifSubset="gamelistWallPaint:yesBw">0</saturation>
            <path>./../../default/color.png</path>
            <path>./../../default/color-${lang}.png</path>
            <path>./../../${system.theme}/color.png</path>
            <path>./../../${system.theme}/color-${lang}.png</path>
            <path region="us">./../../${system.theme}/us/color.png</path>
            <path region="jp">./../../${system.theme}/jp/color.png</path>
            <path ifSubset="gamelistWallPaint:custom">./../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom">./../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifArch="windows">./../../../../../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifNotArch="windows">./../../../../_hexaCustom/wallpapers/custom.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifArch="windows">./../../../../../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <path ifSubset="gamelistWallPaint:custom" ifNotArch="windows">./../../../../_hexaCustom/wallpapers/${system.theme}.jpg</path>
            <linearSmooth>true</linearSmooth>
			<maxSize>1.3 99</maxSize>
			<maxSize ifSubset="gamelistWallPaint:custom">99 1</maxSize>
			<pos>0.5 0.5</pos>
			<origin>0.5 0.5</origin>
            <zIndex>1</zIndex>
			<gradientType>vertical</gradientType>			
			<color>ffffff</color>
			<colorEnd>0000004d</colorEnd>
			<color ifSubset="wall:wallDark">ffffff8c</color>
			<colorEnd ifSubset="wall:wallDark|wallLight">ffffff4d</colorEnd>
			<opacity>0.3</opacity>			
			<visible ifSubset="gamelistWallPaint:no">false</visible>			
		</image>

	</customView>
	
</theme>