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

<theme>
  <formatVersion>7</formatVersion>

  <!--Confugurações da view "grid"-->
  <view name="grid">
    <imagegrid name="gamegrid">
      <scrollDirection>horizontal</scrollDirection>
      <autoLayout>3 2</autoLayout>
      <autoLayout ifSubset="Ratio:ratio53">4 2</autoLayout>
      <scrollLoop>false</scrollLoop>

      <imageSource ifSubset="Grid Game Image:gridscreenshot">image</imageSource>
      <imageSource ifSubset="Grid Game Image:gridthumbnail">thumbnail</imageSource>
      <imageSource ifSubset="Grid Game Image:gridlogo">marquee</imageSource>

      <pos>0 0.2</pos>      <!-- 480x320 / 0x 64y-->
      <size>1 0.8</size>      <!--480x320 / 480x 256y-->
      <size ifHelpPrompts="true">1 0.725</size>      <!--480x320 / 480x 232y-->
      <margin>0.033333 0.025</margin>      <!-- 480x320 / 16x 8y -->
      <margin ifSubset="Ratio:ratio53">0.025 0.025</margin>      <!-- 480x320 / 12x 8y -->
      <padding>0.066666667 0.025</padding>      <!-- 480x320 / 32x 8y -->
      <zIndex>5</zIndex>
    </imagegrid>

    <text name="logoText">
      <pos>0.033333 0.078125</pos>      <!--480x320 / 16x 25y-->
      <origin>0 0.5</origin>
      <size>0.675 ${fontSizeH2-medium}</size>
      <zIndex>5</zIndex>
    </text>

    <text name="md_name">
      <fontSize>${fontSizeBody-medium}</fontSize>
      <fontSize ifSubset="FontSize:large">${fontSizeBody-large}</fontSize>
      <fontSize ifSubset="FontSize:small">${fontSizeBody-small}</fontSize>
      <fontPath>${fontRegular}</fontPath>
      <pos>0.033333 0.14375</pos>      <!--480x320 / 16x 44y-->
      <origin>0 0.5</origin>      <!--vertical center-->
      <size>0.9 ${fontSizeBody-medium}</size>
      <alignment>left</alignment>
      <zIndex>5</zIndex>
    </text>

    <gridtile name="default, selected">
      <selectionMode>full</selectionMode>
      <imageSizeMode ifSubset="Grid Game Image:gridscreenshot|gridthumbnail">minSize</imageSizeMode>
      <imageSizeMode ifSubset="Grid Game Image:gridlogo">maxSize</imageSizeMode>
    </gridtile>

    <gridtile name="default">
      <padding>0 0</padding>
      <backgroundColor>00000000</backgroundColor>
      <imageColor>FFFFFFFF</imageColor>
      <padding ifSubset="Ratio:ratio32">3 3</padding>
      <padding ifSubset="Ratio:wallpapers">4 4</padding>
      <padding ifSubset="Ratio:ratio53">8 8</padding>
    </gridtile>

    <gridtile name="selected">
      <backgroundCornerSize>0.05</backgroundCornerSize>
      <backgroundColor>${mainColor}</backgroundColor>
      <imageColor>FFFFFFFF</imageColor>
    </gridtile>

    <image name="gridtile.image">
      <roundCorners ifSubset="Ratio:ratio32">0.03</roundCorners>
      <roundCorners ifSubset="Ratio:wallpapers">0.04</roundCorners>
      <roundCorners ifSubset="Ratio:ratio53">0.025</roundCorners>

    </image>

    <image name="gridtile.image:selected">
      <roundCorners ifSubset="Ratio:ratio32">0.02</roundCorners>
      <roundCorners ifSubset="Ratio:wallpapers">0.025</roundCorners>
      <roundCorners ifSubset="Ratio:ratio53">0.015</roundCorners>
    </image>

    <ninepatch name="gridtile.background">
      <path>./assets/grid-selector@2.png</path>
      <cornerSize>6 6</cornerSize>
    </ninepatch>

    <ninepatch name="gridtile.background" ifSubset="Ratio:ratio53">
      <path>./assets/grid-selector@3.png</path>
      <cornerSize>10 10</cornerSize>
    </ninepatch>
    
    <text name="gridtile">
      <fontSize>${fontSizeCaption-medium}</fontSize>
      <fontSize ifSubset="FontSize:large">${fontSizeCaption-large}</fontSize>
      <fontSize ifSubset="FontSize:small">${fontSizeCaption-small}</fontSize>

      <fontPath>${fontRegular}</fontPath>
      <alignment>center</alignment>
      <singleLineScroll>false</singleLineScroll>
      <lineSpacing>1.1</lineSpacing>

      <!-- Tamanhos para ratio32 -->
      <size ifSubset="Ratio:ratio32">0.92 0.225</size>
      <padding ifSubset="Ratio:ratio32">0.04 0</padding>

      <!-- Tamanhos para wallpapers -->
      <size ifSubset="Ratio:wallpapers">0.9 0.225</size>
      <padding ifSubset="Ratio:wallpapers">0.05 0</padding>

      <!-- Tamanhos para ratio53 -->
      <size ifSubset="Ratio:ratio53">0.9 0.18</size>
      <padding ifSubset="Ratio:ratio53">0.05 0</padding>
    </text>

    <rating name="md_rating">
      <visible>false</visible>
    </rating>
  </view>
</theme>
