Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
🧰 Nesting cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Apr 18, 2024
1 parent f82afff commit b561832
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
82 changes: 40 additions & 42 deletions 1080i/Includes_Layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@
<param name="selected">false</param>
<definition>
<control type="group">
<nested />
<right>20</right>
<left>20</left>
<include content="Object_Control" condition="$PARAM[selected]">
Expand Down Expand Up @@ -1466,7 +1465,6 @@
<param name="affix" />
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>
<control type="group">
Expand Down Expand Up @@ -1518,7 +1516,6 @@
<param name="listitem">ListItem</param>
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>
<control type="group">
Expand Down Expand Up @@ -1569,7 +1566,6 @@
<param name="listitem">ListItem</param>
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>

Expand Down Expand Up @@ -1799,38 +1795,45 @@
</definition>
</include>

<include name="Layout_Home_Menu_Icon_FadeDiffuse">
<animation effect="fadediffuse" start="FFFFFFFF" end="FFFF0000" condition="String.IsEqual(ListItem.Property(disabled),True)">Conditional</animation>
</include>

<include name="Layout_Home_Menu_Icon_Def">
<control type="image">
<nested />
<aspectratio>keep</aspectratio>
<bordersize>icon_home_bordersize</bordersize>
<colordiffuse>$PARAM[color]</colordiffuse>
<texture>$INFO[ListItem.Icon]</texture>
<visible>String.IsEmpty(ListItem.Property(showlabel))</visible>
</control>
<control type="image">
<nested />
<top>-10</top>
<bottom>10</bottom>
<aspectratio>keep</aspectratio>
<bordersize>icon_home_bordersize</bordersize>
<colordiffuse>$PARAM[color]</colordiffuse>
<texture>$INFO[ListItem.Icon]</texture>
<visible>![String.IsEmpty(ListItem.Property(showlabel))]</visible>
</control>
<control type="label">
<nested />
<top>25</top>
<height>10</height>
<label>$INFO[ListItem.Label]</label>
<textcolor>$PARAM[color]</textcolor>
<font>font_hint_button</font>
<align>center</align>
<aligny>top</aligny>
<left>-40</left>
<right>-40</right>
<visible>![String.IsEmpty(ListItem.Property(showlabel))]</visible>
</control>
<param name="include_fadediffuse">false</param>
<definition>
<control type="image">
<include condition="$PARAM[include_fadediffuse]">Layout_Home_Menu_Icon_FadeDiffuse</include>
<aspectratio>keep</aspectratio>
<bordersize>icon_home_bordersize</bordersize>
<colordiffuse>$PARAM[color]</colordiffuse>
<texture>$INFO[ListItem.Icon]</texture>
<visible>String.IsEmpty(ListItem.Property(showlabel))</visible>
</control>
<control type="image">
<include condition="$PARAM[include_fadediffuse]">Layout_Home_Menu_Icon_FadeDiffuse</include>
<top>-10</top>
<bottom>10</bottom>
<aspectratio>keep</aspectratio>
<bordersize>icon_home_bordersize</bordersize>
<colordiffuse>$PARAM[color]</colordiffuse>
<texture>$INFO[ListItem.Icon]</texture>
<visible>![String.IsEmpty(ListItem.Property(showlabel))]</visible>
</control>
<control type="label">
<include condition="$PARAM[include_fadediffuse]">Layout_Home_Menu_Icon_FadeDiffuse</include>
<top>25</top>
<height>10</height>
<label>$INFO[ListItem.Label]</label>
<textcolor>$PARAM[color]</textcolor>
<font>font_hint_button</font>
<align>center</align>
<aligny>top</aligny>
<left>-40</left>
<right>-40</right>
<visible>![String.IsEmpty(ListItem.Property(showlabel))]</visible>
</control>
</definition>
</include>

<variable name="Layout_Home_Menu_Color_NF">
Expand Down Expand Up @@ -1893,7 +1896,7 @@
</control>
<include content="Layout_Home_Menu_Icon_Def">
<param name="color">$VAR[ColorSelected]</param>
<animation effect="fadediffuse" start="FFFFFFFF" end="FFFF0000" condition="String.IsEqual(ListItem.Property(disabled),True)">Conditional</animation>
<param name="include_fadediffuse">true</param>
</include>
</control>
</control>
Expand Down Expand Up @@ -2173,7 +2176,6 @@
<param name="affix" />
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>
<control type="group">
Expand Down Expand Up @@ -2234,7 +2236,6 @@
<param name="affix" />
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>
<control type="group">
Expand Down Expand Up @@ -2415,7 +2416,6 @@
<param name="affix" />
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>
<control type="group">
Expand Down Expand Up @@ -2636,7 +2636,6 @@
<param name="affix" />
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>

Expand Down Expand Up @@ -2735,7 +2734,7 @@
<param name="affix" />
<definition>
<control type="group">
<nested />

<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>

Expand Down Expand Up @@ -2821,7 +2820,6 @@
<param name="affix" />
<definition>
<control type="group">
<nested />
<width>$PARAM[item_w]</width>
<height>$PARAM[item_h]</height>
<include content="Object_ItemBack">
Expand Down
2 changes: 2 additions & 0 deletions 1080i/Includes_Objects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@
<param name="font_top">font_mini_bold</param>
<param name="font_sub">font_mini</param>
<param name="include_labels">true</param>
<param name="backing_visible">true</param>
<definition>
<control type="group">
<height>80</height>
Expand All @@ -695,6 +696,7 @@
<bordersize>40</bordersize>
<bordertexture colordiffuse="shadow_soft">shadows/circle_50-shadow-40.png</bordertexture>
<texture colordiffuse="main_fg_100">diffuse/circle_50.png</texture>
<visible>$PARAM[backing_visible]</visible>
</control>
<include content="Object_InfoCircle_Image">
<param name="bordersize">$PARAM[bordersize]</param>
Expand Down

0 comments on commit b561832

Please sign in to comment.