Add jellyfin logo to overhang
This commit is contained in:
parent
24bb830a96
commit
58f985bc06
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
*.svg
|
||||
images/*.png
|
||||
images/*.jpg
|
||||
jellyfin-roku.zip
|
||||
source/globals.brs
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<component name="Movies" extends="Scene">
|
||||
<children>
|
||||
<Pager id="pager" />
|
||||
<MovieRow
|
||||
id="MovieSelect"
|
||||
visible="true"
|
||||
|
@ -10,5 +9,7 @@
|
|||
id="overhang"
|
||||
title="Movies"
|
||||
/>
|
||||
<Rectangle id="footBackdrop" />
|
||||
<Pager id="pager" />
|
||||
</children>
|
||||
</component>
|
||||
|
|
|
@ -57,7 +57,8 @@
|
|||
sub updateLayout()
|
||||
dimensions = m.top.getScene().currentDesignResolution
|
||||
width = m.top.getChildCount() * 50
|
||||
m.top.translation = [(dimensions.width - width) / 2, dimensions.height - 200]
|
||||
|
||||
m.top.translation = [(dimensions.width - width) / 2, dimensions.height - 83]
|
||||
end sub
|
||||
|
||||
sub addPage(i)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 171 KiB |
Binary file not shown.
Before Width: | Height: | Size: 62 KiB |
Binary file not shown.
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
Before Width: | Height: | Size: 41 KiB |
Binary file not shown.
Before Width: | Height: | Size: 21 KiB |
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
|
@ -18,6 +18,9 @@ convert -background "#000b25" -gravity center -scale 350x350 -extent 540x405 $IC
|
|||
convert -background "#000b25" -gravity center -scale 190x190 -extent 290x218 $ICON_SOURCE $OUTPUT_DIR/channel-poster_hd.png
|
||||
convert -background "#000b25" -gravity center -scale 140x140 -extent 214x144 $ICON_SOURCE $OUTPUT_DIR/channel-poster_sd.png
|
||||
|
||||
# Overhang icon
|
||||
convert -background none -gravity center -scale 1000x48 -extent 180x48 $BANNER_SOURCE $OUTPUT_DIR/logo.png
|
||||
|
||||
# Splash screens
|
||||
convert -background "#000b25" -gravity center -scale 540x540 -extent 1920x1080 $BANNER_SOURCE $OUTPUT_DIR/splash-screen_fhd.jpg
|
||||
convert -background "#000b25" -gravity center -scale 360x360 -extent 1280x720 $BANNER_SOURCE $OUTPUT_DIR/splash-screen_hd.jpg
|
||||
|
|
|
@ -12,6 +12,21 @@ function getMsgRowTarget(msg) as object
|
|||
end function
|
||||
|
||||
sub themeScene(scene)
|
||||
dimensions = scene.currentDesignResolution
|
||||
scene.backgroundColor = "#101010"
|
||||
scene.backgroundURI = ""
|
||||
|
||||
footer_background = scene.findNode("footerBackdrop")
|
||||
if footer_background <> invalid
|
||||
footer_background.color = scene.backgroundColor
|
||||
footer_background.width = dimensions.width
|
||||
footer_background.height = 115
|
||||
footer_background.translation = [0, dimensions.height - 115]
|
||||
end if
|
||||
|
||||
overhang = scene.findNode("overhang")
|
||||
if overhang <> invalid
|
||||
overhang.logoUri = "pkg:/images/logo.png"
|
||||
end if
|
||||
|
||||
end sub
|
||||
|
|
5
source/api_userlibrary.brs
Normal file
5
source/api_userlibrary.brs
Normal file
|
@ -0,0 +1,5 @@
|
|||
function MarkItemFavorite(id as String)
|
||||
url = Substitute("Users/{0}/FavoriteItems/{1}", get_setting("active_user"), id)
|
||||
resp = APIRequest(url)
|
||||
return postJson(resp)
|
||||
end function
|
Loading…
Reference in New Issue
Block a user