Skip to content

Commit

Permalink
tvchannels
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed May 2, 2024
1 parent c6d0eb1 commit 8304140
Show file tree
Hide file tree
Showing 14 changed files with 449 additions and 176 deletions.
4 changes: 2 additions & 2 deletions 16x9/Buttons_Infoscreen_Path_Tracer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">ClearProperty(ContainerPath_1,$PARAM[window])</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">ClearProperty(Breadcrumb_Level,$PARAM[window])</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">Dialog.Close</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + String.IsEmpty(Window(home).Property(Origin))">Dialog.Close(all,true)</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + !String.IsEmpty(Window(home).Property(Origin))">ActivateWindow(home)</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1) + !String.IsEmpty(Window(home).Property(Origin))">SetFocus(6001)</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),1)">ClearProperty(Origin,home)</onfocus>
Expand Down Expand Up @@ -100,7 +100,7 @@
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),10)">ClearProperty(ContainerPath_10,$PARAM[window])</onfocus>
<onfocus condition="String.IsEqual(Window.Property(Breadcrumb_Level),10)">SetProperty(Breadcrumb_Level,9,$PARAM[window])</onfocus>

<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">Dialog.Close</onfocus>
<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">Dialog.Close(all,true)</onfocus>
<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">SetFocus(6001)</onfocus>

</control>
Expand Down
13 changes: 13 additions & 0 deletions 16x9/Colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@
<value condition="Integer.IsEqual(Skin.String(Background_Opacity),50)">$VAR[Alpha_50]$VAR[Dark_Grey_Hex]</value>
<value>$VAR[Alpha_75]$VAR[Dark_Grey_Hex]</value>
</variable>
<variable name="PVR_Panel_Mask">
<value condition="Integer.IsEqual(Skin.String(Background_Opacity),100)">$VAR[Dark_Grey_Color]</value>
<value condition="Integer.IsEqual(Skin.String(Background_Opacity),85)">$VAR[Alpha_85]$VAR[Dark_Grey_Hex]</value>
<value condition="Integer.IsEqual(Skin.String(Background_Opacity),66)">$VAR[Alpha_66]$VAR[Dark_Grey_Hex]</value>
<value condition="Integer.IsEqual(Skin.String(Background_Opacity),50)">$VAR[Alpha_50]$VAR[Dark_Grey_Hex]</value>
<value>$VAR[Alpha_75]$VAR[Dark_Grey_Hex]</value>
</variable>
<variable name="Transparent_Dialog_Mask">
<value condition="VideoPlayer.IsFullscreen">$VAR[Alpha_75]$VAR[Dark_Hex]</value>
<value>$VAR[Alpha_50]$VAR[Dark_Hex]</value>
Expand All @@ -209,6 +216,9 @@
<value condition="!Skin.HasSetting(visualisation_Disable_Background)">$VAR[Dark_Color]</value>
<value>$VAR[Secondary_Color]</value>
</variable>
<variable name="videoplayer_Mask">
<value>$VAR[Alpha_50]$VAR[Dark_Hex]</value>
</variable>

<!-- Labels -->
<variable name="Breadcrumb_Label_Color">
Expand Down Expand Up @@ -910,5 +920,8 @@
<value condition="Control.HasFocus(10)">$VAR[Light_Color]</value>
<value>$VAR[Unfocused_Color]</value>
</variable>
<variable name="PVR_Channel_Progress_Color">
<value>$VAR[Alpha_50]$VAR[Dark_Hex]</value>
</variable>

</includes>
9 changes: 9 additions & 0 deletions 16x9/Components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,22 @@
</include>
</include>

<include name="VideoPlayer_Mask">
<control type="image">
<texture colordiffuse="$VAR[videoplayer_Mask]">views/white_100.png</texture>
<visible>$EXP[TransparentDialog_IsVisible]</visible>
<include content="VisibleHidden_Fade_Animation" />
</control>
</include>

