homescreen rework
This commit is contained in:
parent
83d4ff0f1a
commit
89477a30dd
|
@ -4,6 +4,7 @@
|
|||
<include>fadeInOut</include>
|
||||
<onload>RunScript(script.skinshortcuts,type=buildxml&mainmenuID=9001&group=mainmenu|videosubmenu|musicsubmenu|picturessubmenu)</onload>
|
||||
<onload condition="Skin.hassetting(stopVideoOnMenu) + !Player.HasAudio">PlayerControl(stop)</onload>
|
||||
<onload>AlarmClock(hidemenu,setfocus(9999),00:20,true)</onload>
|
||||
<controls>
|
||||
<include>globalBackground</include>
|
||||
<control type="group">
|
||||
|
@ -30,11 +31,14 @@
|
|||
<include>miniVideoPlayer</include>
|
||||
<!--main menu-->
|
||||
<control type="panel" id="9000">
|
||||
<animation type="conditional" condition="control.hasfocus(9999)" reversible="true">
|
||||
<effect type="fade" start="100" end="0" time="500" delay="0"/>
|
||||
</animation>
|
||||
<posx>col-5-begin</posx>
|
||||
<posy>row-12-begin</posy>
|
||||
<width>18-col</width>
|
||||
<height>12-row</height>
|
||||
<ondown>9001</ondown>
|
||||
<ondown>setfocus(9001,1)</ondown>
|
||||
<orientation>vertical</orientation>
|
||||
<itemlayout width="4-col" height="3-row">
|
||||
<control type="image">
|
||||
|
@ -94,8 +98,8 @@
|
|||
<posy>row-26-begin</posy>
|
||||
<control type="panel" id="9001">
|
||||
<posx>0</posx>
|
||||
<posy>0</posy>
|
||||
<width>3-col</width>
|
||||
<posy>18</posy>
|
||||
<width>4-col</width>
|
||||
<height>1-col</height>
|
||||
<orientation>horizontal</orientation>
|
||||
<onup>9000</onup>
|
||||
|
@ -142,12 +146,18 @@
|
|||
<onclick>ActivateWindow(Settings)</onclick>
|
||||
</item>
|
||||
<item>
|
||||
<label></label>
|
||||
<onclick>ActivateWindow(shutdownmenu)</onclick>
|
||||
<visible>control.hasfocus(9999)</visible>
|
||||
<label></label>
|
||||
<onclick>setfocus(9000,0)</onclick>
|
||||
</item>
|
||||
<item>
|
||||
<label></label>
|
||||
<onclick>ActivateWindow(systeminfo)</onclick>
|
||||
<visible>!control.hasfocus(9999)</visible>
|
||||
<label></label>
|
||||
<onclick>setfocus(9999)</onclick>
|
||||
</item>
|
||||
<item>
|
||||
<label></label>
|
||||
<onclick>ActivateWindow(shutdownmenu)</onclick>
|
||||
</item>
|
||||
</content>
|
||||
</control>
|
||||
|
@ -156,6 +166,12 @@
|
|||
<control type="group">
|
||||
<posx>col-1-begin</posx>
|
||||
<posy>row-8-begin</posy>
|
||||
<animation type="conditional" condition="control.hasfocus(9999) + !player.hasaudio" reversible="true">
|
||||
<effect type="slide" start="0,0" end="0,538" time="200" delay="0"/>
|
||||
</animation>
|
||||
<animation type="conditional" condition="control.hasfocus(9999) + player.hasaudio" reversible="true">
|
||||
<effect type="slide" start="0,0" end="0,484" time="200" delay="0"/>
|
||||
</animation>
|
||||
<control type="label">
|
||||
<posx>0</posx>
|
||||
<posy>-48</posy>
|
||||
|
@ -241,6 +257,17 @@
|
|||
<wrapmultiline>false</wrapmultiline>
|
||||
</control>
|
||||
</control>
|
||||
</control>
|
||||
<control type="button" id="9999">
|
||||
<posx>-500</posx>
|
||||
<posy>0</posy>
|
||||
<width>1-col</width>
|
||||
<height>2-row</height>
|
||||
<onleft>setfocus(9000,0)</onleft>
|
||||
<onright>setfocus(9000,0)</onright>
|
||||
<onup>setfocus(9000,0)</onup>
|
||||
<ondown>setfocus(9000,0)</ondown>
|
||||
<onclick>setfocus(9000,0)</onclick>
|
||||
</control>
|
||||
<!--debugging-->
|
||||
<include>DebugGrid</include>
|
||||
|
|
|
@ -45,8 +45,7 @@
|
|||
<posy>2-row</posy>
|
||||
<width>18-col</width>
|
||||
<height>12-col</height>
|
||||
<onup>9000</onup>
|
||||
<ondown>9000</ondown>
|
||||
<ondown>9001</ondown>
|
||||
<itemlayout width="6-col" height="3-row">
|
||||
<control type="image">
|
||||
<posx>0</posx>
|
||||
|
@ -211,14 +210,6 @@
|
|||
<onclick>ActivateWindow(programs,addons,return)</onclick>
|
||||
</item>
|
||||
<item>
|
||||
<label>$LOCALIZE[31226]</label>
|
||||
<label2></label2>
|
||||
<property name="label3">$LOCALIZE[31227]</property>
|
||||
<onclick>RunAddon(service.libreelec.settings)</onclick>
|
||||
<visible>System.HasAddon(service.libreelec.settings)</visible>
|
||||
</item>
|
||||
<item>
|
||||
<visible>!System.HasAddon(service.libreelec.settings)</visible>
|
||||
<description>System Info</description>
|
||||
<label>$LOCALIZE[138]</label>
|
||||
<label2></label2>
|
||||
|
@ -227,6 +218,18 @@
|
|||
</item>
|
||||
</content>
|
||||
</control>
|
||||
<!--libreelec builds only-->
|
||||
<control type="button" id="9001">
|
||||
<visible>System.HasAddon(service.libreelec.settings)</visible>
|
||||
<label>$LOCALIZE[31226]</label>
|
||||
<posx>6-col</posx>
|
||||
<posy>15-row</posy>
|
||||
<width>6-col</width>
|
||||
<align>center</align>
|
||||
<texturenofocus>colors/offblack.png</texturenofocus>
|
||||
<onclick>RunAddon(service.libreelec.settings)</onclick>
|
||||
<onup>9000</onup>
|
||||
</control>
|
||||
</control>
|
||||
<!--debugging-->
|
||||
<include>DebugGrid</include>
|
||||
|
|
|
@ -192,14 +192,6 @@
|
|||
<onclick>ReloadSkin()</onclick>
|
||||
<selected>Skin.HasSetting(lowPowerMode)</selected>
|
||||
</control>
|
||||
<control type="radiobutton" id="11">
|
||||
<visible>Container(8000).Hasfocus(1)</visible>
|
||||
<description>Disable weather label on homescreen</description>
|
||||
<width>14-col</width>
|
||||
<label>31217</label>
|
||||
<onclick>Skin.ToggleSetting(weatherdisplay)</onclick>
|
||||
<selected>Skin.HasSetting(weatherdisplay)</selected>
|
||||
</control>
|
||||
<control type="button" id="12">
|
||||
<visible>Container(8000).Hasfocus(2)</visible>
|
||||
<description>Edit home menu</description>
|
||||
|
|
|
@ -42,38 +42,154 @@
|
|||
</control>
|
||||
</control>
|
||||
<!--Track info-->
|
||||
<control type="grouplist">
|
||||
<!--Track info-->
|
||||
<control type="group">
|
||||
<posx>col-1-begin</posx>
|
||||
<posy>row-21-begin</posy>
|
||||
<orientation>vertical</orientation>
|
||||
<itemgap>10</itemgap>
|
||||
<control type="textbox">
|
||||
<width>10-col</width>
|
||||
<height>auto</height>
|
||||
<font>mediumStrong</font>
|
||||
<textcolor>textActive</textcolor>
|
||||
<wrapmultiline>true</wrapmultiline>
|
||||
<scroll>false</scroll>
|
||||
<shadowcolor>33000000</shadowcolor>
|
||||
<label>$INFO[MusicPlayer.Title]</label>
|
||||
<posy>row-23-begin</posy>
|
||||
<animation type="conditional" condition="!StringCompare(MusicPlayer.Time,00:00)">
|
||||
<effect type="slide" start="0,500" end="0,0" tween="sine" time="400"/>
|
||||
</animation>
|
||||
<!--coverart (or channel art if radio)-->
|
||||
<control type="image">
|
||||
<posx>0</posx>
|
||||
<posy>0</posy>
|
||||
<width>5-row</width>
|
||||
<height>182</height>
|
||||
<aspectratio>stretch</aspectratio>
|
||||
<texture border="0">DefaultAlbumCover.png</texture>
|
||||
<colordiffuse>textboxInactive</colordiffuse>
|
||||
</control>
|
||||
<control type="textbox">
|
||||
<width>10-col</width>
|
||||
<height>auto</height>
|
||||
<font>textbox</font>
|
||||
<textcolor>textActive</textcolor>
|
||||
<scroll>false</scroll>
|
||||
<shadowcolor>33000000</shadowcolor>
|
||||
<label>[B]$INFO[MusicPlayer.artist][/B][CR]$INFO[MusicPlayer.Album] $INFO[MusicPlayer.year,(,)]</label>
|
||||
<control type="image">
|
||||
<posx>0</posx>
|
||||
<posy>0</posy>
|
||||
<width>5-row</width>
|
||||
<height>182</height>
|
||||
<aspectratio>stretch</aspectratio>
|
||||
<texture border="6">$INFO[player.art(thumb)]</texture>
|
||||
<colordiffuse>ffffffff</colordiffuse>
|
||||
<bordertexture border="6">colors/white.png</bordertexture>
|
||||
<bordersize>6</bordersize>
|
||||
</control>
|
||||
<!--track info-->
|
||||
<control type="group">
|
||||
<posx>182</posx>
|
||||
<posy>0</posy>
|
||||
<control type="image">
|
||||
<posx>0</posx>
|
||||
<posy>0</posy>
|
||||
<width>9-col</width>
|
||||
<height>71</height>
|
||||
<texture>colors/white.png</texture>
|
||||
<colordiffuse>highlight</colordiffuse>
|
||||
</control>
|
||||
<control type="label">
|
||||
<width>10-col</width>
|
||||
<height>1-row</height>
|
||||
<font>buttonTitle</font>
|
||||
<posx>24</posx>
|
||||
<posy>0</posy>
|
||||
<width>542</width>
|
||||
<height>2-row</height>
|
||||
<font>regularStrong</font>
|
||||
<textcolor>textActive</textcolor>
|
||||
<scroll>true</scroll>
|
||||
<label>$INFO[MusicPlayer.Title]</label>
|
||||
</control>
|
||||
<control type="label">
|
||||
<posx>8-col</posx>
|
||||
<posy>0</posy>
|
||||
<width>612</width>
|
||||
<height>2-row</height>
|
||||
<font>regularStrong</font>
|
||||
<textcolor>textActive</textcolor>
|
||||
<scroll>true</scroll>
|
||||
<label>[B]$INFO[MusicPlayer.userrating,,*][/B]</label>
|
||||
</control>
|
||||
<control type="image">
|
||||
<posx>0</posx>
|
||||
<posy>2-row</posy>
|
||||
<width>9-col</width>
|
||||
<height>1-row</height>
|
||||
<texture>colors/white.png</texture>
|
||||
<colordiffuse>FFFFFFFF</colordiffuse>
|
||||
</control>
|
||||
<control type="label">
|
||||
<posx>24</posx>
|
||||
<posy>2-row</posy>
|
||||
<width>612</width>
|
||||
<height>1-row</height>
|
||||
<font>smallStrong</font>
|
||||
<textcolor>black</textcolor>
|
||||
<scroll>false</scroll>
|
||||
<shadowcolor>33000000</shadowcolor>
|
||||
<label>[B]$INFO[musicplayer.Playlistposition,$LOCALIZE[554] ,]$INFO[musicplayer.Playlistlength, / ] $INFO[MusicPlayer.TimeRemaining][/B]</label>
|
||||
<label>[UPPERCASE][B]$INFO[MusicPlayer.artist,, ][/B]$INFO[MusicPlayer.Album, | , ]$INFO[MusicPlayer.year,(,)][/UPPERCASE]</label>
|
||||
</control>
|
||||
<control type="image">
|
||||
<posx>0</posx>
|
||||
<posy>3-row</posy>
|
||||
<width>9-col</width>
|
||||
<height>2-row</height>
|
||||
<texture>colors/black.png</texture>
|
||||
<colordiffuse>99000000</colordiffuse>
|
||||
</control>
|
||||
<control type="progress">
|
||||
<description>Duration</description>
|
||||
<posx>0</posx>
|
||||
<posy>3-row</posy>
|
||||
<width>9-col</width>
|
||||
<height>2-row</height>
|
||||
<reveal>false</reveal>
|
||||
<texturebg>-</texturebg>
|
||||
<lefttexture>-</lefttexture>
|
||||
<midtexture border="36" colordiffuse="22FFFFFF">colors/white.png</midtexture>
|
||||
<righttexture>-</righttexture>
|
||||
<overlaytexture>-</overlaytexture>
|
||||
<info>Player.Progress</info>
|
||||
</control>
|
||||
<control type="label">
|
||||
<posx>24</posx>
|
||||
<posy>3-row</posy>
|
||||
<width>612</width>
|
||||
<height>2-row</height>
|
||||
<font>regularStrong</font>
|
||||
<align>left</align>
|
||||
<textcolor>textActive</textcolor>
|
||||
<shadowcolor>-</shadowcolor>
|
||||
<scroll>false</scroll>
|
||||
<label>$INFO[MusicPlayer.time,, / ]$INFO[MusicPlayer.duration]</label>
|
||||
</control>
|
||||
<control type="label">
|
||||
<posx>9-col-gutter</posx>
|
||||
<posy>3-row</posy>
|
||||
<width>612</width>
|
||||
<height>2-row</height>
|
||||
<font>regularStrong</font>
|
||||
<align>right</align>
|
||||
<textcolor>textActive</textcolor>
|
||||
<shadowcolor>-</shadowcolor>
|
||||
<scroll>false</scroll>
|
||||
<label>$INFO[musicplayer.Playlistposition,$LOCALIZE[554] ]$INFO[musicplayer.Playlistlength, / ]</label>
|
||||
</control>
|
||||
<control type="label">
|
||||
<visible>Playlist.IsRepeat | Playlist.IsRepeatOne</visible>
|
||||
<posx>5-col-gutter</posx>
|
||||
<posy>3-row</posy>
|
||||
<width>612</width>
|
||||
<height>2-row</height>
|
||||
<font>symbolLarge</font>
|
||||
<align>right</align>
|
||||
<textcolor>textActive</textcolor>
|
||||
<shadowcolor>-</shadowcolor>
|
||||
<label></label>
|
||||
</control>
|
||||
<control type="label">
|
||||
<visible>Playlist.IsRandom</visible>
|
||||
<posx>384</posx>
|
||||
<posy>3-row</posy>
|
||||
<width>612</width>
|
||||
<height>2-row</height>
|
||||
<font>symbolLarge</font>
|
||||
<align>right</align>
|
||||
<textcolor>textActive</textcolor>
|
||||
<shadowcolor>-</shadowcolor>
|
||||
<label></label>
|
||||
</control>
|
||||
</control>
|
||||
</control>
|
||||
</control>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<addon id="skin.pellucid" version="1.3.0" name="Pellucid" provider-name="theDeadman">
|
||||
<addon id="skin.pellucid" version="1.3.1" name="Pellucid" provider-name="theDeadman">
|
||||
<requires>
|
||||
<import addon="xbmc.gui" version="5.12.0"/>
|
||||
<import addon="script.skinshortcuts" version="1.0.13"/>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
**Changelog**
|
||||
|
||||
[V1.3.1]
|
||||
- [FIXED] back button not working correctly on plugin-based poster views
|
||||
- [NEW] Homescreen menu hide function
|
||||
|
||||
[V1.3.0]
|
||||
|
||||
***Users who are upgrading from V1.2x are strongly encouraged to reset their menu structures to take account of structural changes to the skin***
|
||||
|
|
|
@ -940,3 +940,7 @@ msgstr ""
|
|||
msgctxt "#31228"
|
||||
msgid "Edit Menu"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#31229"
|
||||
msgid "Play Music"
|
||||
msgstr ""
|
||||
|
|
|
@ -78,6 +78,14 @@
|
|||
<icon>DefaultAddon.png</icon>
|
||||
<thumb />
|
||||
<action>ActivateWindow(Music,Files)</action>
|
||||
</shortcut>
|
||||
<shortcut>
|
||||
<visible>Library.HasContent(Music)</visible>
|
||||
<label>31229</label>
|
||||
<label2>32034</label2>
|
||||
<icon>DefaultAddon.png</icon>
|
||||
<thumb />
|
||||
<action>PlayerControl(Partymode(music))</action>
|
||||
</shortcut>
|
||||
<shortcut>
|
||||
<label>12600</label>
|
||||
|
|
Loading…
Reference in New Issue