Skip to content

Commit b579905

Browse files
chore(docs): update code docs
1 parent aeb4863 commit b579905

8 files changed

Lines changed: 57 additions & 57 deletions

docs/components_ItemDetails.bs.html

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
else if not isValid(m.top.findNode("resumeLoadingButton"))
332332
m.resumeLoadingButton = CreateObject("roSGNode", "IconButton")
333333
m.resumeLoadingButton.id = "resumeLoadingButton"
334-
m.resumeLoadingButton.icon = "pkg:/images/icons/resume.png"
334+
m.resumeLoadingButton.icon = "pkg:/images/icons/resume_$$RES$$.png"
335335
if isValid(m.top.nextUpEpisode) and isValidAndNotEmpty(m.top.nextUpEpisode.id)
336336
m.resumeLoadingButton.text = getResumeButtonText(m.top.nextUpEpisode)
337337
else
@@ -380,7 +380,7 @@
380380
if not isValid(m.top.findNode("trailerButton"))
381381
trailerButton = CreateObject("roSGNode", "IconButton")
382382
trailerButton.id = "trailerButton"
383-
trailerButton.icon = "pkg:/images/icons/playOutline.png"
383+
trailerButton.icon = "pkg:/images/icons/playOutline_$$RES$$.png"
384384
trailerButton.text = translate(translationKeys.LabelPlayTrailer)
385385
' Insert before Delete (if present) to match setupButtons() ordering, else before Refresh
386386
deleteButtonIndex = getButtonIndex("deleteButton")
@@ -416,7 +416,7 @@
416416
if not isValid(resumeButton)
417417
resumeButton = CreateObject("roSGNode", "ResumeButton")
418418
resumeButton.id = "resumeButton"
419-
resumeButton.icon = "pkg:/images/icons/resume.png"
419+
resumeButton.icon = "pkg:/images/icons/resume_$$RES$$.png"
420420
resumeButton.text = resumeText
421421
resumeButton.playbackPositionTicks = item.playbackPositionTicks
422422
resumeButton.runtimeTicks = item.runTimeTicks
@@ -517,7 +517,7 @@
517517

518518
resumeButton = CreateObject("roSGNode", "ResumeButton")
519519
resumeButton.id = "resumeButton"
520-
resumeButton.icon = "pkg:/images/icons/resume.png"
520+
resumeButton.icon = "pkg:/images/icons/resume_$$RES$$.png"
521521
resumeButton.text = translate(translationKeys.ButtonResume)
522522
resumeButton.playbackPositionTicks = item.playbackPositionTicks
523523
resumeButton.runtimeTicks = item.runTimeTicks
@@ -2172,7 +2172,7 @@
21722172
imgParams = { maxHeight: 534, maxWidth: LOGO_MAX_DISPLAY_WIDTH, quality: 90, tag: item.primaryImageTag }
21732173
m.itemLogo.uri = ImageURL(item.id, "Primary", imgParams)
21742174
else
2175-
m.itemLogo.uri = "pkg:/images/icons/baseline_person_white_48dp.png"
2175+
m.itemLogo.uri = "pkg:/images/icons/person_$$RES$$.png"
21762176
end if
21772177
return
21782178
else if item.type = "MusicArtist"
@@ -2601,7 +2601,7 @@
26012601
if itemType = "Series"
26022602
m.resumeLoadingButton = CreateObject("roSGNode", "IconButton")
26032603
m.resumeLoadingButton.id = "resumeLoadingButton"
2604-
m.resumeLoadingButton.icon = "pkg:/images/icons/resume.png"
2604+
m.resumeLoadingButton.icon = "pkg:/images/icons/resume_$$RES$$.png"
26052605
if isValid(m.top.nextUpEpisode) and isValidAndNotEmpty(m.top.nextUpEpisode.id)
26062606
m.resumeLoadingButton.text = getResumeButtonText(m.top.nextUpEpisode)
26072607
else
@@ -2615,7 +2615,7 @@
26152615
if itemType = "Photo"
26162616
viewPhotoButton = CreateObject("roSGNode", "IconButton")
26172617
viewPhotoButton.id = "viewPhotoButton"
2618-
viewPhotoButton.icon = "pkg:/images/icons/play.png"
2618+
viewPhotoButton.icon = "pkg:/images/icons/play_$$RES$$.png"
26192619
viewPhotoButton.text = translate(translationKeys.LabelView)
26202620
m.buttonGrp.appendChild(viewPhotoButton)
26212621
end if
@@ -2624,7 +2624,7 @@
26242624
if itemType = "PhotoAlbum"
26252625
slideshowButton = CreateObject("roSGNode", "IconButton")
26262626
slideshowButton.id = "slideshowButton"
2627-
slideshowButton.icon = "pkg:/images/icons/play.png"
2627+
slideshowButton.icon = "pkg:/images/icons/play_$$RES$$.png"
26282628
slideshowButton.text = translate(translationKeys.LabelSlideshow)
26292629
m.buttonGrp.appendChild(slideshowButton)
26302630
end if
@@ -2675,13 +2675,13 @@
26752675

