diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2016-09-09 16:39:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 16:39:20 +0200 |
commit | 563874ca7b66d960caba494a3c0cfd06d4403e81 (patch) | |
tree | b5a99af38d4aa55cee07c6447f97d8baf85687b4 /addons/skin.estuary | |
parent | 8ff8c8abc2f38d802cd11114429f85dc774cfeef (diff) | |
parent | 6c93c7e08d754d70073ed91b3670e28e1dde6c94 (diff) |
Merge pull request #10438 from ksooo/estuary-pvr-recordings-widget
Diffstat (limited to 'addons/skin.estuary')
-rw-r--r-- | addons/skin.estuary/1080i/Home.xml | 74 | ||||
-rw-r--r-- | addons/skin.estuary/1080i/Includes_Home.xml | 135 | ||||
-rw-r--r-- | addons/skin.estuary/language/resource.language.en_gb/strings.po | 11 |
3 files changed, 205 insertions, 15 deletions
diff --git a/addons/skin.estuary/1080i/Home.xml b/addons/skin.estuary/1080i/Home.xml index e2bb2d4d78..ae72570b09 100644 --- a/addons/skin.estuary/1080i/Home.xml +++ b/addons/skin.estuary/1080i/Home.xml @@ -567,15 +567,26 @@ <param name="item8_vis" value="False" /> </include> <include content="WidgetListChannels"> - <param name="content_path" value="pvr://channels/tv/All channels/"/> + <param name="content_path" value="pvr://channels/tv/*?view=lastplayed"/> <param name="sortby" value="lastplayed"/> <param name="sortorder" value="descending"/> <param name="widget_header" value="$LOCALIZE[31016]"/> <param name="widget_target" value="pvr"/> <param name="list_id" value="12200"/> <param name="onup_id" value="12900"/> + <param name="ondown_id" value="12300"/> + <param name="height" value="550"/> + </include> + <include content="WidgetListRecordings"> + <param name="content_path" value="pvr://recordings/tv/active?view=flat"/> + <param name="sortby" value="date"/> + <param name="sortorder" value="descending"/> + <param name="widget_header" value="$LOCALIZE[31015]"/> + <param name="widget_target" value="pvr"/> + <param name="list_id" value="12300"/> + <param name="onup_id" value="12200"/> <param name="ondown_id" value="20001"/> - <param name="height" value="540"/> + <param name="height" value="550"/> </include> <control type="grouplist"> <height>218</height> @@ -586,22 +597,22 @@ <width>1360</width> <control type="group"> <width>680</width> - <visible>PVR.IsRecording</visible> + <visible>PVR.IsRecordingTV</visible> <include content="PVRWidget"> - <param name="icon" value="$INFO[PVR.NowRecordingChannelIcon]" /> + <param name="icon" value="$INFO[PVR.TVNowRecordingChannelIcon]" /> <param name="header" value="$LOCALIZE[19158]" /> - <param name="label1" value="$INFO[PVR.NowRecordingDateTime,$LOCALIZE[19126] - ]" /> - <param name="label2" value="$INFO[PVR.NowRecordingTitle][CR][COLOR=grey]$INFO[PVR.NowRecordingChannel][/COLOR]" /> + <param name="label1" value="$INFO[PVR.TVNowRecordingDateTime,$LOCALIZE[19126] - ]" /> + <param name="label2" value="$INFO[PVR.TVNowRecordingTitle][CR][COLOR=grey]$INFO[PVR.TVNowRecordingChannel][/COLOR]" /> </include> </control> <control type="group"> - <visible>PVR.HasNonRecordingTimer</visible> + <visible>PVR.HasNonRecordingTVTimer</visible> <width>680</width> <include content="PVRWidget"> - <param name="icon" value="$INFO[PVR.NextRecordingChannelIcon]" /> + <param name="icon" value="$INFO[PVR.TVNextRecordingChannelIcon]" /> <param name="header" value="$LOCALIZE[19157]" /> - <param name="label1" value="$INFO[PVR.NextRecordingDateTime,$LOCALIZE[19126] - ]" /> - <param name="label2" value="$INFO[PVR.NextRecordingTitle][CR][COLOR=grey]$INFO[PVR.NextRecordingChannel][/COLOR]" /> + <param name="label1" value="$INFO[PVR.TVNextRecordingDateTime,$LOCALIZE[19126] - ]" /> + <param name="label2" value="$INFO[PVR.TVNextRecordingTitle][CR][COLOR=grey]$INFO[PVR.TVNextRecordingChannel][/COLOR]" /> </include> </control> </control> @@ -624,6 +635,7 @@ <orientation>vertical</orientation> <height>922</height> <scrolltime tween="cubic" easing="out">500</scrolltime> + <usecontrolcoords>true</usecontrolcoords> <include content="SubMenu"> <param name="list_id" value="13900"/> <param name="ondown_id" value="13200"/> @@ -649,15 +661,55 @@ <param name="item8_vis" value="False" /> </include> <include content="WidgetListChannels"> - <param name="content_path" value="pvr://channels/radio/All channels/"/> + <param name="content_path" value="pvr://channels/radio/*?view=lastplayed"/> <param name="sortby" value="lastplayed"/> <param name="sortorder" value="descending"/> <param name="widget_header" value="$LOCALIZE[31018]"/> <param name="widget_target" value="files"/> <param name="list_id" value="13200"/> <param name="onup_id" value="13900"/> + <param name="ondown_id" value="13300"/> + <param name="height" value="550"/> + </include> + <include content="WidgetListRecordings"> + <param name="content_path" value="pvr://recordings/radio/active?view=flat"/> + <param name="sortby" value="date"/> + <param name="sortorder" value="descending"/> + <param name="widget_header" value="$LOCALIZE[31015]"/> + <param name="widget_target" value="pvr"/> + <param name="list_id" value="13300"/> + <param name="onup_id" value="13200"/> <param name="ondown_id" value="20001"/> + <param name="height" value="550"/> </include> + <control type="grouplist"> + <height>218</height> + <left>478</left> + <top>36</top> + <orientation>horizontal</orientation> + <align>right</align> + <width>1360</width> + <control type="group"> + <width>680</width> + <visible>PVR.IsRecordingRadio</visible> + <include content="PVRWidget"> + <param name="icon" value="$INFO[PVR.RadioNowRecordingChannelIcon]" /> + <param name="header" value="$LOCALIZE[19158]" /> + <param name="label1" value="$INFO[PVR.RadioNowRecordingDateTime,$LOCALIZE[19126] - ]" /> + <param name="label2" value="$INFO[PVR.RadioNowRecordingTitle][CR][COLOR=grey]$INFO[PVR.RadioNowRecordingChannel][/COLOR]" /> + </include> + </control> + <control type="group"> + <visible>PVR.HasNonRecordingRadioTimer</visible> + <width>680</width> + <include content="PVRWidget"> + <param name="icon" value="$INFO[PVR.RadioNextRecordingChannelIcon]" /> + <param name="header" value="$LOCALIZE[19157]" /> + <param name="label1" value="$INFO[PVR.RadioNextRecordingDateTime,$LOCALIZE[19126] - ]" /> + <param name="label2" value="$INFO[PVR.RadioNextRecordingTitle][CR][COLOR=grey]$INFO[PVR.RadioNextRecordingChannel][/COLOR]" /> + </include> + </control> + </control> </control> </control> <control type="group" id="15000"> diff --git a/addons/skin.estuary/1080i/Includes_Home.xml b/addons/skin.estuary/1080i/Includes_Home.xml index 6a2bec8beb..238129e02b 100644 --- a/addons/skin.estuary/1080i/Includes_Home.xml +++ b/addons/skin.estuary/1080i/Includes_Home.xml @@ -970,6 +970,141 @@ </control> </definition> </include> + <include name="WidgetListRecordings"> + <param name="height">600</param> + <param name="arrow_posy">200</param> + <param name="item_limit">10</param> + <param name="icon">$INFO[ListItem.Icon]</param> + <definition> + <control type="group"> + <description>Square Widget including header and arrows</description> + <height>$PARAM[height]</height> + <left>0</left> + <top>0</top> + <visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible> + <control type="label"> + <left>500</left> + <top>15</top> + <width>900</width> + <height>40</height> + <label>$PARAM[widget_header]</label> + <shadowcolor>text_shadow</shadowcolor> + </control> + <include content="LeftRightArrows"> + <param name="posy" value="300" /> + <param name="list_id" value="$PARAM[list_id]" /> + </include> + <control type="panel" id="$PARAM[list_id]"> + <left>480</left> + <top>55</top> + <width>1372</width> + <height>$PARAM[height]</height> + <scrolltime tween="cubic" easing="out">500</scrolltime> + <orientation>horizontal</orientation> + <onleft>9000</onleft> + <onright>noop</onright> + <onunfocus>SetProperty(listposition,$INFO[Container($PARAM[list_id]).Position],home)</onunfocus> + <onfocus>Control.Move($PARAM[list_id],-$INFO[Container($PARAM[list_id]).Position])</onfocus> + <onfocus>Control.Move($PARAM[list_id],$INFO[Window(home).Property(listposition)])</onfocus> + <onup>$PARAM[onup_id]</onup> + <ondown>$PARAM[ondown_id]</ondown> + <onback>SetFocus(9000)</onback> + <preloaditems>1</preloaditems> + <itemlayout width="343" height="500"> + <control type="image"> + <width>340</width> + <height>500</height> + <texture border="40">buttons/button-nofo.png</texture> + </control> + <control type="image"> + <top>43</top> + <left>42</left> + <width>260</width> + <height>200</height> + <texture fallback="DefaultTVShowsSquare.png">$PARAM[icon]</texture> + <aspectratio>keep</aspectratio> + </control> + <control type="textbox"> + <left>42</left> + <top>247</top> + <width>260</width> + <height>70</height> + <label>$INFO[ListItem.ChannelName]</label> + <font>font12</font> + <shadowcolor>text_shadow</shadowcolor> + <align>center</align> + <aligny>top</aligny> + </control> + <control type="textbox"> + <left>42</left> + <top>350</top> + <width>260</width> + <height>100</height> + <label>[COLOR button_focus]$INFO[ListItem.DateTime][/COLOR][CR]$INFO[ListItem.Title]</label> + <font>font12</font> + <shadowcolor>text_shadow</shadowcolor> + <align>center</align> + <aligny>top</aligny> + </control> + </itemlayout> + <focusedlayout width="343" height="500"> + <control type="group"> + <depth>DepthContentPopout</depth> + <animation type="Focus"> + <effect type="zoom" start="100" end="108" time="200" tween="sine" easing="inout" center="150,70" /> + </animation> + <animation type="Unfocus"> + <effect type="zoom" start="108" end="100" time="200" tween="sine" easing="inout" center="150,70" /> + </animation> + <control type="image"> + <width>340</width> + <height>500</height> + <texture border="40">buttons/button-nofo.png</texture> + </control> + <control type="image"> + <width>340</width> + <height>500</height> + <texture border="40" colordiffuse="button_focus">buttons/button-fo.png</texture> + <animation effect="fade" start="0" end="100" time="200">Focus</animation> + <animation effect="fade" start="100" end="0" time="0">Unfocus</animation> + </control> + <control type="image"> + <top>43</top> + <left>42</left> + <width>260</width> + <height>200</height> + <texture fallback="DefaultTVShowsSquare.png">$PARAM[icon]</texture> + <aspectratio>keep</aspectratio> + </control> + <control type="textbox"> + <left>42</left> + <top>247</top> + <width>260</width> + <height>70</height> + <label>$INFO[ListItem.ChannelName]</label> + <font>font12</font> + <shadowcolor>text_shadow</shadowcolor> + <align>center</align> + <aligny>top</aligny> + </control> + <control type="textbox"> + <left>42</left> + <top>350</top> + <width>260</width> + <height>100</height> + <label>[COLOR button_focus]$INFO[ListItem.DateTime][/COLOR][CR]$INFO[ListItem.Title]</label> + <font>font12</font> + <shadowcolor>text_shadow</shadowcolor> + <align>center</align> + <aligny>top</aligny> + </control> + </control> + </focusedlayout> + <content sortby="$PARAM[sortby]" sortorder="$PARAM[sortorder]" target="$PARAM[widget_target]" limit="$PARAM[item_limit]">$PARAM[content_path]</content> + </control> + </control> + </definition> + </include> <include name="WeatherWidget"> <control type="group"> <description>Square Weather Widget including header and arrows</description> diff --git a/addons/skin.estuary/language/resource.language.en_gb/strings.po b/addons/skin.estuary/language/resource.language.en_gb/strings.po index 571c620585..9cfb6e889f 100644 --- a/addons/skin.estuary/language/resource.language.en_gb/strings.po +++ b/addons/skin.estuary/language/resource.language.en_gb/strings.po @@ -91,12 +91,14 @@ msgctxt "#31014" msgid "Unplayed albums" msgstr "" -#: /1080i/Home.xml:362 +#. home screen recordings widget: recent tv / radio recordings +#: /1080i/Home.xml msgctxt "#31015" msgid "Recent recordings" msgstr "" -#: /1080i/Home.xml:374 +#. home screen channel widget: recently played tv channels. (please note that in some non-english languages #31018 and #31016 might not be equal) +#: /1080i/Home.xml msgctxt "#31016" msgid "Recently played channels" msgstr "" @@ -106,9 +108,10 @@ msgctxt "#31017" msgid "Rated" msgstr "" -#: /1080i/Home.xml:443 +#. home screen channel widget: recently played radio channels. (please note that in some non-english languages #31018 and #31016 might not be equal) +#: /1080i/Home.xml msgctxt "#31018" -msgid "Most played channels" +msgid "Recently played channels" msgstr "" #: /1080i/Home.xml:675 /1080i/MyWeather.xml:52 |