Skip to content

Commit

Permalink
pvr wip
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Aug 22, 2024
1 parent 73ffcb3 commit 72052b4
Show file tree
Hide file tree
Showing 17 changed files with 554 additions and 336 deletions.
14 changes: 12 additions & 2 deletions 16x9/Colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<variable name="Alpha_15">
<value>26</value>
</variable>
<variable name="Alpha_8">
<value>14</value>
</variable>
<variable name="Alpha_0">
<value>01</value>
</variable>
Expand Down Expand Up @@ -619,15 +622,19 @@
<value condition="Skin.String(Accent_Color_Contrast,dark) + !Skin.String(User_Defined_Accent_Color,copacetic_accent_color)">$VAR[Dark_Color]</value>
<value>$VAR[Light_Color]</value>
</variable>

<variable name="Scroll_Background_Color">
<value condition="$EXP[Background_IsVisible]">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="$EXP[Background_IsVisible] | $EXP[PVR_IsVisible]">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Skin.String(Theme,Light)">$VAR[Alpha_15]$VAR[Dark_Hex]</value>
<value>$VAR[Alpha_15]$VAR[Light_Hex]</value>
</variable>
<variable name="Scroll_Focused_Color">
<value condition="$EXP[Background_IsVisible]">$VAR[Light_Color]</value>
<value condition="$EXP[Background_IsVisible] | $EXP[PVR_IsVisible]">$VAR[Light_Color]</value>
<value>$VAR[Primary_Color]</value>
</variable>
<variable name="PVR_Scroll_Background_Color">
<value>$VAR[Alpha_8]$VAR[Light_Hex]</value>
</variable>

<variable name="Scroll_Widget_Background_Color">
<value condition="ControlGroup(3000).HasFocus + [Window.Is(movieinformation) | String.IsEqual(ListItem.DBType,artist)] + !Control.HasFocus(10)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
Expand Down Expand Up @@ -978,4 +985,7 @@
<variable name="tvchannels_Progress_Color">
<value>$VAR[Alpha_50]$VAR[Dark_Hex]</value>
</variable>
<variable name="PVR_DetailedListView_Focus_Color">
<value>ff14191A</value><!-- 2% white on top of Dark grey color, but with no transparency -->
</variable>
</includes>
2 changes: 1 addition & 1 deletion 16x9/Components_Dialogs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<right>$PARAM[right]</right>
<top>$PARAM[top]</top>
<bottom>$PARAM[bottom]</bottom>
<texture colordiffuse="$PARAM[colordiffuse]">views/white_100.png</texture>
<texture border="10" colordiffuse="$PARAM[colordiffuse]">$VAR[Panel_Texture]</texture>
</control>
</definition>
</include>
Expand Down
100 changes: 21 additions & 79 deletions 16x9/Components_PVR.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<control type="label">
<visible>$PARAM[visible]</visible>
<height>$PARAM[height]</height>
<font>Grid_Info_Small</font>
<font>PVR_Info</font>
<label>$PARAM[label]</label>
<textcolor>$VAR[Light_Color]</textcolor>
<nested />
Expand Down Expand Up @@ -64,24 +64,31 @@
<height>$PARAM[plot_height_max]</height>
<visible>!String.IsEmpty(ListItem.Plot)</visible>
<label>$INFO[ListItem.Plot]</label>
<aligny>top</aligny>
<font>PVR_Description</font>
<align>$PARAM[textalign]</align>
<aligny>center</aligny>
<aligny>top</aligny>
</control>
</control>
</definition>
</include>

<include name="PVR_Progress">
<control type="progress">
<visible>ListItem.HasEpg + Integer.IsGreater(ListItem.Progress,0)</visible>
<height>100%</height>
<width>100%</width>
<texturebg colordiffuse="$VAR[Blank_Color]">views/white_100.png</texturebg>
<midtexture colordiffuse="$VAR[tvchannels_Progress_Color]">views/white_100.png</midtexture>
<info>ListItem.Progress</info>
</control>
<param name="width" default="100%" />
<param name="height" default="100%" />
<param name="background_color" default="$VAR[Blank_Color]" />
<param name="focus_color" default="$VAR[tvchannels_Progress_Color]" />
<param name="texture" default="views/white_100.png" />
<definition>
<control type="progress">
<visible>ListItem.HasEpg + Integer.IsGreater(ListItem.Progress,0)</visible>
<width>$PARAM[width]</width>
<height>$PARAM[height]</height>
<texturebg colordiffuse="$PARAM[background_color]">$PARAM[texture]</texturebg>
<midtexture colordiffuse="$PARAM[focus_color]">$PARAM[texture]</midtexture>
<info>ListItem.Progress</info>
<nested />
</control>
</definition>
</include>

<include name="PVR_Recordings_List">
Expand Down Expand Up @@ -176,77 +183,12 @@
</definition>
</include>