26762676
watchChannelButton = CreateObject("roSGNode", "ResumeButton")
26772677
watchChannelButton.id = "watchChannelButton"
2678-
watchChannelButton.icon = "pkg:/images/icons/play.png"
2678+
watchChannelButton.icon = "pkg:/images/icons/play_$$RES$$.png"
26792679
watchChannelButton.runtimeTicks = runtimeSeconds& * 10000000&
26802680
watchChannelButton.playbackPositionTicks = elapsedSeconds& * 10000000&
26812681
else
26822682
watchChannelButton = CreateObject("roSGNode", "IconButton")
26832683
watchChannelButton.id = "watchChannelButton"
2684-
watchChannelButton.icon = "pkg:/images/icons/play.png"
2684+
watchChannelButton.icon = "pkg:/images/icons/play_$$RES$$.png"
26852685
end if
26862686

26872687
watchChannelButton.text = translate(translationKeys.LabelWatch)
@@ -2694,7 +2694,7 @@
26942694
if showRecord
26952695
recordButton = CreateObject("roSGNode", "IconButton")
26962696
recordButton.id = "recordButton"
2697-
recordButton.icon = "pkg:/images/icons/record.png"
2697+
recordButton.icon = "pkg:/images/icons/record_$$RES$$.png"
26982698
' Check existing recording state — colorError icon when active
26992699
isRecording = false
27002700
if itemType = "Program" and isValidAndNotEmpty(item.timerId)
@@ -2717,7 +2717,7 @@
27172717
if itemType <> "Person" and itemType <> "Photo" and itemType <> "PhotoAlbum" and itemType <> "TvChannel" and itemType <> "Program"
27182718
playButton = CreateObject("roSGNode", "IconButton")
27192719
playButton.id = "playButton"
2720-
playButton.icon = "pkg:/images/icons/play.png"
2720+
playButton.icon = "pkg:/images/icons/play_$$RES$$.png"
27212721
if itemType = "Series" or itemType = "Season" or itemType = "BoxSet" or itemType = "MusicArtist" or itemType = "MusicAlbum" or itemType = "Playlist"
27222722
playButton.text = translate(translationKeys.LabelPlayAll)
27232723
else
@@ -2730,7 +2730,7 @@
27302730
if itemType = "Series" or itemType = "Season" or itemType = "BoxSet" or itemType = "MusicArtist" or itemType = "MusicAlbum" or itemType = "Playlist" or itemType = "PhotoAlbum"
27312731
m.shuffleButton = CreateObject("roSGNode", "IconButton")
27322732
m.shuffleButton.id = "shuffleButton"
2733-
m.shuffleButton.icon = "pkg:/images/icons/shuffle.png"
2733+
m.shuffleButton.icon = "pkg:/images/icons/shuffle_$$RES$$.png"
27342734
m.shuffleButton.text = translate(translationKeys.ButtonShuffle)
27352735
m.buttonGrp.appendChild(m.shuffleButton)
27362736
end if
@@ -2740,7 +2740,7 @@
27402740
if not inArray(itemTypeOrder.NO_WATCHED, itemType)
27412741
watchedButton = CreateObject("roSGNode", "IconButton")
27422742
watchedButton.id = "watchedButton"
2743-
watchedButton.icon = "pkg:/images/icons/check.png"
2743+
watchedButton.icon = "pkg:/images/icons/check_$$RES$$.png"
27442744
watchedButton.text = translate(translationKeys.LabelWatched)
27452745
m.buttonGrp.appendChild(watchedButton)
27462746
end if
@@ -2750,7 +2750,7 @@
27502750
if itemType = "Person"
27512751
m.shuffleLoadingButton = CreateObject("roSGNode", "IconButton")
27522752
m.shuffleLoadingButton.id = "shuffleLoadingButton"
2753-
m.shuffleLoadingButton.icon = "pkg:/images/icons/shuffle.png"
2753+
m.shuffleLoadingButton.icon = "pkg:/images/icons/shuffle_$$RES$$.png"
27542754
m.shuffleLoadingButton.text = translate(translationKeys.ButtonShuffle)
27552755
m.shuffleLoadingButton.isLoading = true
27562756
m.buttonGrp.appendChild(m.shuffleLoadingButton)
@@ -2764,23 +2764,23 @@
27642764
if itemType = "MusicArtist" or itemType = "MusicAlbum" or itemType = "Audio"
27652765
instantMixButton = CreateObject("roSGNode", "IconButton")
27662766
instantMixButton.id = "instantMixButton"
2767-
instantMixButton.icon = "pkg:/images/icons/instantMix.png"
2767+
instantMixButton.icon = "pkg:/images/icons/instantMix_$$RES$$.png"
27682768
instantMixButton.text = translate(translationKeys.LabelInstantMix)
27692769
m.buttonGrp.appendChild(instantMixButton)
27702770
end if
27712771

