From 8a07feb3c862d958b024a39235e285fe9a3b96f2 Mon Sep 17 00:00:00 2001 From: jjd-uk Date: Tue, 4 Dec 2018 15:20:41 +0000 Subject: [PATCH] Refactor media info / now playing views (#44) Thanks. --- 720p/Includes.xml | 17 ++ 720p/ViewsMusicLibrary.xml | 345 ++++--------------------------------- 2 files changed, 55 insertions(+), 307 deletions(-) diff --git a/720p/Includes.xml b/720p/Includes.xml index 3a0ff58..f0820e3 100644 --- a/720p/Includes.xml +++ b/720p/Includes.xml @@ -445,6 +445,23 @@ $INFO[ListItem.Property(Album_Description)] $INFO[ListItem.Comment] + + $LOCALIZE[544] + $LOCALIZE[31040] + $LOCALIZE[31040]$INFO[musicplayer.Playlistposition,: ]$INFO[musicplayer.Playlistlength,/] + + + $INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Title,,[CR]]$INFO[ListItem.Artist,,[CR]]$INFO[ListItem.Album,[COLOR grey2],[/COLOR][CR]]$INFO[ListItem.DiscNumber,[COLOR grey2]$LOCALIZE[427] ,[/COLOR][CR]]$INFO[ListItem.Year,[COLOR grey2], | [/COLOR]]$INFO[ListItem.Genre,[COLOR grey2],[/COLOR][CR]]$INFO[ListItem.PlayCount,$LOCALIZE[567]: ,[CR]]$INFO[ListItem.Time,$LOCALIZE[180]: ,/]$INFO[ListItem.Duration,,[CR]] + $INFO[MusicPlayer.TrackNumber,,. ]$INFO[MusicPlayer.Title,,[CR]]$INFO[MusicPlayer.Artist,,[CR]]$INFO[MusicPlayer.Album,[COLOR grey2],[/COLOR][CR]]$INFO[MusicPlayer.DiscNumber,[COLOR grey2]$LOCALIZE[427] ,[/COLOR][CR]]$INFO[MusicPlayer.Year,[COLOR grey2], | [/COLOR]]$INFO[MusicPlayer.Genre,[COLOR grey2],[/COLOR][CR]]$INFO[MusicPlayer.PlayCount,$LOCALIZE[567]: ,[CR]]$INFO[MusicPlayer.Time,$LOCALIZE[31016]: ,/]$INFO[MusicPlayer.Duration,,[CR]] + + + $INFO[ListItem.UserRating,ratings/,.png] + $INFO[MusicPlayer.UserRating,ratings/,.png] + + + $INFO[ListItem.Icon] + $INFO[Player.Art(thumb)] + $INFO[Container(50).Listitem.Icon] $INFO[Container.Art(artist.thumb)] diff --git a/720p/ViewsMusicLibrary.xml b/720p/ViewsMusicLibrary.xml index b1c6360..e8d5e12 100644 --- a/720p/ViewsMusicLibrary.xml +++ b/720p/ViewsMusicLibrary.xml @@ -4,239 +4,37 @@ Control.IsVisible(506) VisibleFadeEffect - - 70 - 75 - 780 - 561 - 2 - 60 - 506 - 506 - list - 60 - 200 - Container.Content(Files) | Window.IsVisible(MusicPlaylist) | Container.Content(Songs) | Container.Content(Albums) - - - 0 - 0 - 780 - 41 - MenuItemNF.png - - - 10 - 0 - 730 - 40 - font13 - grey2 - selected - left - center - - - - 60 - 0 - 700 - 40 - font12 - grey2 - selected - right - center - - - - - - 0 - 0 - 760 - 41 - MenuItemNF.png - !Control.HasFocus(506) - VisibleFadeEffect - - - 0 - 0 - 780 - 41 - MenuItemFO.png - Control.HasFocus(506) - VisibleFadeEffect - - - 580 - 5 - 200 - 31 - MediaItemDetailBG.png - Control.HasFocus(506) + !String.IsEmpty(ListItem.Label2) - - - 10 - 0 - 730 - 40 - font13 - white - selected - left - center - - - - 60 - 0 - 700 - 40 - font12 - grey2 - selected - right - center - - - - - - 850 - 78 - 25 - 560 - ScrollBarV.png - ScrollBarV_bar.png - ScrollBarV_bar_focus.png - ScrollBarNib.png - ScrollBarNib.png - 506 - 2 - false - vertical - Control.IsVisible(506) - - - Control.IsVisible(506) - 910 - 80 - - 10 - 0 - 290 - 20 - - center - center - font13 - white - - - 10 - 20 - 290 - 290 - keep - IconCrossfadeTime - $INFO[ListItem.Icon] - ThumbShadow.png - 8 - - - 10 - 315 - 290 - 45 - - true - true - left - font13_title - white - black - - - 10 - 360 - 290 - 45 - - true - true - left - font13_title - white - black - - - 10 - 415 - 168 - 20 - $VAR[MusicRating,ratings/,.png] - - - 10 - 440 - 290 - 45 - - true - false - 200 - left - font13 - grey2 - black - - - 10 - 485 - 290 - 20 - - true - false - 200 - left - font13 - grey2 - black - true - - - 10 - 530 - 290 - 20 - - left - font13 - white - - + + + + + - - Control.IsVisible(507) VisibleFadeEffect - + + + + + + + + + + 70 75 780 561 2 60 - 507 - 507 - list + $PARAM[control_id] + $PARAM[control_id] + list 60 200 - Window.IsVisible(MusicPlaylist) | Window.IsVisible(10502) + $PARAM[visible] 0 @@ -277,7 +75,7 @@ 760 41 MenuItemNF.png - !Control.HasFocus(507) + !Control.HasFocus($PARAM[control_id]) VisibleFadeEffect @@ -286,7 +84,7 @@ 780 41 MenuItemFO.png - Control.HasFocus(507) + Control.HasFocus($PARAM[control_id]) VisibleFadeEffect @@ -295,7 +93,7 @@ 200 31 MediaItemDetailBG.png - Control.HasFocus(507) + !String.IsEmpty(ListItem.Label2) + Control.HasFocus($PARAM[control_id]) + !String.IsEmpty(ListItem.Label2) 10 @@ -333,14 +131,14 @@ ScrollBarV_bar_focus.png ScrollBarNib.png ScrollBarNib.png - 506 + $PARAM[control_id] 2 false vertical - Control.IsVisible(507) + Control.IsVisible($PARAM[control_id]) - Control.IsVisible(507) + Control.IsVisible($PARAM[control_id]) 910 80 @@ -348,20 +146,7 @@ 0 290 20 - - !Player.HasAudio - center - center - font13 - white - - - 10 - 0 - 290 - 20 - - Player.HasAudio + center center font13 @@ -374,86 +159,32 @@ 290 keep IconCrossfadeTime - $INFO[Player.Art(thumb)] + $VAR[MusicInfoListViewThumb] ThumbShadow.png 8 - - 10 - 315 - 290 - 45 - - true - true - left - font13_title - white - black - - - 10 - 360 - 290 - 45 - - true - true - left - font13_title - white - black - 10 - 415 + 315 168 20 - $INFO[MusicPlayer.UserRating,ratings/,.png] - Player.HasAudio - + $VAR[MusicInfoListViewtRating] + 10 - 440 + 340 290 - 45 - + 200 + true - false - 200 + true left - font13 - grey2 - black - - - 10 - 485 - 290 - 20 - - true - false - 200 - left - font13 - grey2 - black - true - - - 10 - 530 - 290 - 20 - - left - font13 + font12_title white - Player.HasAudio - + black + - +