<!--
Theme: AX-SlideMix
Author: SMD © 2024
-->

<theme>
  <formatVersion>7</formatVersion>

  <view name="system">
    <!-- Cards position -->
    <carousel name="systemcarousel">
      <origin>0.5 0</origin>
      <pos>0.5 0</pos>
      <defaultTransition>fade</defaultTransition>
      <systemInfoDelay>300</systemInfoDelay>
      <scrollSound>./sounds/scroll.wav</scrollSound>
      <size>1.1 1</size>
      <size ifSubset="Ratio:ratio53">1.2 1</size>

      <logoSize>0.25 0.25</logoSize>      <!-- 480x320 / 120x 80y -->
      <logoScale>1.4</logoScale>

      <maxLogoCount>4</maxLogoCount>
      <maxLogoCount ifSubset="Ratio:ratio53">5</maxLogoCount>

      <logoPos>0.15 0.55</logoPos>
      <logoPos ifSubset="Ratio:wallpapers">0.15 0.6</logoPos>
      <logoPos ifSubset="Ratio:ratio53">0.2 0.55</logoPos>

      <zIndex>10</zIndex>
    </carousel>

    <video name="carouselVideo" extra="true" ifSubset="PlayVideo:true">
      <path>{random}</path>
      <pos>0 0.25</pos>
      <origin>0 0.5</origin>
      <minSize>1 0.5</minSize>
      <showSnapshotNoVideo>true</showSnapshotNoVideo>
      <zIndex>-8</zIndex>
      <delay>1.5</delay>

      <storyboard>
        <animation property="opacity" from="0" to="1" begin="0" duration="1000" mode="easeOut" />
      </storyboard>
    </video>

    <image name="custom_bg_fg" extra="true">
      <path>./assets/ratio32/carousel-background.png</path>
      <path ifSubset="Ratio:wallpapers">./assets/wallpapers/carousel-background.png</path>
      <path ifSubset="Ratio:ratio53">./assets/ratio53/carousel-background.png</path>
      <size>1 1</size>
      <origin>0 0</origin>
      <pos>0 0</pos>
      <zIndex>-7</zIndex>
    </image>

    <!-- System Name -->
    <text name="systemName" extra="true">
      <text>${system.fullName}</text>
      <origin>0 0</origin>
      <pos>0.08333 0.325</pos>      <!-- 480x320 / 48x 104y -->
      <pos ifSubset="Ratio:wallpapers">0.08333 0.375</pos>      <!-- 480x320 / 48x 104y -->
      <size>0.866667 ${fontSizeH1-medium}</size>      <!-- 480x320 / 416x -->
      <fontPath>${fontBold}</fontPath>
      <color>ffffff</color>
      <glowColor>0a0a0a</glowColor>
      <glowSize>1.6</glowSize>
      <fontSize>${fontSizeH1-medium}</fontSize>
      <fontSize ifSubset="FontSize:large">${fontSizeH1-large}</fontSize>
      <fontSize ifSubset="FontSize:small">${fontSizeH1-small}</fontSize>

      <lineSpacing>1</lineSpacing>
      <alignment>left</alignment>
      <zIndex>15</zIndex>
    </text>

    <!-- Total games per system -->
    <text name="systemInfo">
      <origin>0 0</origin>
      <pos>0.08333 0.41</pos>
      <pos ifSubset="Ratio:wallpapers">0.08333 0.46</pos>
      <size>0.866667 ${fontSizeBody-medium}</size>      <!-- 480x320 / 416x -->

      <fontSize>${fontSizeBody-medium}</fontSize>
      <fontSize ifSubset="FontSize:large">${fontSizeBody-large}</fontSize>
      <fontSize ifSubset="FontSize:small">${fontSizeBody-small}</fontSize>
      
      <color>ffffff</color>
      <glowColor>0a0a0a</glowColor>
      <glowSize>1.6</glowSize>

      <alignment>left</alignment>
      <forceUppercase>0</forceUppercase>
      <fontPath>${fontRegular}</fontPath>
      <lineSpacing>1</lineSpacing>
      <zIndex>15</zIndex>
    </text>

    <!-- System Logo -->
    <image name="logo">
      <path>./assets/logos/${system.theme}.png</path>
    </image>

    <!-- Logo Fallback -->
    <text name="logoText">
      <origin>0 0</origin>
      <fontPath>${fontRegular}</fontPath>
      <fontSize>${fontSizeBody-medium}</fontSize>
      <fontSize ifSubset="FontSize:large">${fontSizeBody-large}</fontSize>
      <fontSize ifSubset="FontSize:small">${fontSizeBody-small}</fontSize>
    </text>

    <!-- System Background -->
    <image name="background" extra="true">
      <path>./assets/background.png</path>
      <size>1 1</size>
      <origin>0 0</origin>
      <pos>0 0</pos>
      <tile>true</tile>
      <zIndex>-50</zIndex>
    </image>

    <!-- System Background -->
    <image name="cover" extra="true">
      <path>{random:image}</path>
      <path>./assets/systems/${system.theme}.webp</path>
      <size>1 0</size>
      <origin>0 0.5</origin>
      <pos>0 0.25</pos>
      <zIndex>-9</zIndex>
      <storyboard>
        <animation property="opacity" from="0" to="1" begin="0" duration="1000" mode="easeOut" />
      </storyboard>
    </image>

    <image name="cover" extra="true" ifSubset="Background Style:custom">
      <path>./assets/systems/games.jpg</path>
      <path>./assets/systems/games.jpg</path>
      <path>./assets/systems/games.jpg</path>
      <path>./assets/systems/games.jpg</path>
    </image>

    <image name="cover_general" extra="true" ifSubset="Background Style:custom">
      <path>./assets/systems/games.jpg</path>
      <path>./assets/systems/games.jpg</path>
      <path>./assets/systems/games.jpg</path>
      <path>./assets/systems/games.jpg</path>

      <size>1 0</size>
      <origin>0 0.5</origin>
      <pos>0 0.25</pos>
      <zIndex>-9</zIndex>
    </image>

    <image name="cover" extra="true" ifSubset="Background Style:random">
      <path>{random:image}</path>
    </image>
  </view>

  <view name="system, basic, detailed, grid">
    <image name="osdBackground" extra="true">
      <pos>0 0</pos>
      <origin>0 0</origin>
      <size>1 1</size>

      <path ifSubset="Ratio:ratio32">./assets/ratio32/osd-bg.png</path>
      <path ifSubset="Ratio:wallpapers">./assets/wallpapers/osd-bg.png</path>
      <path ifSubset="Ratio:ratio53">./assets/ratio53/osd-bg.png</path>

      <visible ifSubset="Status Bar:hidden">false</visible>
      <zIndex>100</zIndex>
    </image>
  </view>

  <view name="screen">
    <text name="clock">
      <origin>0 0</origin>
      <pos ifSubset="Ratio:wallpapers">0.009 0.009</pos>      <!-- 480x320 / 0x 16y-->

      <size ifSubset="Ratio:wallpapers">0.10 0.040</size>      <!-- 640x480 / 544x-->

      <size ifSubset="Status Bar:clock">0.10 0.040</size>      <!-- 480x320 / 432x-->

      <fontSize>0.039</fontSize>
      <fontSize ifSubset="Ratio:ratio53">${fontSizeBody-medium}</fontSize>
      <!-- <backgroundColor>ff0000</backgroundColor> -->

      <fontPath>${fontRegular}</fontPath>
      <lineSpacing>1</lineSpacing>
      <alignment>center</alignment>

      <visible ifSubset="Status Bar:hidden|battery">false</visible>
    </text>

    <batteryIndicator name="batteryIndicator">
      <pos>0.93 0.0125</pos>      <!-- 480x320 / 456x (from right to left) 4y-->
      <size>0.05</size>      <!-- 16x 16y-->
      <color>ffffff</color>
      <glowColor>0a0a0a</glowColor>
      <glowSize>1.6</glowSize>

      <visible ifSubset="Status Bar:hidden|clock">false</visible>
      <itemSpacing>0.008333333</itemSpacing>

      <!-- Assets -->
      <full>./assets/icons/screen/16x16/battery=full.svg</full>
      <at75>./assets/icons/screen/16x16/battery=75.svg</at75>
      <at50>./assets/icons/screen/16x16/battery=50.svg</at50>
      <at25>./assets/icons/screen/16x16/battery=25.svg</at25>
      <empty>./assets/icons/screen/16x16/battery=empty.svg</empty>
      <incharge>./assets/icons/screen/16x16/battery=charging.svg</incharge>
      <networkIcon>./assets/icons/screen/16x16/wifi=on.svg</networkIcon>
    </batteryIndicator>

    <batteryIndicator name="batteryIndicator" ifSubset="Ratio:wallpapers">
      <size>0.05</size>      <!-- 24x 24y-->
      <visible ifSubset="Status Bar:hidden|clock">false</visible>

      <!-- Assets -->
      <full>./assets/icons/screen/24x24/battery=full.svg</full>
      <at75>./assets/icons/screen/24x24/battery=75.svg</at75>
      <at50>./assets/icons/screen/24x24/battery=50.svg</at50>
      <at25>./assets/icons/screen/24x24/battery=25.svg</at25>
      <empty>./assets/icons/screen/24x24/battery=empty.svg</empty>
      <incharge>./assets/icons/screen/24x24/battery=charging.svg</incharge>
      <networkIcon>./assets/icons/screen/24x24/wifi=on.svg</networkIcon>
    </batteryIndicator>

    <batteryIndicator name="batteryIndicator" ifSubset="Ratio:ratio53">
      <size>0.0625</size>      <!-- 72x 72y-->
      <visible ifSubset="Status Bar:hidden|clock">false</visible>

      <!-- Assets -->
      <full>./assets/icons/screen/72x72/battery=full.svg</full>
      <at75>./assets/icons/screen/72x72/battery=75.svg</at75>
      <at50>./assets/icons/screen/72x72/battery=50.svg</at50>
      <at25>./assets/icons/screen/72x72/battery=25.svg</at25>
      <empty>./assets/icons/screen/72x72/battery=empty.svg</empty>
      <incharge>./assets/icons/screen/72x72/battery=charging.svg</incharge>
      <networkIcon>./assets/icons/screen/72x72/wifi=on.svg</networkIcon>
      <color>ffffff</color>
      <glowColor>0a0a0a</glowColor>
      <glowSize>1.6</glowSize>
    </batteryIndicator>

    <controllerActivity name="controllerActivity">
      <origin>0 0</origin>
      <pos>0.016666 0.025</pos>
      <size>0.025</size>
      <itemSpacing>0.003</itemSpacing>
      <imagePath>./assets/pin.svg</imagePath>
    </controllerActivity>
  </view>
</theme>