27722772
' Favorite button — all types
27732773
favoriteButton = CreateObject("roSGNode", "IconButton")
27742774
favoriteButton.id = "favoriteButton"
2775-
favoriteButton.icon = "pkg:/images/icons/heart.png"
2775+
favoriteButton.icon = "pkg:/images/icons/heart_$$RES$$.png"
27762776
favoriteButton.text = translate(translationKeys.LabelFavorite)
27772777
m.buttonGrp.appendChild(favoriteButton)
27782778

27792779
' Go to Series button — Season, Episode, and Program (when program is a series)
27802780
if itemType = "Season" or itemType = "Episode" or (itemType = "Program" and isValidAndNotEmpty(item.seriesId))
27812781
goToSeriesButton = CreateObject("roSGNode", "IconButton")
27822782
goToSeriesButton.id = "goToSeriesButton"
2783-
goToSeriesButton.icon = "pkg:/images/icons/tv.png"
2783+
goToSeriesButton.icon = "pkg:/images/icons/tv_$$RES$$.png"
27842784
goToSeriesButton.text = translate(translationKeys.LabelGoToSeries)
27852785
m.buttonGrp.appendChild(goToSeriesButton)
27862786
end if
@@ -2789,7 +2789,7 @@
27892789
if itemType = "Program" and isValidAndNotEmpty(item.channelId)
27902790
goToChannelButton = CreateObject("roSGNode", "IconButton")
27912791
goToChannelButton.id = "goToChannelButton"
2792-
goToChannelButton.icon = "pkg:/images/icons/tv.png"
2792+
goToChannelButton.icon = "pkg:/images/icons/tv_$$RES$$.png"
27932793
goToChannelButton.text = translate(translationKeys.LabelGoToChannel)
27942794
m.buttonGrp.appendChild(goToChannelButton)
27952795
end if
@@ -2798,7 +2798,7 @@
27982798
if itemType = "Audio" and isValidAndNotEmpty(item.albumId)
27992799
goToAlbumButton = CreateObject("roSGNode", "IconButton")
28002800
goToAlbumButton.id = "goToAlbumButton"
2801-
goToAlbumButton.icon = "pkg:/images/icons/album.png"
2801+
goToAlbumButton.icon = "pkg:/images/icons/album_$$RES$$.png"
28022802
goToAlbumButton.text = translate(translationKeys.LabelGoToAlbum)
28032803
m.buttonGrp.appendChild(goToAlbumButton)
28042804
end if
@@ -2823,7 +2823,7 @@
28232823
if hasNavigableArtist
28242824
goToArtistButton = CreateObject("roSGNode", "IconButton")
28252825
goToArtistButton.id = "goToArtistButton"
2826-
goToArtistButton.icon = "pkg:/images/icons/baseline_person_white_48dp.png"
2826+
goToArtistButton.icon = "pkg:/images/icons/person_$$RES$$.png"
28272827
goToArtistButton.text = translate(translationKeys.LabelGoToArtist)
28282828
m.buttonGrp.appendChild(goToArtistButton)
28292829
end if
@@ -2835,7 +2835,7 @@
28352835
if m.top.trailerAvailable
28362836
trailerButton = CreateObject("roSGNode", "IconButton")
28372837
trailerButton.id = "trailerButton"
2838-
trailerButton.icon = "pkg:/images/icons/playOutline.png"
2838+
trailerButton.icon = "pkg:/images/icons/playOutline_$$RES$$.png"
28392839
trailerButton.text = translate(translationKeys.LabelPlayTrailer)
28402840
m.buttonGrp.appendChild(trailerButton)
28412841
end if
@@ -2844,15 +2844,15 @@
28442844
if item.canDelete
28452845
deleteButton = CreateObject("roSGNode", "IconButton")
28462846
deleteButton.id = "deleteButton"
2847-
deleteButton.icon = "pkg:/images/icons/delete.png"
2847+
deleteButton.icon = "pkg:/images/icons/delete_$$RES$$.png"
28482848
deleteButton.text = translate(translationKeys.ButtonDelete)
28492849
m.buttonGrp.appendChild(deleteButton)
28502850
end if
28512851

