Skip to content

Commit

Permalink
Add watched recording icon to Titan skin
Browse files Browse the repository at this point in the history
  • Loading branch information
regeszter committed Sep 12, 2018
1 parent 6a4ecd1 commit f5f7146
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 7 deletions.
Expand Up @@ -44,7 +44,7 @@
<PinIconYOff>5</PinIconYOff>
<itemWidth>40</itemWidth>
<itemHeight>30</itemHeight>
<textureFocus>listcontrol_item_selected_tv.png</textureFocus>
<textureFocus>#(iif(eq(#watchedcount,'0'),'listcontrol_item_selected_tv_notwatched.png','listcontrol_item_selected_tv.png'))</textureFocus>
<textureNoFocus>-</textureNoFocus>
<IconXOff>20</IconXOff>
<IconYOff>13</IconYOff>
Expand Down
41 changes: 40 additions & 1 deletion mediaportal/MediaPortal.Base/skin/Titan/myradiorecorded.xml
Expand Up @@ -112,6 +112,44 @@
<label>#Radio.Recorded.Description</label>
<visible>facadeview.list</visible>
</control>
<control>
<description>BG for watched count/watched percent</description>
<type>image</type>
<id>1</id>
<posX>785</posX>
<posY>450</posY>
<width>114</width>
<height>114</height>
<texture>watched_count_bg.png</texture>
<visible>facadeview.list+!string.equals(#watchedcount,)+control.hasthumb(500)</visible>
</control>
<control>
<description>Video Watched Count Label</description>
<type>label</type>
<id>1</id>
<posX>782</posX>
<posY>448</posY>
<width>114</width>
<height>114</height>
<label>#watchedcount</label>
<font>Label</font>
<align>center</align>
<font>fontB16</font>
<textcolor>FFF</textcolor>
<visible>facadeview.list+!string.equals(#watchedcount,)+control.hasthumb(500)</visible>
</control>
<control>
<description>Watched Logo</description>
<type>image</type>
<id>0</id>
<posX>785</posX>
<posY>450</posY>
<width>114</width>
<height>114</height>
<texture>watched_percentage_#(string.format('{0:000}',mul(math.round(div(cint(#watchedpercent),5)),5))).png</texture>
<keepaspectratio>yes</keepaspectratio>
<visible>facadeview.list+!string.equals(#watchedcount,)+control.hasthumb(500)</visible>
</control>
<!-- :: THUMBVIEW :: -->
<control>
<description>Current program channel</description>
Expand Down Expand Up @@ -157,7 +195,8 @@
<visible>facadeview.filmstrip</visible>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>
</control>

<import>myradiorecorded.hiddenmenu.xml</import>
<import>common.facade.recordings.xml</import>
<import>common.overlay.xml</import>
Expand Down
51 changes: 46 additions & 5 deletions mediaportal/MediaPortal.Base/skin/Titan/mytvrecordedtv.xml
Expand Up @@ -219,9 +219,9 @@
</control>


<control Style="textBox">
<type>textboxscrollup</type>
<description>Description1</description>
<control Style="textBox">
<type>textboxscrollup</type>
<description>Description1</description>
<id>0</id>
<posX>1040</posX>
<posY>584</posY>
Expand All @@ -232,9 +232,50 @@
<visible>facadeview.smallicons|facadeview.largeicons</visible>
<animation effect="fade" time="250">WindowOpen</animation>
<animation effect="fade" time="250">WindowClose</animation>
</control>

<control>
<description>BG for watched count/watched percent</description>
<type>image</type>
<id>1</id>
<posX>785</posX>
<posY>450</posY>
<width>114</width>
<height>114</height>
<texture>watched_count_bg.png</texture>
<visible>facadeview.list+!string.equals(#watchedcount,)+control.hasthumb(500)</visible>
</control>

<import>mytvrecordedtv.hiddenmenu.xml</import>

<control>
<description>Video Watched Count Label</description>
<type>label</type>
<id>1</id>
<posX>782</posX>
<posY>448</posY>
<width>114</width>
<height>114</height>
<label>#watchedcount</label>
<font>Label</font>
<align>center</align>
<font>fontB16</font>
<textcolor>FFF</textcolor>
<visible>facadeview.list+!string.equals(#watchedcount,)+control.hasthumb(500)</visible>
</control>

<control>
<description>Watched Logo</description>
<type>image</type>
<id>0</id>
<posX>785</posX>
<posY>450</posY>
<width>114</width>
<height>114</height>
<texture>watched_percentage_#(string.format('{0:000}',mul(math.round(div(cint(#watchedpercent),5)),5))).png</texture>
<keepaspectratio>yes</keepaspectratio>
<visible>facadeview.list+!string.equals(#watchedcount,)+control.hasthumb(500)</visible>
</control>

<import>mytvrecordedtv.hiddenmenu.xml</import>
<import>common.facade.recordings.xml</import>
<import>common.overlay.xml</import>
</controls>
Expand Down

0 comments on commit f5f7146

Please sign in to comment.