2022-12-21 21:56:39 +00:00
|
|
|
sub init()
|
|
|
|
m.content = m.top.findNode("content")
|
2024-10-17 15:54:52 +00:00
|
|
|
appVersion = m.global.app.version
|
2022-12-21 21:56:39 +00:00
|
|
|
|
|
|
|
setPalette()
|
|
|
|
|
|
|
|
m.top.id = "OKDialog"
|
|
|
|
m.top.height = 900
|
2024-10-17 15:54:52 +00:00
|
|
|
m.top.title = tr("Welcome to version") + " " + appVersion
|
2022-12-21 21:56:39 +00:00
|
|
|
m.top.buttons = [tr("OK")]
|
|
|
|
|
|
|
|
dialogStyles = {
|
|
|
|
"default": {
|
|
|
|
"fontSize": 27,
|
|
|
|
"fontUri": "font:SystemFontFile",
|
|
|
|
"color": "#EFEFEFFF"
|
|
|
|
},
|
2024-04-11 22:38:10 +00:00
|
|
|
"url": {
|
2022-12-21 21:56:39 +00:00
|
|
|
"fontSize": 27,
|
|
|
|
"fontUri": "font:SystemFontFile",
|
|
|
|
"color": "#00a4dcFF"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-11 22:38:10 +00:00
|
|
|
' empty line for spacing
|
|
|
|
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
|
|
|
|
textLine.text = ""
|
2022-12-21 21:56:39 +00:00
|
|
|
|
2024-04-11 22:38:10 +00:00
|
|
|
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
|
|
|
|
textLine.drawingStyles = dialogStyles
|
2024-10-17 15:54:52 +00:00
|
|
|
textLine.text = tr("To view a complete list of changes visit") + " <url>https://github.com/jellyfin/jellyfin-roku/releases/tag/v" + appVersion + "</url>"
|
2022-12-21 21:56:39 +00:00
|
|
|
end sub
|
|
|
|
|
|
|
|
sub setPalette()
|
|
|
|
dlgPalette = createObject("roSGNode", "RSGPalette")
|
|
|
|
dlgPalette.colors = {
|
|
|
|
DialogBackgroundColor: "0x262828FF",
|
|
|
|
DialogFocusColor: "0xcececeFF",
|
|
|
|
DialogFocusItemColor: "0x202020FF",
|
|
|
|
DialogSecondaryTextColor: "0xf8f8f8ff",
|
|
|
|
DialogSecondaryItemColor: "#00a4dcFF",
|
|
|
|
DialogTextColor: "0xeeeeeeFF"
|
|
|
|
}
|
|
|
|
|
|
|
|
m.top.palette = dlgPalette
|
|
|
|
end sub
|