28522852
' Refresh button — always last
28532853
refreshButton = CreateObject("roSGNode", "IconButton")
28542854
refreshButton.id = "refreshButton"
2855-
refreshButton.icon = "pkg:/images/icons/refresh.png"
2855+
refreshButton.icon = "pkg:/images/icons/refresh_$$RES$$.png"
28562856
refreshButton.text = translate(translationKeys.ButtonRefresh)
28572857
m.buttonGrp.appendChild(refreshButton)
28582858

@@ -2888,7 +2888,7 @@
28882888
if not isValid(m.shuffleButton)
28892889
m.shuffleButton = CreateObject("roSGNode", "IconButton")
28902890
m.shuffleButton.id = "shuffleButton"
2891-
m.shuffleButton.icon = "pkg:/images/icons/shuffle.png"
2891+
m.shuffleButton.icon = "pkg:/images/icons/shuffle_$$RES$$.png"
28922892
m.shuffleButton.text = translate(translationKeys.ButtonShuffle)
28932893

28942894
if isValid(loadingButton)
@@ -2986,7 +2986,7 @@
29862986
if not isValid(watchedButton)
29872987
watchedButton = CreateObject("roSGNode", "IconButton")
29882988
watchedButton.id = "watchedButton"
2989-
watchedButton.icon = "pkg:/images/icons/check.png"
2989+
watchedButton.icon = "pkg:/images/icons/check_$$RES$$.png"
29902990
watchedButton.text = translate(translationKeys.LabelWatched)
29912991

29922992
currentFocusIndex = m.buttonGrp.buttonFocused

docs/components_ItemGrid_ItemGridOptions.bs.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@
210210
sub toggleFavorite()
211211
if not isValid(m.selectedFavoriteItem) then return
212212

