touchscreen support first pass

This commit is contained in:
theDeadMan 2020-04-05 18:31:04 +01:00
parent 06663164b5
commit 21226e3f50
6 changed files with 188 additions and 25 deletions

View File

@ -58,6 +58,10 @@
<!--weather--> <!--weather-->
<expression name="hasWeather">!String.IsEmpty(Window(Weather).Property(WeatherProvider)) + !String.String.IsEmpty(weather.temperature) + !String.String.IsEmpty(weather.conditions)</expression> <expression name="hasWeather">!String.IsEmpty(Window(Weather).Property(WeatherProvider)) + !String.String.IsEmpty(weather.temperature) + !String.String.IsEmpty(weather.conditions)</expression>
<!--touchscreen back function-->
<expression name="openSideBlade">[window.isactive(pictures) + String.IsEqual(container.folderpath,] | String.IsEqual(container.folderpath,addons://sources/game) | [window.isactive(games) + String.IsEqual(container.folderpath,] | String.IsEqual(container.folderpath,sources://video/) | String.IsEqual(container.folderpath,special://videoplaylists/) | String.IsEqual(container.folderpath,addons://sources/video) | String.IsEqual(container.folderpath,pvr://recordings/tv/active/) | String.IsEqual(container.folderpath,sources://music/) | String.IsEqual(container.folderpath,addons://sources/audio) | String.IsEqual(container.folderpath,special://musicplaylists/) | String.IsEqual(container.folderpath,musicdb://genres/) | String.IsEqual(container.folderpath,musicdb://artists/) | String.IsEqual(container.folderpath,musicdb://albums/) | container.content(movies) | container.content(tvshows) | window.isactive(TVChannels) | window.isactive(RadioChannels) | window.isactive(TVGuide) | window.isactve(TVRecordings)</expression>
<!--item fanart--> <!--item fanart-->
<include name="itemFanart"> <include name="itemFanart">
<control type="wraplist" id="99999"> <control type="wraplist" id="99999">
@ -302,32 +306,152 @@
<include name="touchscreenControls"> <include name="touchscreenControls">
<control type="group"> <control type="group">
<visible>System.GetBool(input.enablemouse)</visible> <visible>System.GetBool(input.enablemouse)</visible>
<!--universal back button-->
<control type="button" id="8542">
<description>back button</description>
<posx>0</posx> <posx>0</posx>
<posy>0</posy> <posy>0</posy>
<!--standard back-->
<control type="button" id="8542">
<visible>!$EXP[openSideBlade]</visible>
<description>back button</description>
<posx>-5</posx>
<posy>0</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus> <texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<focusedcolor>textActive</focusedcolor> <height>807</height>
<height>fullscreenHeight</height> <width>50</width>
<width>45</width> <font>symbol</font>
<onclick condition="String.Contains(container.folderpath,spotify)">back</onclick> <textoffsetx>14</textoffsetx>
<onclick condition="controlgroup(9000).hasfocus">activateWindow(home)</onclick> <textcolor>22FFFFFF</textcolor>
<onclick condition="!String.Contains(container.folderpath,spotify) + [container.content(addons) | container.content(tvshows) | container.content(movies) | window.isactive(TVChannels) | window.isactive(TVGuide) | window.isactve(TVRecordings) | container.content(artists) | [container.content(albums) + !String.Contains(container.folderpath,albumartistsonly)]]">setfocus(9000)</onclick> <focusedcolor>22FFFFFF</focusedcolor>
<onclick condition="!String.Contains(container.folderpath,spotify) + [String.Contains(Container.folderpath,plugin) | container.content(songs) | !container.content(tvshows) + !container.content(movies) + !window.isactive(TVChannels) + !window.isactive(TVGuide) + !window.isactve(TVRecordings) + !container.content(artists) + [container.content(albums) + String.Contains(container.folderpath,albumartistsonly)]]">Back</onclick> <label></label>
<onclick >back</onclick>
</control> </control>
<!--universal player control button-->
<control type="button" id="8539"> <!--sideblade open-->
<description>player controls</description> <control type="button" id="8514">
<visible>$EXP[openSideBlade]</visible>
<description>back button</description>
<posx>-5</posx>
<posy>0</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<height>807</height>
<width>50</width>
<font>symbol</font>
<textoffsetx>14</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick condition="!controlgroup(9000).hasfocus">setfocus(9000)</onclick>
<onclick condition="controlgroup(9000).hasfocus">activateWindow(home)</onclick>
</control>
<!--home-->
<control type="button" id="8520">
<description>home</description>
<enabled>!window.isactive(home)</enabled>
<posx>-5</posx>
<posy>810</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<height>267</height>
<width>50</width>
<font>symbol</font>
<textoffsetx>14</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>activateWindow(home)</onclick>
</control>
<!--universal player control buttons-->
<control type="group">
<posx>45r</posx> <posx>45r</posx>
<posy>0</posy> <posy>0</posy>
<control type="button" id="8519">
<description>Pause</description>
<visible>player.playing</visible>
<posx>0</posx>
<posy>0</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus> <texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<focusedcolor>textActive</focusedcolor> <focusedcolor>22FFFFFF</focusedcolor>
<height>fullscreenHeight</height> <height>267</height>
<width>45</width> <width>50</width>
<onclick condition="player.playing + Player.PauseEnabled">action(pause)</onclick> <font>symbol</font>
<onclick condition="player.playing + !Player.PauseEnabled">action(stop)</onclick> <textoffsetx>14</textoffsetx>
<onclick condition="player.paused">action(play)</onclick> <textcolor>22FFFFFF</textcolor>
<label></label>
<onclick>action(pause)</onclick>
</control>
<control type="button" id="8518">
<description>play</description>
<visible>!player.playing</visible>
<posx>0</posx>
<posy>0</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<height>267</height>
<width>50</width>
<font>symbol</font>
<textoffsetx>14</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>action(play)</onclick>
</control>
<control type="button" id="8517">
<description>stop</description>
<posx>0</posx>
<posy>270</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<height>267</height>
<width>50</width>
<font>symbol</font>
<textoffsetx>14</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>action(stop)</onclick>
</control>
<control type="button" id="8516">
<description>volume up</description>
<posx>0</posx>
<posy>540</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<height>267</height>
<width>50</width>
<font>symbol</font>
<textoffsetx>14</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>action(volumeup)</onclick>
</control>
<control type="button" id="8515">
<description>volume down</description>
<posx>0</posx>
<posy>810</posy>
<texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
<texturefocus colordiffuse="overlay">colors/black.png</texturefocus>
<height>270</height>
<width>50</width>
<font>symbol</font>
<textoffsetx>14</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>action(volumedown)</onclick>
</control>
</control> </control>
<!--page up--> <!--page up-->
<control type="button" id="8538"> <control type="button" id="8538">

View File

@ -284,6 +284,8 @@
<description>Clear button</description> <description>Clear button</description>
</control> </control>
</control> </control>
<!--touchscreen controls-->
<include>touchscreenControls</include>
<!--debugging--> <!--debugging-->
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">

View File

@ -173,7 +173,7 @@
<include>DebugGrid</include> <include>DebugGrid</include>
<control type="label"> <control type="label">
<include>DialogID</include> <include>DialogID</include>
<label>MyPVRRecordings.xml</label> <label>MyPVRRecordings.xml path: $INFO[container.folderpath] folder: $INFO[container.foldername] content: $INFO[container.content]</label>
</control> </control>
</controls> </controls>
</window> </window>

View File

@ -58,7 +58,7 @@
<animation type="conditional" condition="true"> <animation type="conditional" condition="true">
<effect type="fade" end="90" time="0"/> <effect type="fade" end="90" time="0"/>
</animation> </animation>
<!--track info (no vis)--> <!--track info-->
<control type="group"> <control type="group">
<posx>0</posx> <posx>0</posx>
<posy>0</posy> <posy>0</posy>
@ -119,6 +119,42 @@
<label>$INFO[MusicPlayer.timeremaining]</label> <label>$INFO[MusicPlayer.timeremaining]</label>
<shadowcolor>99000000</shadowcolor> <shadowcolor>99000000</shadowcolor>
</control> </control>
<!--additional touchscreen controls-->
<control type="group">
<visible>System.GetBool(input.enablemouse)</visible>
<control type="button" id="8514">
<description>previous</description>
<posx>7-col-gutter</posx>
<posy>200</posy>
<texturenofocus colordiffuse="99ffffff" diffuse="masks/circle.png">colors/black.png</texturenofocus>
<texturefocus colordiffuse="88ffffff" diffuse="masks/circle.png">colors/black.png</texturefocus>
<focusedcolor>textActive</focusedcolor>
<height>1-col</height>
<width>1-col</width>
<font>symbol</font>
<textoffsetx>24</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>playercontrol(previous)</onclick>
</control>
<control type="button" id="8513">
<description>next</description>
<posx>1178</posx>
<posy>200</posy>
<texturenofocus colordiffuse="99ffffff" diffuse="masks/circle.png">colors/black.png</texturenofocus>
<texturefocus colordiffuse="88ffffff" diffuse="masks/circle.png">colors/black.png</texturefocus>
<focusedcolor>textActive</focusedcolor>
<height>1-col</height>
<width>1-col</width>
<font>symbol</font>
<textoffsetx>24</textoffsetx>
<textcolor>22FFFFFF</textcolor>
<focusedcolor>22FFFFFF</focusedcolor>
<label></label>
<onclick>playercontrol(next)</onclick>
</control>
</control>
</control> </control>
</control> </control>
</control> </control>

View File

@ -9,6 +9,7 @@ Built for the living room, Pellucid is a clean and carefully designed Kodi exper
- Skin Shortcuts addon support is available from the Krypton release onwards. - Skin Shortcuts addon support is available from the Krypton release onwards.
- Full PVR / Live TV support - Full PVR / Live TV support
- Support for touchscreens
Discussion thread: http://forum.kodi.tv/forumdisplay.php?fid=267 Discussion thread: http://forum.kodi.tv/forumdisplay.php?fid=267

View File

@ -11,7 +11,7 @@
</extension> </extension>
<extension point="xbmc.addon.metadata"> <extension point="xbmc.addon.metadata">
<summary lang="en_GB">A skin for Kodi by theDeadMan</summary> <summary lang="en_GB">A skin for Kodi by theDeadMan</summary>
<description lang="en_GB">Built for the living room, Pellucid is a clean and simple kodi experience designed for maximum usability and minimum fuss. Skin Shortcuts addon support is available for full menu customisation. With thanks to Marco "Dadebue" Debus for the homescreen photography.</description> <description lang="en_GB">Built for the living room, Pellucid is a clean and carefully designed kodi experience designed for maximum usability and minimum fuss. Skin Shortcuts addon support is available for full menu customisation. With thanks to Marco "Dadebue" Debus for the homescreen photography.</description>
<platform>all</platform> <platform>all</platform>
<license>Creative Commons Attribution-Noncommercial-Share Alike 3.0</license> <license>Creative Commons Attribution-Noncommercial-Share Alike 3.0</license>
<forum>https://forum.kodi.tv/forumdisplay.php?fid=267</forum> <forum>https://forum.kodi.tv/forumdisplay.php?fid=267</forum>