diff --git a/.gitignore b/.gitignore index b0b4bd75..050005fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.svg +images/*.png +images/*.jpg jellyfin-roku.zip source/globals.brs diff --git a/components/Movies.xml b/components/Movies.xml index 32658502..2f146b7f 100644 --- a/components/Movies.xml +++ b/components/Movies.xml @@ -1,7 +1,6 @@ - + + diff --git a/components/Pager.xml b/components/Pager.xml index 236414ea..fbc89ffa 100644 --- a/components/Pager.xml +++ b/components/Pager.xml @@ -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) diff --git a/images/channel-poster_fhd.png b/images/channel-poster_fhd.png deleted file mode 100644 index 6ea1af86..00000000 Binary files a/images/channel-poster_fhd.png and /dev/null differ diff --git a/images/channel-poster_hd.png b/images/channel-poster_hd.png deleted file mode 100644 index 7481932e..00000000 Binary files a/images/channel-poster_hd.png and /dev/null differ diff --git a/images/channel-poster_sd.png b/images/channel-poster_sd.png deleted file mode 100644 index 3d3fdc58..00000000 Binary files a/images/channel-poster_sd.png and /dev/null differ diff --git a/images/splash-screen_fhd.jpg b/images/splash-screen_fhd.jpg deleted file mode 100644 index ace7443f..00000000 Binary files a/images/splash-screen_fhd.jpg and /dev/null differ diff --git a/images/splash-screen_hd.jpg b/images/splash-screen_hd.jpg deleted file mode 100644 index 9da8c93f..00000000 Binary files a/images/splash-screen_hd.jpg and /dev/null differ diff --git a/images/splash-screen_sd.jpg b/images/splash-screen_sd.jpg deleted file mode 100644 index d5902472..00000000 Binary files a/images/splash-screen_sd.jpg and /dev/null differ diff --git a/make_images.sh b/make_images.sh index 89311a4e..5292bfc3 100644 --- a/make_images.sh +++ b/make_images.sh @@ -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 diff --git a/source/HelperUtils.brs b/source/HelperUtils.brs index a5b33ce2..f2d48d53 100644 --- a/source/HelperUtils.brs +++ b/source/HelperUtils.brs @@ -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 diff --git a/source/api_userlibrary.brs b/source/api_userlibrary.brs new file mode 100644 index 00000000..81929a87 --- /dev/null +++ b/source/api_userlibrary.brs @@ -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