Skip to content

Commit

Permalink
globalsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Apr 29, 2024
1 parent 457e4b1 commit f686ebb
Show file tree
Hide file tree
Showing 21 changed files with 493 additions and 114 deletions.
42 changes: 32 additions & 10 deletions 16x9/Actions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
<param name="type" default="videos" />
<param name="method" default="from_here" />
<definition>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3201)">RunScript(script.copacetic.helper,action=play_items,id=3201,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3202)">RunScript(script.copacetic.helper,action=play_items,id=3202,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3203)">RunScript(script.copacetic.helper,action=play_items,id=3203,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3204)">RunScript(script.copacetic.helper,action=play_items,id=3204,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3205)">RunScript(script.copacetic.helper,action=play_items,id=3205,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3206)">RunScript(script.copacetic.helper,action=play_items,id=3206,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3207)">RunScript(script.copacetic.helper,action=play_items,id=3207,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3208)">RunScript(script.copacetic.helper,action=play_items,id=3208,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="System.AddonIsEnabled(script.copacetic.helper) + Control.HasFocus(3209)">RunScript(script.copacetic.helper,action=play_items,id=3209,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3201)">RunScript(script.copacetic.helper,action=play_items,id=3201,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3202)">RunScript(script.copacetic.helper,action=play_items,id=3202,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3203)">RunScript(script.copacetic.helper,action=play_items,id=3203,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3204)">RunScript(script.copacetic.helper,action=play_items,id=3204,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3205)">RunScript(script.copacetic.helper,action=play_items,id=3205,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3206)">RunScript(script.copacetic.helper,action=play_items,id=3206,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3207)">RunScript(script.copacetic.helper,action=play_items,id=3207,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3208)">RunScript(script.copacetic.helper,action=play_items,id=3208,type=$PARAM[type],method=$PARAM[method])</onclick>
<onclick condition="Control.HasFocus(3209)">RunScript(script.copacetic.helper,action=play_items,id=3209,type=$PARAM[type],method=$PARAM[method])</onclick>
</definition>
</include>

Expand Down Expand Up @@ -110,6 +110,11 @@
<onclick>ActivateWindow(music,musicdb://albums/$INFO[Container.ListItem.DBID]/-2/?albumid=$INFO[Container.ListItem.DBID],return)</onclick>
</include>

<include name="ClickAction_Play_All_Videos">
<onclick>Dialog.Close(all)</onclick>
<include content="Default_Play_Items" />
</include>

<include name="ClickAction_Play_All_Songs">
<include content="Default_Play_Items">
<param name="type" value="music" />
Expand All @@ -123,16 +128,33 @@
<onclick condition="Integer.IsGreater(ListItem.DBID,0) + !String.IsEqual(Container(3201).ListItem.DBID,window(movieinformation).property(SelectedItem))">PlayMedia($ESCINFO[ListItem.Filenameandpath])</onclick>
</include>

<include name="ClickAction_Play_File">
<onclick>Dialog.Close(all)</onclick>
<onclick>PlayMedia($ESCINFO[ListItem.Filenameandpath])</onclick>
</include>

<include name="ClickAction_Open_Season_Folder">
<onclick condition="Integer.IsGreater(ListItem.DBID,0)">Dialog.Close(all)</onclick>
<onclick condition="Integer.IsGreater(ListItem.DBID,0)">SetProperty(SentFromInfo,true,movieinformation)</onclick>
<onclick condition="Integer.IsGreater(ListItem.DBID,0)">ActivateWindow(Videos,$INFO[Container(3202).ListItem.FolderPath]/,return)</onclick>
</include>

<include name="ClickAction_Open_Artist">
<onclick>Dialog.Close(all)</onclick>
<onclick>SetProperty(SentFromInfo,true,musicinformation)</onclick>
<onclick condition="Control.HasFocus(3204)">ActivateWindow(music,musicdb://artists/$INFO[Container(3202).ListItem.DBID]/,return)</onclick>
</include>

<include name="ClickAction_Open_Album">
<onclick>Dialog.Close(all)</onclick>
<onclick>SetProperty(SentFromInfo,true,musicinformation)</onclick>
<onclick>ActivateWindow(music,musicdb://albums/$INFO[Container(3202).ListItem.DBID]/-2/,return)</onclick>
<onclick condition="Control.HasFocus(3202)">ActivateWindow(music,musicdb://albums/$INFO[Container(3202).ListItem.DBID]/-2/,return)</onclick>
<onclick condition="Control.HasFocus(3205)">ActivateWindow(music,musicdb://albums/$INFO[Container(3205).ListItem.DBID]/-2/,return)</onclick>
</include>

<include name="ClickAction_Open_TVShow">
<onclick>Dialog.Close(all)</onclick>
<onclick>ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</onclick>
</include>

<include name="ClickAction_Open_Set">
Expand Down
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(all,true)</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))">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(all,true)</onfocus>
<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">Dialog.Close</onfocus>
<onfocus condition="!String.IsEqual(Window.Property(Breadcrumb_Level),1)">SetFocus(6001)</onfocus>

</control>
Expand Down
32 changes: 27 additions & 5 deletions 16x9/Colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@
</variable>
<variable name="virtualkeyboard_Shift_Key_Color">
<value condition="!Control.HasFocus(302) + String.Contains(Control.GetLabel(302),*)">$VAR[Accent_Color]</value>
<value>$VAR[Light_Color]</value>
<value>$VAR[Breadcrumb_Label_Color]</value>
</variable>
<variable name="virtualkeyboard_Caps_Key_Color">
<value condition="!Control.HasFocus(303) + String.Contains(Control.GetLabel(303),*)">$VAR[Accent_Color]</value>
<value>$VAR[Light_Color]</value>
<value>$VAR[Breadcrumb_Label_Color]</value>
</variable>
<variable name="virtualkeyboard_Symbols_Key_Color">
<value condition="!Control.HasFocus(304) + String.Contains(Control.GetLabel(304),*)">$VAR[Accent_Color]</value>
<value>$VAR[Light_Color]</value>
<value>$VAR[Breadcrumb_Label_Color]</value>
</variable>
<variable name="sliderdialog_Bar_Color">
<value>$VAR[Alpha_15]$VAR[Light_Hex]</value>
Expand Down Expand Up @@ -720,7 +720,7 @@
<value>$VAR[Primary_Color]</value>
</variable>
<variable name="Home_Scroll_Widget_Background_Color">
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground]">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground] | Control.HasFocus(4201)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + Skin.String(Widget1_View,Showcase)">$VAR[Alpha_15]$VAR[Dark_Hex]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Posters) + !String.IsEmpty(Container(3201).ListItemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Square) + !String.IsEmpty(Container(3201).ListItemNoWrap(1).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
Expand Down Expand Up @@ -788,7 +788,7 @@
<value>$VAR[Alpha_15]$VAR[Light_Hex]</value>
</variable>
<variable name="Home_Scroll_Widget_Focused_Color">
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground]">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3000) | $EXP[Music_Player_HasFocus] | $EXP[Container_HasBackground] | Control.HasFocus(4201)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + Skin.String(Widget1_View,Showcase)">$VAR[Dark_Grey_Color]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Posters) + !String.IsEmpty(Container(3201).ListItemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3201) + Skin.String(Widget1_View,Strip) + Skin.String(Widget1_Display,Square) + !String.IsEmpty(Container(3201).ListItemNoWrap(1).Label)">$VAR[Light_Color]</value>
Expand Down Expand Up @@ -854,6 +854,28 @@
<value condition="Control.HasFocus(3209) + Skin.String(Widget9_View,Grid) + Skin.String(Widget9_Display,Fanart) + !String.IsEmpty(Container(3209).ListItemNoWrap(3).Label)">$VAR[Light_Color]</value>
<value>$VAR[Primary_Color]</value>
</variable>

<variable name="globalsearch_Scroll_Widget_Background_Color">
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3201).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3202) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3202).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3203) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3203).ListitemNoWrap(1).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3204) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3204).ListitemNoWrap(1).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3205) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3205).ListitemNoWrap(2).Label)">$VAR[Alpha_15]$VAR[Light_Hex]</value>
<value condition="Control.HasFocus(3206) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3206).ListitemNoWrap(2).Label)">$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="globalsearch_Scroll_Widget_Focused_Color">
<value condition="Control.HasFocus(3201) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3201).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3202) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3202).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3203) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3203).ListitemNoWrap(1).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3204) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3204).ListitemNoWrap(1).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3205) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3205).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Control.HasFocus(3206) + Skin.String(Theme,Light) + !String.IsEmpty(Container(3206).ListitemNoWrap(2).Label)">$VAR[Light_Color]</value>
<value condition="Skin.String(Theme,Light)">$VAR[Dark_Grey_Color]</value>
<value>$VAR[Light_Color]</value>
</variable>

