From d3d94d0e4c052fd408d9b43cc06e73475be89669 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Wed, 14 Dec 2022 20:55:03 -0500 Subject: [PATCH] Add placeholders & move title down --- components/ItemGrid/MusicArtistGridItem.brs | 8 ++++++++ components/ItemGrid/MusicArtistGridItem.xml | 4 ++-- components/ItemGrid/MusicLibraryView.brs | 4 +++- images/icons/musicFolder.png | Bin 0 -> 2134 bytes 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 images/icons/musicFolder.png diff --git a/components/ItemGrid/MusicArtistGridItem.brs b/components/ItemGrid/MusicArtistGridItem.brs index 07927a40..438d7321 100644 --- a/components/ItemGrid/MusicArtistGridItem.brs +++ b/components/ItemGrid/MusicArtistGridItem.brs @@ -23,6 +23,14 @@ sub itemContentChanged() if not isValid(itemData) then return + if LCase(itemData.type) = "musicalbum" + m.backdrop.uri = "pkg:/images/icons/album.png" + else if LCase(itemData.type) = "musicartist" + m.backdrop.uri = "pkg:/images/missingArtist.png" + else if LCase(itemData.json.type) = "musicgenre" + m.backdrop.uri = "pkg:/images/icons/musicFolder.png" + end if + m.itemPoster.uri = itemData.PosterUrl m.posterText.text = itemData.title diff --git a/components/ItemGrid/MusicArtistGridItem.xml b/components/ItemGrid/MusicArtistGridItem.xml index b23aca5d..5533d515 100644 --- a/components/ItemGrid/MusicArtistGridItem.xml +++ b/components/ItemGrid/MusicArtistGridItem.xml @@ -3,8 +3,8 @@ - - + + diff --git a/components/ItemGrid/MusicLibraryView.brs b/components/ItemGrid/MusicLibraryView.brs index 9d7aed27..8d4083d7 100644 --- a/components/ItemGrid/MusicLibraryView.brs +++ b/components/ItemGrid/MusicLibraryView.brs @@ -217,7 +217,9 @@ sub setMusicOptions(options) ] if LCase(m.options.view) = "genres" or LCase(m.view) = "genres" - options.sort = [] + options.sort = [ + { "Title": tr("TITLE"), "Name": "SortName" }, + ] options.filter = [] end if diff --git a/images/icons/musicFolder.png b/images/icons/musicFolder.png new file mode 100644 index 0000000000000000000000000000000000000000..5c2272e209eb5d870f5921481f5189f91c23214c GIT binary patch literal 2134 zcmbVNX*86J8-L$vM#Er`t>k8u+-?cUnq{mL*}6kBH71kDQY2SMrg;&Xu58JgrLv2$ z)xE|xQcrq(abWN-}UNpSl8-V zaAwjxd{Q`9_nLU6&}NX0Fmg3F()>CF^WfS*7ro8Mkh3#f`FwUmskn~o=@pw1Haw!| z7T{ZC<^&1fVE9OwcbSG}s|$jN4m|~Fjhj>cY$hvGUWA)2WH+lSvKorNva?9@VI&Au z@I0|=G!P7n!ht?=;U^(=7kG#krImyi#Ip9Dk+qh=Yg9*PuWR{gEL z9bgLYJLBN34f4D^cJg5{--ZraDOv=k{&Vqc5*1ZH#pFK&mKb=bvo z{yn|*P)x5}K@hd}TRa*+O4Zljvti$A0MGImtec`ViHFu|e<{5F3e zHde(-ZGe3mjs<>BEbs$aSMI%YJK-~Dj{g&Qtoo1PYT?eugnMF?2L(7ZwgH8jN4Cok^)z+2^_pAK~37_*@`w46+ z`appq7DD(hRTwx9Y_0gp;jqKk&dp36PNJ)0U-sy|F+!*6-6TZYj-AF-E!i&t19ea5>VGUKk z3ol;BuOgv0 zVWA7iLWMxbURd69qzYJvVdd7emFXLQ%;d<*!n5ju^?mWT091>7_b1BFBz?aevbpK+ z()AYx^Sk*x80ew+VU;{YqV1ACgG)IAGp)2RMuk?NBA&=c}(zjbPHe?@^ z5xRXsH3peN!Dl#XnmQ7Iz_QL^maX6OoJKSbgw^~8$sU|ux0Y3l-kbhbLdfjA`F5qF z&07w9nB3xG{fy!S@a-Zye}xgNqU^^~K(~i?Ow(j2)i6J@%e^gSL|!;k4%Y1s9i1DM z`(QMGZ{Z+ps64DM{7GgOaE`eue-iSA*WmdK*)2o0u3=G{!v8=&`bDChvVJ!kWsr9m!LaA>kFBlcTvxL zFEE8?F#towm*Y2xOP?k-M80@vRu^7IEVtC|7hGg7$WZcKz#`HyeWOIzu$~1OmUEno zI=X$c_C$h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