<include name="Embedded_VideoPlayer">
<definition>
<control type="group">
<visible>$PARAM[visible]</visible>
<include content="Visible_Fade_Animation" />
<nested />
<control type="videowindow" />
<include content="VideoPlayer_Mask" condition="Window.Is(tvchannels) | Window.Is(tvguide) | Window.Is(home)" />
</control>
</definition>
</include>
Expand Down
114 changes: 108 additions & 6 deletions 16x9/Components_PVR.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<param name="bottom" />
<param name="height" />
<param name="plot_height_max" />
<param name="align" default="center" />
<param name="title_label" default="$VAR[PVR_Info_Box_Title_Label]" />
<param name="info_label" default="$VAR[PVR_Info_Box_Info_Label]" />
<definition>
<control type="grouplist">
<visible>$PARAM[visible]</visible>
Expand All @@ -17,24 +20,25 @@
<bottom>$PARAM[bottom]</bottom>
<height>$PARAM[height]</height>
<itemgap>0</itemgap>
<align>center</align>
<align>$PARAM[align]</align>
<usecontrolcoords>true</usecontrolcoords>
<control type="label">
<height>45</height>
<nested />
<control type="textbox">
<height min="45" max="180">auto</height>
<font>MusicPlayer_Title</font>
<label>$INFO[ListItem.Label]</label>
<label>$PARAM[title_label]</label>
<textcolor>$VAR[Light_Color]</textcolor>
<visible>!String.IsEmpty(ListItem.Label)</visible>
</control>
<control type="label">
<height>35</height>
<font>Grid_Info</font>
<label>[UPPERCASE]$INFO[ListItem.StartTime]$INFO[ListItem.EndTime,-]$VAR[ListItem_EpisodeName_Divider_Bold, ]$INFO[ListItem.EpisodeName, ]$VAR[ListItem_Genre_Divider_Bold, ]$INFO[ListItem.Genre, ][/UPPERCASE]</label>
<label>$PARAM[info_label]</label>
<textcolor>$VAR[Light_Color]</textcolor>
</control>
<control type="textbox">
<top>10</top>
<height max="$PARAM[plot_height_max]">auto</height>
<height min="90" max="$PARAM[plot_height_max]">auto</height>
<font>Description</font>
<label>$INFO[ListItem.Plot]</label>
<visible>!String.IsEmpty(ListItem.Plot)</visible>
Expand All @@ -56,4 +60,102 @@
</control>
</include>

<include name="PVR_ChannelList_Item">
<param name="color" default="$VAR[Unfocused_Color]" />
<definition>
<control type="progress">
<visible>ListItem.HasEpg</visible>
<height>100%</height>
<width>100%</width>
<texturebg colordiffuse="$VAR[Blank_Color]">views/white_100.png</texturebg>
<midtexture colordiffuse="$VAR[PVR_Channel_Progress_Color]">views/white_100.png</midtexture>
<info>ListItem.Progress</info>
</control>
<control type="label">
<width>90</width>
<label>$INFO[ListItem.ChannelNumberLabel]</label>
<align>center</align>
<textcolor>$PARAM[color]</textcolor>
<font>Player_Status</font>
</control>
<control type="label">
<height>40</height>
<top>10</top>
<left>105</left>
<right>120</right>
<label>$INFO[ListItem.Label]</label>
<font>PVR_Channel</font>
<textcolor>$PARAM[color]</textcolor>
</control>
<control type="label">
<height>30</height>
<bottom>10</bottom>
<left>105</left>
<right>120</right>
<label>$INFO[ListItem.EpisodeName]</label>
<font>PVR_Channel2</font>
<textcolor>$PARAM[color]</textcolor>
</control>
<control type="image">
<right>30</right>
<top>15</top>
<height>60</height>
<width>90</width>
<texture colordiffuse="$PARAM[color]">$INFO[ListItem.Art(thumb)]</texture>
<aspectratio align="center">keep</aspectratio>
</control>
</definition>
</include>

<include name="PVR_Now_Playing_Info">
<param name="visible" default="VideoPlayer.HasEpg" />
<param name="label" default="$INFO[VideoPlayer.ChannelNumberLabel,$LOCALIZE[31634] ] " />
<param name="top" default="225" />
<param name="label_width" default="470" />
<param name="label_align" default="right" />
<param name="line_bottom" default="0" />
<param name="include_logo" default="true" />
<definition>
<control type="group">
<visible>$PARAM[visible]</visible>
<include content="Visible_Fade_Delayed_Animation" />
<top>$PARAM[top]</top>
<height>90</height>
<width>600</width>
<left>1200</left>
<control type="grouplist">
<left>30</left>
<top>15</top>
<bottom>15</bottom>
<orientation>horizontal</orientation>
<align>right</align>
<itemgap>10</itemgap>
<control type="label">
<height>57</height>
<width>$PARAM[label_width]</width>
<label>[UPPERCASE]$PARAM[label][/UPPERCASE]</label>
<align>$PARAM[label_align]</align>
<aligny>center</aligny>
<font>Unwatched_Indicator</font>
<textcolor>$VAR[Light_Color]</textcolor>
</control>
<control type="image">
<right>120</right>
<top>240</top>
<height>60</height>
<width>90</width>
<texture colordiffuse="$PARAM[color]">$INFO[Player.Art(thumb)]</texture>
<aspectratio align="center">keep</aspectratio>
<visible>$PARAM[include_logo]</visible>
</control>
</control>
<control type="image">
<height>1</height>
<bottom>$PARAM[line_bottom]</bottom>
<texture colordiffuse="$VAR[Unfocused_Color]">views/white_100.png</texture>
</control>
</control>
</definition>
</include>