<variable name="Seekbar_Background_Color">
<value condition="Skin.String(Theme,Light) + $EXP[visualisation_Background_IsEmpty] + Skin.String(visualisation_Layout,Large)">$VAR[Alpha_15]$VAR[Dark_Hex]</value>
<value>$VAR[Alpha_15]$VAR[Light_Hex]</value>
Expand Down
38 changes: 1 addition & 37 deletions 16x9/Components_Viewtypes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,42 +99,6 @@
</control>
</include>

<include name="Media_Cacher">
<control type="grouplist">
<include content="Hidden_Control" />
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[ListItem.Art(clearlogo)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[ListItem.Art(clearlogo-alt)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[ListItem.Art(clearlogo-billboard)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[Container(3100).ListItem.Art(clearlogo)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[Container(3100).ListItem.Art(clearlogo-alt)]</texture>
</control>
<control type="image">
<width>1</width>
<height>1</height>
<texture>$INFO[Container(3100).ListItem.Art(clearlogo-billboard)]</texture>
</control>
</control>
</include>

<include name="Custom_List">
<param name="type" default="fixedlist" />
<param name="id" />
Expand Down Expand Up @@ -757,7 +721,7 @@
<param name="title_font" default="Title_Breadcrumb_Label" />
<param name="maxtitlelabelwidth" default="900" />
<param name="haspath" default="false" />
<param name="textcolor" default="$VAR[Light_Color]" />
<param name="textcolor" default="$VAR[Breadcrumb_Label_Color]" />
<param name="info_label" default="$VAR[Info_Breadcrumb_Label]" />
<param name="info_label_visible" default="false" />
<param name="info_font" default="Info_Breadcrumb_Label" />
Expand Down
8 changes: 0 additions & 8 deletions 16x9/Content_Viewtype_Options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@
</include>

<include name="MusicVideo_Menu_Options">
<!-- Search -->
<item>
<onclick>SetFocus(50)</onclick>
<onclick>SendClick(8)</onclick>
<label>$LOCALIZE[137]</label>
<label2>$LOCALIZE[137]</label2>
<visible>Window.Is(videos) + Control.IsEnabled(8)</visible>
</item>
<item>
<onclick>SetFocus(50)</onclick>
<onclick>ActivateWindow(musicplaylist)</onclick>
Expand Down
39 changes: 39 additions & 0 deletions 16x9/Custom_1180_globalsearch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1180">
<!-- global search -->
<include content="Widget_Position_Reset_OnLoad" />
<defaultcontrol always="true">3000</defaultcontrol>
<controls>

<!-- Button bouncer until containers are populated -->
<control type="button" id="3000">
<visible allowhiddenfocus="true">false</visible>
<animation effect="slide" end="0,0" time="360" reversible="false">Focus</animation>
<include content="globalsearch_Focus_Setter">
<param name="bounce_id" value="3001" />
</include>
</control>
<control type="button" id="3001">
<visible allowhiddenfocus="true">false</visible>
<animation effect="slide" end="0,0" time="360" reversible="false">Focus</animation>
<include content="globalsearch_Focus_Setter">
<param name="bounce_id" value="3000" />
</include>
</control>

<control type="group">
<visible>!$EXP[Infoscreen_IsVisible]</visible>
<include content="Visible_Fade_Delayed_Animation" />
<include content="WindowOpenClose_Fade_Delayed_Long_Animation" />
<include content="User_Scroll_Delay" />
<include content="globalsearch_Widget_3201_Movies" />
<include content="globalsearch_Widget_3202_TVShows" />
<include content="globalsearch_Widget_3203_Episodes" />
<include content="globalsearch_Widget_3204_Artists" />
<include content="globalsearch_Widget_3205_Albums" />
<include content="globalsearch_Widget_3206_Songs" />
<include content="globalsearch_Scrollbar" />
</control>

</controls>
</window>
Loading

0 comments on commit f686ebb

Please sign in to comment.