<include name="PVR_ChannelList_Item">
<param name="visible" default="true" />
<param name="progress" default="true" />
<param name="channel_number" default="true" />
<param name="icon" default="true" />
<param name="logo" default="true" />
<param name="title_label" default="$VAR[PVR_List_Title_Label]" />
<param name="title_scroll" default="false" />
<param name="info_label" default="$VAR[PVR_List_Info_Label]" />
<param name="color" default="$VAR[Unfocused_Color]" />
<definition>
<control type="group">
<visible>$PARAM[visible]</visible>
<include content="PVR_Progress" condition="$PARAM[progress]" />
<include content="PVR_Channel_Number_Label" condition="$PARAM[channel_number]">
<param name="color" value="$PARAM[color]" />
</include>
<include content="Timer_unfocused" condition="$PARAM[timer]">
<param name="visible" value="!String.Contains(ListItem.Comment,$LOCALIZE[1223])" />
<param name="color" value="$PARAM[color]" />
<width>90</width>
</include>
<control type="group">
<animation effect="slide" end="-105" time="0" condition="Window.Is(tvrecordings) | Window.Is(radiorecordings) | Window.Is(tvtimers) | Window.Is(radiotimers) | Window.is(tvtimerrules) | Window.Is(radiotimerrules)">Conditional</animation>
<control type="group">
<top>10</top>
<bottom>10</bottom>
<left>90</left>
<right>240</right>
<control type="label">
<height>40</height>
<label>$PARAM[title_label]</label>
<font>PVR_Channel</font>
<textcolor>$PARAM[color]</textcolor>
<scroll>$PARAM[title_scroll]</scroll>
<selectedcolor>$PARAM[color]</selectedcolor>
</control>
<control type="label">
<height>30</height>
<bottom>0</bottom>
<label>[UPPERCASE]$PARAM[info_label][/UPPERCASE]</label>
<font>PVR_Info</font>
<textcolor>$PARAM[color]</textcolor>
<selectedcolor>$PARAM[color]</selectedcolor>
</control>
</control>
</control>
<include content="PVR_icon">
<param name="visible" value="$PARAM[icon]" />
<param name="texture" value="$VAR[tvchannels_Icon_Texture]" />
<param name="color" value="$VAR[tvchannels_Icon_Color]" />
<right>15</right>
<centertop>50%</centertop>
</include>
<include content="PVR_logo" condition="$PARAM[logo]">
<param name="color" value="ffffffff" />
<param name="right" value="60" />
<param name="top" value="15" />
<param name="width" value="120" />
<param name="aligny" value="center" />
</include>
<nested />
</control>
</definition>
</include>

<include name="PVR_Now_Playing_Label">
<param name="visible" default="true" />
<param name="label" default="[UPPERCASE]$INFO[VideoPlayer.ChannelNumberLabel,$LOCALIZE[31634] ][/UPPERCASE]" />
<param name="top" default="180" />
<param name="height" default="90" />
<param name="line_visible" default="true" />
<param name="label_width" default="570" />
<param name="label_align" default="center" />
<param name="line_bottom" default="0" />
Expand All @@ -271,8 +213,7 @@
<width>$PARAM[label_width]</width>
<label>$PARAM[label]</label>
<align>$PARAM[label_align]</align>
<aligny>center</aligny>
<font>Grid_Info_Small</font>
<font>PVR_Info</font>
<textcolor>$VAR[Light_Color]</textcolor>
</control>
<include content="PVR_logo" condition="$PARAM[logo]">
Expand All @@ -283,6 +224,7 @@
</include>
</control>
<control type="image">
<visible>$PARAM[line_visible]</visible>
<height>1</height>
<bottom>$PARAM[line_bottom]</bottom>
<texture colordiffuse="$VAR[Unfocused_Color]">views/white_100.png</texture>
Expand Down
18 changes: 18 additions & 0 deletions 16x9/Content_Viewtype_Options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,24 @@
</include>

<include name="tvcommon_Menu_Options">
<item id="1">
<description>Change view</description>
<onclick>SetFocus(50)</onclick>
<label>$VAR[Copacetic_Chevron_Left] $VAR[tvchannels_Viewtype_Label] $VAR[Copacetic_Chevron_Right]</label>
<label2>$LOCALIZE[31005] $VAR[Copacetic_Divider_Bold] $VAR[tvchannels_Viewtype_Label]</label2>
<property name="ActionLeft">Container.PreviousViewMode</property>
<property name="ActionRight">Container.NextViewMode</property>
<visible>Integer.IsGreater(Container.ViewCount,1) + Control.HasFocus(3700)</visible>
</item>
<item id="1">
<description>Change view</description>
<onclick>SetFocus(50)</onclick>
<label>$LOCALIZE[31005] $VAR[Copacetic_Divider_Bold] $VAR[tvchannels_Viewtype_Label]</label>
<label2>$LOCALIZE[31005] $VAR[Copacetic_Divider_Bold] $VAR[tvchannels_Viewtype_Label]</label2>
<property name="ActionLeft">Container.PreviousViewMode</property>
<property name="ActionRight">Container.NextViewMode</property>
<visible>Integer.IsGreater(Container.ViewCount,1) + !Control.HasFocus(3700)</visible>
</item>
<item>
<description>Channel Groups</description>
<label>$INFO[Control.GetLabel(28)]</label>
Expand Down
1 change: 1 addition & 0 deletions 16x9/Includes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<include file="Templates_script-upnext.xml" />
<include file="Templates_MyPVR.xml" />
<include file="Templates_MyWindows.xml" />
<include file="Templates_Viewtypes_PVR.xml" />
<include file="Templates_Viewtypes.xml" />
<include file="Templates_Widgets.xml" />
<include file="Viewtype_50_List.xml" />
Expand Down
2 changes: 1 addition & 1 deletion 16x9/MyPVRChannels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<defaultcontrol always="true">50</defaultcontrol>
<menucontrol>3700</menucontrol>
<backgroundcolor>$VAR[Dark_Color]</backgroundcolor>
<views>50</views>
<views>50,51</views>
<controls>
<include content="Common_Controls" />
<include content="tvchannels_Controls" />
Expand Down
Loading

0 comments on commit 72052b4

Please sign in to comment.