Add setting: Use splashscreen as home background

This commit is contained in:
1hitsong 2022-06-12 16:36:00 -04:00
parent 30f294e012
commit d6ff84b2ff
3 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,11 @@
sub init()
m.top.overhangTitle = "Home"
m.top.optionsAvailable = true
if get_user_setting("ui.home.splashBackground") = "true"
m.backdrop = m.top.findNode("backdrop")
m.backdrop.uri = buildURL("/Branding/Splashscreen?format=jpg&foregroundLayer=0.15&fillWidth=1280&width=1280&fillHeight=720&height=720&tag=splash")
end if
end sub
sub refresh()

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<component name="Home" extends="JFGroup">
<children>
<Poster id="backdrop" loadDisplayMode="scaleToZoom" width="1920" height="1200" />
<HomeRows id="homeRows" />
<OptionsSlider id="options" />
</children>
@ -13,4 +14,6 @@
<function name="loadLibraries" />
</interface>
<script type="text/brightscript" uri="Home.brs" />
<script type="text/brightscript" uri="pkg:/source/api/baserequest.brs" />
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
</component>

View File

@ -16,6 +16,19 @@
"title": "User Interface",
"description": "Settings relating to how the how the applications looks",
"children": [
{
"title": "Design Elements",
"description": "Options that alter the design of Jellyfin.",
"children": [
{
"title": "Use Splashscreen as Home Background",
"description": "Use generated splashscreen image as Jellyfin home background. Jellyfin will need to be closed and reopened for change to take affect.",
"settingName": "ui.home.splashBackground",
"type": "bool",
"default": "false"
}
]
},
{
"title": "Media Grid",
"description": "Media Grid Options",