213-
if m.favoriteMenu.iconUri = "pkg:/images/icons/favorite.png"
214-
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_selected.png"
215-
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite_selected.png"
213+
if m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_$$RES$$.png"
214+
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_selected_$$RES$$.png"
215+
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite_selected_$$RES$$.png"
216216
req = GetApi().BuildMarkFavoriteRequest(m.selectedFavoriteItem.id)
217217
SubmitSideEffect(req)
218218
else
219-
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite.png"
220-
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite.png"
219+
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_$$RES$$.png"
220+
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite_$$RES$$.png"
221221
req = GetApi().BuildUnmarkFavoriteRequest(m.selectedFavoriteItem.id)
222222
SubmitSideEffect(req)
223223
end if
@@ -229,7 +229,7 @@
229229
try
230230
for i = 0 to 6
231231
node = m.favoriteMenu.getChild(i)
232-
if isValid(node) and isValid(node.uri) and node.uri = "pkg:/images/icons/favorite_selected.png"
232+
if isValid(node) and isValid(node.uri) and node.uri = "pkg:/images/icons/favorite_selected_$$RES$$.png"
233233
m.favoriteMenu.getChild(i).blendColor = color
234234
end if
235235
end for
@@ -244,13 +244,13 @@
244244
' Favorite button
245245
if isValid(m.selectedFavoriteItem)
246246
if m.selectedFavoriteItem.favorite = true
247-
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_selected.png"
248-
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite_selected.png"
247+
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_selected_$$RES$$.png"
248+
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite_selected_$$RES$$.png"
249249
' Make sure we set the Favorite Heart color for the appropriate child
250250
setHeartColor("#cc3333")
251251
else
252-
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite.png"
253-
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite.png"
252+
m.favoriteMenu.iconUri = "pkg:/images/icons/favorite_$$RES$$.png"
253+
m.favoriteMenu.focusedIconUri = "pkg:/images/icons/favorite_$$RES$$.png"
254254
' Make sure we set the Favorite Heart color for the appropriate child
255255
setHeartColor("#cc3333")
256256
end if

docs/components_ItemGrid_MusicArtistGridItem.bs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@
5151
folderType = LCase(itemData.folderType)
5252

5353
if itemType = "musicalbum"
54-
fallbackIconUri = "pkg:/images/icons/album.png"
54+
fallbackIconUri = "pkg:/images/icons/album_$$RES$$.png"
5555
shouldShowFallbackIcon = true
5656
else if itemType = "musicartist"
57-
fallbackIconUri = "pkg:/images/icons/missingArtist.png"
57+
fallbackIconUri = "pkg:/images/icons/missingArtist_$$RES$$.png"
5858
shouldShowFallbackIcon = true
5959
else if itemType = "musicgenre" or folderType = "musicgenre"
60-
fallbackIconUri = "pkg:/images/icons/musicFolder.png"
60+
fallbackIconUri = "pkg:/images/icons/musicFolder_$$RES$$.png"
6161
shouldShowFallbackIcon = true
6262
end if
6363
end if

docs/components_JROverhang.bs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
' Create overhang icon buttons (search and settings shortcuts)
3030
m.searchIcon = CreateObject("roSGNode", "JROverhangIcon")
3131
m.searchIcon.id = "searchIcon"
32-
m.searchIcon.icon = "pkg:/images/icons/search.png"
32+
m.searchIcon.icon = "pkg:/images/icons/search_$$RES$$.png"
3333
m.searchIcon.actionId = HomeAction.OPEN_SEARCH
3434
m.searchIcon.visible = false
3535
m.top.appendChild(m.searchIcon)
3636

3737
m.settingsIcon = CreateObject("roSGNode", "JROverhangIcon")
3838
m.settingsIcon.id = "settingsIcon"
39-
m.settingsIcon.icon = "pkg:/images/icons/settings.png"
39+
m.settingsIcon.icon = "pkg:/images/icons/settings_$$RES$$.png"
4040
m.settingsIcon.actionId = HomeAction.OPEN_SETTINGS
4141
m.settingsIcon.visible = false
4242
m.top.appendChild(m.settingsIcon)
@@ -132,7 +132,7 @@
132132
end if
133133
else
134134
m.userDropdown.triggerIconBlendColor = m.global.constants.colorTextSecondary
135-
m.userDropdown.triggerIconUri = "pkg:/images/icons/person_36px.png"
135+
m.userDropdown.triggerIconUri = "pkg:/images/icons/person_36px_$$RES$$.png"
136136
end if
137137

138138
' Set menu items — user-related actions only

docs/components_Spinner.bs.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/components_login_UserItem.bs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
profileName = m.top.findNode("profileName")
1313

1414
if itemData.imageURL = ""
15-
profileImage.uri = "pkg://images/icons/baseline_person_white_48dp.png"
15+
profileImage.uri = "pkg:/images/icons/person_$$RES$$.png"
1616
else
1717
profileImage.uri = itemData.imageURL
1818
end if

0 commit comments

Comments
 (0)