Skip to content

Commit

Permalink
✨ Allow switching wall orientation for 16x9 screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jurialmunkey committed Oct 6, 2024
1 parent 18ed99f commit 22ff087
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 1080i/Includes_Expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

<expression name="Exp_View_WallMode">[Control.IsVisible(500) | Control.IsVisible(510) | Control.IsVisible(520) | Control.IsVisible(530) | Control.IsVisible(540) | Control.IsVisible(560)]</expression>

<expression name="Exp_View_WallVert">[String.IsEqual(Skin.AspectRatio,16:9) + !Skin.HasSetting(View.SwitchWallOrientation)]</expression>
<expression name="Exp_View_WallVert">[String.IsEqual(Skin.AspectRatio,16:9) + Skin.HasSetting(View.SwitchWallOrientation)]</expression>

<expression name="Exp_View_503">$EXP[Exp_View_502]</expression>
<expression name="Exp_View_513">$EXP[Exp_View_512]</expression>
Expand Down
5 changes: 5 additions & 0 deletions 1080i/Includes_Labels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
<value>$LOCALIZE[1438]</value>
</variable>

<variable name="Label_Settings_WallOrientation">
<value condition="$EXP[Exp_View_WallVert]">$LOCALIZE[31059]</value>
<value>$LOCALIZE[31060]</value>
</variable>

<variable name="Label_TraktStats_Recent_0_Type">
<value condition="String.IsEqual(Window(Home).Property(TMDbHelper.TraktStats.Recent.0.Type),episode)">$LOCALIZE[20359]</value>
<value condition="String.IsEqual(Window(Home).Property(TMDbHelper.TraktStats.Recent.0.Type),movie)">$LOCALIZE[20338]</value>
Expand Down
10 changes: 10 additions & 0 deletions 1080i/SkinSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,16 @@
<visible>Container(3).HasFocus(3)</visible>
<onclick>runscript(script.skinvariables,action=buildviews,configure)</onclick>
</include>
<include content="Settings_Button" description="Switch Wall Orientation">
<param name="dialog">false</param>
<param name="id">3012</param>
<param name="control">button</param>
<label>$LOCALIZE[31082]</label>
<label2>$VAR[Label_Settings_WallOrientation]</label2>
<visible>Container(3).HasFocus(3)</visible>
<visible>String.IsEqual(Skin.AspectRatio,16:9)</visible>
<onclick>Skin.ToggleSetting(View.SwitchWallOrientation)</onclick>
</include>
<include content="Settings_Label" description="Style">
<param name="id">3020</param>
<label>$LOCALIZE[736]</label>
Expand Down
15 changes: 15 additions & 0 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,16 @@ msgctxt "#31058"
msgid "Wall Ring"
msgstr ""

#: /1080i/Includes_Labels.xml
msgctxt "#31059"
msgid "Vertical"
msgstr ""

#: /1080i/Includes_Labels.xml
msgctxt "#31060"
msgid "Horizontal"
msgstr ""

#: /shortcuts/template.xml
msgctxt "#31061"
msgid "User rating"
Expand Down Expand Up @@ -390,6 +400,11 @@ msgctxt "#31081"
msgid "Rebuilding is required to make your changes visible in the skin."
msgstr ""

#: /1080i/SkinSettings.xml
msgctxt "#31082"
msgid "Wall orientation"
msgstr ""

#: /1080i/Includes_Labels.xml
msgctxt "#31083"
msgid "Combined"
Expand Down

0 comments on commit 22ff087

Please sign in to comment.