Skip to content

Commit 1f751e6

Browse files
committed
Update API docs
1 parent 8a9fa04 commit 1f751e6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

docs/api/components_WhatsNewDialog.bs.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
"fontUri": "font:SystemFontFile",
1818
"color": "#EFEFEFFF"
1919
},
20-
"url": {
20+
"author": {
2121
"fontSize": 27,
2222
"fontUri": "font:SystemFontFile",
23-
"color": "#00a4dcFF"
23+
"color": "0xff6867FF"
2424
}
2525
}
2626

27-
' empty line for spacing
28-
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
29-
textLine.text = ""
27+
whatsNewList = ParseJSON(ReadAsciiFile("pkg:/source/static/whatsNew/details.json"))
3028

31-
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
32-
textLine.drawingStyles = dialogStyles
33-
textLine.text = tr("To view a complete list of changes visit") + " <url>https://github.com/jellyfin/jellyfin-roku/releases/tag/v" + appVersion + "</url>"
29+
for each item in whatsNewList
30+
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
31+
textLine.drawingStyles = dialogStyles
32+
textLine.text = "• " + item.description + " <author>" + item.author + "</author>"
33+
end for
3434
end sub
3535

3636
sub setPalette()

docs/api/components_movies_MovieDetails.bs.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
main = m.top.findNode("main_group")
1616
main.translation = [96, 175]
17-
overview = m.top.findNode("overview")
18-
overview.width = 1920 - 96 - 300 - 96 - 30
17+
m.overview = m.top.findNode("overview")
1918

2019
m.details = m.top.findNode("details")
2120
m.tagline = m.top.findNode("tagline")
@@ -105,12 +104,14 @@
105104
m.top.id = itemData.id
106105

107106
posterUrl = item.posterURL
107+
m.overview.width = 1400
108108

109109
' Really need to update TvShowDetails to include the options for changing audio tracks etc
110110
' so that we can use that instead of MovieDetails when a user clicks on a TV Show in "Next Up"
111111
if LCase(itemData.type) = "episode" and IsValid(itemData.ImageTags)
112112
m.moviePoster.width = 464
113113
m.moviePoster.height = 261
114+
m.overview.width = 1000
114115
params = { "Tag": itemData.ImageTags.Primary, "maxHeight": 261, "maxWidth": 464 }
115116
posterUrl = ImageURL(itemData.id, "Primary", params)
116117
end if

0 commit comments

Comments
 (0)