mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
sub init()
|
|
m.content = m.top.findNode("content")
|
|
appVersion = m.global.app.version
|
|
|
|
setPalette()
|
|
|
|
m.top.id = "OKDialog"
|
|
m.top.height = 900
|
|
m.top.title = tr("Welcome to version") + " " + appVersion
|
|
m.top.buttons = [tr("OK")]
|
|
|
|
dialogStyles = {
|
|
"default": {
|
|
"fontSize": 27,
|
|
"fontUri": "font:SystemFontFile",
|
|
"color": "#EFEFEFFF"
|
|
},
|
|
"url": {
|
|
"fontSize": 27,
|
|
"fontUri": "font:SystemFontFile",
|
|
"color": "#00a4dcFF"
|
|
}
|
|
}
|
|
|
|
' empty line for spacing
|
|
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
|
|
textLine.text = ""
|
|
|
|
textLine = m.content.CreateChild("StdDlgMultiStyleTextItem")
|
|
textLine.drawingStyles = dialogStyles
|
|
textLine.text = tr("To view a complete list of changes visit") + " <url>https://github.com/jellyfin/jellyfin-roku/releases/tag/v" + appVersion + "</url>"
|
|
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
|