From 543f5fffcccccb64bda6b9bd777e9246b1b9f0b8 Mon Sep 17 00:00:00 2001 From: jjd-uk Date: Wed, 17 Oct 2018 16:14:41 +0100 Subject: [PATCH] New "Now playing" view aligned to "Media Info" (#38) Many thanks. --- 720p/Includes.xml | 2 +- 720p/IncludesBackgroundBuilding.xml | 2 +- 720p/MyMusicNav.xml | 4 +- 720p/MyPlaylist.xml | 8 +- 720p/ViewsMusicLibrary.xml | 351 ++++++++++++++++---- language/resource.language.en_gb/strings.po | 6 +- 6 files changed, 296 insertions(+), 77 deletions(-) diff --git a/720p/Includes.xml b/720p/Includes.xml index df2f196..c09d751 100644 --- a/720p/Includes.xml +++ b/720p/Includes.xml @@ -859,7 +859,7 @@ - Player.HasMedia + String.IsEmpty(Window(Videos).Property(PlayingBackgroundMedia)) + Player.HasMedia + String.IsEmpty(Window(Videos).Property(PlayingBackgroundMedia)) + !Control.IsVisible(507) VisibleFadeEffect WindowOpen WindowClose diff --git a/720p/IncludesBackgroundBuilding.xml b/720p/IncludesBackgroundBuilding.xml index 026d24c..43ceb65 100644 --- a/720p/IncludesBackgroundBuilding.xml +++ b/720p/IncludesBackgroundBuilding.xml @@ -130,7 +130,7 @@ VisibleFadeEffect - Control.IsVisible(551) | Control.IsVisible(560) | Control.IsVisible(511) | Control.IsVisible(506) | Control.IsVisible(513) + Control.IsVisible(551) | Control.IsVisible(560) | Control.IsVisible(511) | Control.IsVisible(506) | Control.IsVisible(507) | Control.IsVisible(513) 50 60 diff --git a/720p/MyMusicNav.xml b/720p/MyMusicNav.xml index 297dcbf..049bf2b 100644 --- a/720p/MyMusicNav.xml +++ b/720p/MyMusicNav.xml @@ -3,7 +3,7 @@ 50 9000 ActivateWindow(1112) - 50,51,500,550,551,509,506,511,512,513 + 50,51,500,550,551,509,506,507,511,512,513 CommonBackground ContentPanelBackgrounds @@ -17,6 +17,8 @@ ThumbnailView MusicInfoListView + + NowPlaying AlbumWrapView2_Fanart diff --git a/720p/MyPlaylist.xml b/720p/MyPlaylist.xml index 5d9fc4c..b3765f3 100644 --- a/720p/MyPlaylist.xml +++ b/720p/MyPlaylist.xml @@ -3,7 +3,7 @@ 50 9000 ActivateWindow(1112) - 50,51,506 + 50,51,506,507 CommonBackground ContentPanelBackgrounds @@ -15,6 +15,8 @@ FullWidthList MusicInfoListView + + NowPlaying DepthFooter @@ -26,11 +28,11 @@ ScrollOffsetLabel - + - + -250 diff --git a/720p/ViewsMusicLibrary.xml b/720p/ViewsMusicLibrary.xml index adaccb8..118226a 100644 --- a/720p/ViewsMusicLibrary.xml +++ b/720p/ViewsMusicLibrary.xml @@ -123,10 +123,21 @@ Control.IsVisible(506) 910 80 - + 10 0 290 + 20 + + center + center + font13 + white + + + 10 + 20 + 290 290 keep IconCrossfadeTime @@ -136,14 +147,14 @@ 10 - 300 + 315 290 - 25 - + 45 + + true true - center - center - font24_title + left + font13_title white black @@ -151,95 +162,295 @@ 10 360 290 - 25 - + 45 + true - center - center + true + left + font13_title + white + black + + + 10 + 415 + 168 + 20 + $INFO[ListItem.Rating,ratings/,.png] + + + 10 + 440 + 290 + 45 + + true + false + 200 + left font13 grey2 black 10 - 420 + 485 290 - 25 - - true - center - top - font13_title - white + 20 + + true + false + 200 + left + font13 + grey2 black true - !Container.Content(Albums) - 10 - 420 - 290 - 25 - - true - center - top - font13_title - white - black - true - Container.Content(Albums) - - - Trackno txt - 10 - 480 - 290 - 25 - - center - center - font13 - white - !Container.Content(Albums) - - - Year txt - 10 - 505 - 290 - 25 - - center - center - font13 - white - - - Rating txt 10 530 290 - 25 - + 20 + + left + font13 + white + + + + + + + Control.IsVisible(507) + VisibleFadeEffect + + 70 + 75 + 780 + 561 + 2 + 60 + 507 + 507 + list + 60 + 200 + Window.IsVisible(MusicPlaylist) | Window.IsVisible(10502) + + + 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(507) + VisibleFadeEffect + + + 0 + 0 + 780 + 41 + MenuItemFO.png + Control.HasFocus(507) + VisibleFadeEffect + + + 580 + 5 + 200 + 31 + MediaItemDetailBG.png + Control.HasFocus(507) + !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(507) + + + Control.IsVisible(507) + 910 + 80 + + 10 + 0 + 290 + 20 + + !Player.HasAudio center center font13 white - Container.Content(Albums) - UserRating txt + 10 + 0 + 290 + 20 + + Player.HasAudio + center + center + font13 + white + + + 10 + 20 + 290 + 290 + keep + IconCrossfadeTime + $INFO[Player.Art(thumb)] + 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 + $INFO[MusicPlayer.UserRating,ratings/,.png] + Player.HasAudio + + + 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 - 25 - - center - center + 20 + + left font13 white - Container.Content(Songs) + Player.HasAudio diff --git a/language/resource.language.en_gb/strings.po b/language/resource.language.en_gb/strings.po index c6a9166..d4db38d 100644 --- a/language/resource.language.en_gb/strings.po +++ b/language/resource.language.en_gb/strings.po @@ -88,7 +88,11 @@ msgctxt "#31015" msgid "Minute" msgstr "" -#empty strings from id 31016 to 31022 +msgctxt "#31016" +msgid "Elapsed time" +msgstr "" + +#empty strings from id 31017 to 31022 msgctxt "#31023" msgid "Playing"