</includes>
15 changes: 15 additions & 0 deletions 16x9/Content_Viewtype_Options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,21 @@
</item>
</include>

<include name="tvchannels_Menu_Options">
<item>
<description>Channel Groups</description>
<label>$INFO[Control.GetLabel(28)]</label>
<label2>$INFO[Control.GetLabel(28)]</label2>
<onclick>SendClick(28)</onclick>
</item>
<item>
<onclick>SetFocus($PARAM[target_id])</onclick>
<onclick>Filter</onclick>
<label>$LOCALIZE[587]</label>
<label2>$LOCALIZE[587]</label2>
</item>
</include>

<include name="tvsearch_Menu_Options">
<item>
<description>Channel Groups</description>
Expand Down
4 changes: 2 additions & 2 deletions 16x9/Expressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
<expression name="TransparentDialog_IsVisible">$EXP[NoPanelDialog_IsVisible] | $EXP[PanelDialog_IsVisible]</expression>

<!-- Background Transition Exceptions for global background service -->
<expression name="Background_FadeIn_Exceptions">$EXP[Window.Previous(addonbrowser)] | Window.Previous(settings) | $EXP[Window.Previous(all_settings_windows)] | $EXP[Window.Previous(home)] | $EXP[Window.Previous(music)] | $EXP[Window.Previous(musicplaylisteditor)] | Window.Previous(radioguide) | Window.Previous(radiosearch) | Window.Previous(tvguide) | Window.Previous(tvsearch) | Window.Previous(favouritesbrowser)</expression>
<expression name="Background_FadeIn_Exceptions">$EXP[Window.Previous(addonbrowser)] | Window.Previous(settings) | $EXP[Window.Previous(all_settings_windows)] | $EXP[Window.Previous(home)] | $EXP[Window.Previous(music)] | $EXP[Window.Previous(musicplaylisteditor)] | Window.Previous(radioguide) | Window.Previous(radiosearch) | Window.Previous(tvguide) | Window.Previous(tvsearch) | Window.Previous(radiochannels) | Window.Previous(tvchannels) | Window.Previous(favouritesbrowser)</expression>
<expression name="Background_FadeIn_Exceptions_home">[$EXP[Background_FadeIn_Exceptions] + Skin.HasSetting(Home_Background_Override_Enabled)] | [Window.Previous(fullscreenvideo) + !Player.HasVideo]</expression>
<expression name="Background_FadeIn_Exceptions_music">[$EXP[Background_FadeIn_Exceptions] + Skin.String(Background_Slideshow,Artists)] | Window.Previous(musicplaylisteditor) | Window.Previous(smartplaylisteditor)</expression>
<expression name="Background_FadeIn_Exceptions_musicplaylist">[$EXP[Background_FadeIn_Exceptions] + Skin.String(Background_Slideshow,Artists)] | Window.Previous(music)</expression>
<expression name="Background_FadeOut_Exceptions">Window.Next(addonbrowser) | Window.Next(settings) | $EXP[Window.Next(all_settings_windows)] | $EXP[Window.Next(home)] | $EXP[Window.Next(music)] | $EXP[Window.Next(musicplaylisteditor)] | Window.Next(radioguide) | Window.Next(radiosearch) | Window.Next(tvguide) | Window.Next(tvsearch) | Window.Next(favouritesbrowser)</expression>
<expression name="Background_FadeOut_Exceptions">Window.Next(addonbrowser) | Window.Next(settings) | $EXP[Window.Next(all_settings_windows)] | $EXP[Window.Next(home)] | $EXP[Window.Next(music)] | $EXP[Window.Next(musicplaylisteditor)] | Window.Next(radioguide) | Window.Next(radiosearch) | Window.Next(tvguide) | Window.Next(tvsearch) | Window.Next(radiochannels) | Window.Next(tvchannels) | Window.Next(favouritesbrowser)</expression>
<expression name="Background_FadeOut_Exceptions_home">$EXP[Background_FadeOut_Exceptions] + Skin.HasSetting(Home_Background_Override_Enabled)</expression>
<expression name="Background_FadeOut_Exceptions_music">[$EXP[Background_FadeOut_Exceptions] + Skin.String(Background_Slideshow,Artists)] | [Window.Is(music) + Container.Content(playlists) + [Window.Next(musicplaylisteditor) | Window.Next(smartplaylisteditor)]]</expression>
<expression name="Background_FadeOut_Exceptions_musicplaylist">[$EXP[Background_FadeOut_Exceptions] + Skin.String(Background_Slideshow,Artists)] | Window.Next(music)</expression>
Expand Down
40 changes: 40 additions & 0 deletions 16x9/Font.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,16 @@
<size>13</size>
</font>
<!-- PVR -->
<font>
<name>PVR_Channel</name>
<filename>Inter/Inter-Regular.ttf</filename>
<size>27</size>
</font>
<font>
<name>PVR_Channel2</name>
<filename>Inter/Inter-Light.ttf</filename>
<size>22</size>
</font>
<font>
<name>PVR_Date</name>
<filename>Inter/Inter-SemiBold.ttf</filename>
Expand Down Expand Up @@ -541,11 +551,26 @@
<size>13</size>
</font>
<!-- PVR -->
<font>
<name>PVR_Channel</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansKR-Regular.ttf</filename>
<size>27</size>
</font>
<font>
<name>PVR_Channel2</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansKR-Light.ttf</filename>
<size>22</size>
</font>
<font>
<name>PVR_Date</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansKR-SemiBold.ttf</filename>
<size>27</size>
</font>
<font>
<name>PVR_Time</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansKR-Regular.ttf</filename>
<size>22</size>
</font>
<!-- Required for system -->
<font>
<name>font13</name>
Expand Down Expand Up @@ -815,11 +840,26 @@
<size>13</size>
</font>
<!-- PVR -->
<font>
<name>PVR_Channel</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansSC-Regular.ttf</filename>
<size>27</size>
</font>
<font>
<name>PVR_Channel2</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansSC-Light.ttf</filename>
<size>22</size>
</font>
<font>
<name>PVR_Date</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansSC-SemiBold.ttf</filename>
<size>27</size>
</font>
<font>
<name>PVR_Time</name>
<filename>resource://resource.fonts.copacetic/Inter-NotoSansSC-Regular.ttf</filename>
<size>22</size>
</font>
<!-- Required for system -->
<font>
<name>font13</name>
Expand Down
3 changes: 2 additions & 1 deletion 16x9/Home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</control>
<!-- Video player -->
<include content="Embedded_VideoPlayer">
<param name="visible" value="[VideoPlayer.Content(livetv) + [Control.HasFocus(3000) | Control.HasFocus(4300) | $EXP[Music_Player_HasFocus]] + !$EXP[Infoscreen_IsVisible] + !$EXP[globalsearch_IsVisible]] | String.IsEqual(Window(home).Property(Trailer_Autoplay),true)" />
<param name="visible" value="[VideoPlayer.Content(livetv) + [Control.HasFocus(3000) | Control.HasFocus(4010) | Control.HasFocus(4201) | Control.HasFocus(4300) | $EXP[Music_Player_HasFocus]] + !$EXP[Infoscreen_IsVisible] + !$EXP[globalsearch_IsVisible]] | String.IsEqual(Window(home).Property(Trailer_Autoplay),true)" />
</include>
<include content="Trailer_Autoplay_Mask" condition="Skin.HasSetting(Trailer_Autoplay)">
<param name="timer" value="trailer_autoplay_home" />
Expand Down Expand Up @@ -70,6 +70,7 @@
<!-- <onclick>Skin.SetString(globalsearch)</onclick> -->
<!-- <onclick>ActivateWindow(1180)</onclick> -->
<onclick>RunScript(script.copacetic.helper,action=globalsearch_input)</onclick>
<onclick>SetFocus(3000)</onclick>
<include content="globalsearch_home_Navigation" />
</control>
<include content="Clock" condition="!Skin.HasSetting(Hide_Home_Clock)">
Expand Down
Loading

0 comments on commit 8304140

Please sign in to comment.