album view

This commit is contained in:
theDeadMan 2017-09-20 00:10:41 +01:00
parent c6f320e410
commit 298984d33e
2 changed files with 144 additions and 86 deletions

View File

@ -2,21 +2,109 @@
<includes> <includes>
<!--Album browser--> <!--Album browser-->
<include name="musicalbum"> <include name="musicalbum">
<control type="group"> <control type="group" id="9125">
<!--most recent-->
<control type="panel" id="9998">
<visible>$EXP[isMusicAlbum] + !$EXP[isMusicArtistCatalogue]</visible> <visible>$EXP[isMusicAlbum] + !$EXP[isMusicArtistCatalogue]</visible>
<animation type="Conditional" condition="!controlgroup(9125).hasfocus">
<effect type="fade" start="100" end="0" time="100"/>
</animation>
<animation type="Conditional" condition="controlgroup(9125).hasfocus">
<effect type="fade" start="0" end="100" time="300" delay="300"/>
</animation>
<!--quick link selector-->
<control type="list" id="9123">
<posx>col-1-begin</posx>
<posy>row-4-begin</posy>
<width>24-col</width>
<height>2-row</height>
<onleft>9000</onleft>
<ondown>9998</ondown>
<onback>9000</onback>
<orientation>horizontal</orientation>
<itemlayout width="228" height="2-row">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>228</width>
<height>2-row</height>
<font>itemTitle</font>
<aligny>center</aligny>
<textcolor>textDisabled</textcolor>
<shadowcolor>-</shadowcolor>
<label>$INFO[ListItem.property(textTitle)]</label>
</control>
</itemlayout>
<focusedlayout width="228" height="2-row">
<control type="label">
<posx>0</posx>
<posy>0</posy>
<width>228</width>
<height>2-row</height>
<font>itemTitle</font>
<aligny>center</aligny>
<textcolor>textActive</textcolor>
<shadowcolor>-</shadowcolor>
<label>$INFO[ListItem.property(textTitle)]</label>
</control>
</focusedlayout>
<content>
<item id="1">
<visible>String.IsEqual(skin.string(recentitems),video) + Library.HasContent(movies)</visible>
<label>special://skin/extras/playlists/recentMovies.xsp</label>
<property name="textTitle">31176</property>
<onclick>noop</onclick>
</item>
<item id="2">
<visible>String.IsEqual(skin.string(recentitems),video) + Library.HasContent(tvshows)</visible>
<label>special://skin/extras/playlists/recentEpisodes.xsp</label>
<property name="textTitle">31178</property>
<onclick>noop</onclick>
</item>
<item id="6">
<visible>String.IsEqual(skin.string(recentitems),video) + Library.HasContent(movies)</visible>
<label>special://skin/extras/playlists/inprogressMovies.xsp</label>
<property name="textTitle">31132</property>
<onclick>noop</onclick>
</item>
<item id="7">
<visible>String.IsEqual(skin.string(recentitems),video) + Library.HasContent(tvshows)</visible>
<label>special://skin/extras/playlists/inprogressTVShows.xsp</label>
<property name="textTitle">31127</property>
<onclick>noop</onclick>
</item>
<item id="3">
<visible>String.IsEqual(skin.string(recentitems),music) + Library.HasContent(music)</visible>
<label>special://skin/extras/playlists/recentAlbums.xsp</label>
<property name="textTitle">31180</property>
<onclick>noop</onclick>
</item>
<item id="4">
<visible>String.IsEqual(skin.string(recentitems),music) + Library.HasContent(music)</visible>
<label>special://skin/extras/playlists/topAlbums.xsp</label>
<property name="textTitle">31187</property>
<onclick>noop</onclick>
</item>
<item id="5">
<visible>String.IsEqual(skin.string(recentitems),music) + Library.HasContent(music)</visible>
<label>special://skin/extras/playlists/randomAlbums.xsp</label>
<property name="textTitle">31181</property>
<onclick>noop</onclick>
</item>
</content>
</control>
<!--quick links-->
<control type="panel" id="9998">
<posx>col-1-begin</posx> <posx>col-1-begin</posx>
<posy>row-6-begin</posy> <posy>row-6-begin</posy>
<width>24-col</width> <width>24-col</width>
<height>5-col-gutter</height> <height>11-row</height>
<onup>9123</onup>
<ondown>50</ondown> <ondown>50</ondown>
<onleft>9000</onleft> <onleft>9000</onleft>
<onback>9000</onback> <onback>9000</onback>
<orientation>horizontal</orientation> <orientation>horizontal</orientation>
<onclick>activatewindow(music,musicdb://albums/$INFO[listitem.DBID],return)</onclick> <onclick>activatewindow(music,musicdb://albums/$INFO[listitem.DBID],return)</onclick>
<onclick>Control.SetFocus(50)</onclick> <onclick>Control.SetFocus(50)</onclick>
<itemlayout width="366" height="5-col-gutter"> <itemlayout width="348" height="5-col-gutter">
<control type="image"> <control type="image">
<posx>0</posx> <posx>0</posx>
<posy>0</posy> <posy>0</posy>
@ -31,26 +119,13 @@
<control type="label"> <control type="label">
<visible>!controlgroup(9000).hasfocus</visible> <visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx> <posx>12</posx>
<posy>2-row</posy> <posy>9-row</posy>
<width>240</width> <width>312</width>
<height>2-row</height> <height>2-row</height>
<align>center</align>
<aligny>center</aligny> <aligny>center</aligny>
<font>regularStrong</font> <font>thumbTitle</font>
<textcolor>textDisabled</textcolor> <textcolor>textActive</textcolor>
<label>$INFO[ListItem.title]</label> <label>[B]$INFO[ListItem.Title][/B][CR][COLOR textDisabled]$INFO[ListItem.artist][/COLOR] $INFO[listitem.year]</label>
</control>
<control type="label">
<visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx>
<posy>3-row</posy>
<width>240</width>
<height>2-row</height>
<align>center</align>
<aligny>center</aligny>
<font>buttonTitle</font>
<textcolor>textDisabled</textcolor>
<label>$INFO[ListItem.artist]</label>
</control> </control>
<control type="image"> <control type="image">
<posx>0</posx> <posx>0</posx>
@ -64,7 +139,7 @@
<colordiffuse>ffffffff</colordiffuse> <colordiffuse>ffffffff</colordiffuse>
</control> </control>
</itemlayout> </itemlayout>
<focusedlayout width="366" height="5-col-gutter"> <focusedlayout width="348" height="5-col-gutter">
<control type="group"> <control type="group">
<include>focusThumb</include> <include>focusThumb</include>
<control type="image"> <control type="image">
@ -81,26 +156,13 @@
<control type="label"> <control type="label">
<visible>!controlgroup(9000).hasfocus</visible> <visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx> <posx>12</posx>
<posy>2-row</posy> <posy>9-row</posy>
<width>240</width> <width>312</width>
<height>2-row</height> <height>2-row</height>
<align>center</align>
<aligny>center</aligny> <aligny>center</aligny>
<font>regularStrong</font> <font>thumbTitle</font>
<textcolor>textActive</textcolor> <textcolor>textActive</textcolor>
<label>$INFO[ListItem.title]</label> <label>[B]$INFO[ListItem.Title][/B][CR][COLOR textDisabled]$INFO[ListItem.artist][/COLOR] $INFO[listitem.year]</label>
</control>
<control type="label">
<visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx>
<posy>3-row</posy>
<width>240</width>
<height>2-row</height>
<align>center</align>
<aligny>center</aligny>
<font>buttonTitle</font>
<textcolor>textActive</textcolor>
<label>$INFO[ListItem.artist]</label>
</control> </control>
<control type="image"> <control type="image">
<posx>0</posx> <posx>0</posx>
@ -115,15 +177,31 @@
</control> </control>
</control> </control>
</focusedlayout> </focusedlayout>
<content>special://skin/extras/playlists/recentAlbums.xsp</content> <content>$INFO[control.getlabel(9123)]</content>
</control>
</control> </control>
<!--all albums--> <!--all albums-->
<control type="group" id="9124">
<animation type="Conditional" condition="controlgroup(9124).hasfocus | controlgroup(8000).hasfocus | controlgroup(9000).hasfocus">
<effect type="slide" start="0,0" end="0,-504" tween="sine" time="400"/>
</animation>
<control type="label">
<visible>!controlgroup(9000).hasfocus + $EXP[isMusicAlbum] + !$EXP[isMusicArtistCatalogue]</visible>
<posx>col-1-begin</posx>
<posy>row-18-begin</posy>
<width>12-col</width>
<height>2-row</height>
<aligny>center</aligny>
<font>itemTitle</font>
<textcolor>textActive</textcolor>
<label>All Albums</label>
</control>
<control type="panel" id="50"> <control type="panel" id="50">
<visible>$EXP[isMusicAlbum]</visible> <visible>$EXP[isMusicAlbum]</visible>
<posx>col-1-begin</posx> <posx>col-1-begin</posx>
<posy>row-18-begin</posy> <posy>row-20-begin</posy>
<width>1800</width> <width>1800</width>
<height>23-row</height> <height>24-row</height>
<onleft>9000</onleft> <onleft>9000</onleft>
<onright>60</onright> <onright>60</onright>
<ondown>50</ondown> <ondown>50</ondown>
@ -157,24 +235,13 @@
<control type="label"> <control type="label">
<visible>!controlgroup(9000).hasfocus</visible> <visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx> <posx>12</posx>
<posy>262</posy> <posy>7-row</posy>
<width>240</width> <width>240</width>
<height>1-row</height> <height>2-row</height>
<aligny>center</aligny> <aligny>center</aligny>
<font>thumbTitle</font> <font>thumbTitle</font>
<textcolor>textActive</textcolor> <textcolor>textActive</textcolor>
<label>[B]$INFO[ListItem.Title][/B]</label> <label>[B]$INFO[ListItem.Title][/B][CR][COLOR textDisabled]$INFO[ListItem.artist][/COLOR] $INFO[listitem.year]</label>
</control>
<control type="label">
<visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx>
<posy>286</posy>
<width>240</width>
<height>1-row</height>
<aligny>center</aligny>
<font>thumbTitle</font>
<textcolor>textDisabled</textcolor>
<label>$INFO[ListItem.artist]</label>
</control> </control>
<control type="image"> <control type="image">
<posx>0</posx> <posx>0</posx>
@ -224,24 +291,15 @@
<bordersize>6</bordersize> <bordersize>6</bordersize>
</control> </control>
<control type="label"> <control type="label">
<visible>!controlgroup(9000).hasfocus</visible>
<posx>12</posx> <posx>12</posx>
<posy>262</posy> <posy>7-row</posy>
<width>240</width> <width>240</width>
<height>1-row</height> <height>2-row</height>
<aligny>center</aligny> <aligny>center</aligny>
<font>thumbTitle</font> <font>thumbTitle</font>
<textcolor>textActive</textcolor> <textcolor>textActive</textcolor>
<label>[B]$INFO[ListItem.Title][/B]</label> <label>[B]$INFO[ListItem.Title][/B][CR][COLOR textDisabled]$INFO[ListItem.artist][/COLOR] $INFO[listitem.year]</label>
</control>
<control type="label">
<posx>12</posx>
<posy>286</posy>
<width>240</width>
<height>1-row</height>
<aligny>center</aligny>
<font>thumbTitle</font>
<textcolor>textActive</textcolor>
<label>$INFO[ListItem.artist]</label>
</control> </control>
</control> </control>
</focusedlayout> </focusedlayout>

View File

@ -42,8 +42,8 @@
<visible>$EXP[isMusicArtistCatalogue]</visible> <visible>$EXP[isMusicArtistCatalogue]</visible>
<posx>col-1-begin</posx> <posx>col-1-begin</posx>
<posy>row-11-begin</posy> <posy>row-11-begin</posy>
<width>21-col</width> <width>24-col</width>
<height>18-row</height> <height>19-row</height>
<onleft>9000</onleft> <onleft>9000</onleft>
<ondown>50</ondown> <ondown>50</ondown>
<onup>50</onup> <onup>50</onup>