Skip to content

Commit

Permalink
add blurred background image to NTunes
Browse files Browse the repository at this point in the history
  • Loading branch information
rorpage committed Sep 15, 2019
1 parent 434c2a7 commit 174255e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions components/NTunesScene.brs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ function setUpLabels() as void
m.current_track_title = m.top.findNode("current_track_title")
m.current_track_artist_name = m.top.findNode("current_track_artist_name")
m.current_show_name = m.top.findNode("current_show_name")

m.current_show_image_path = m.top.findNode("current_show_image_path")
m.background = m.top.findNode("background")

m.audio_indicator = m.top.findNode("audio_indicator")
end function
Expand Down Expand Up @@ -77,4 +79,5 @@ sub onCurrentInfoChanged()
m.current_track_artist_name.text = current_info.current_track_artist_name
m.current_show_name.text = current_info.current_show_name
m.current_show_image_path.uri = current_info.current_show_image_path
m.background.uri = current_info.current_show_image_path
end sub
16 changes: 11 additions & 5 deletions components/NTunesScene.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
<component name="NTunesScene" extends="SGDEXComponent" xsi:noNamespaceSchemaLocation="https://devtools.web.roku.com/schema/RokuSceneGraph.xsd" initialFocus="audio_control_button">
<script type="text/brightscript" uri="pkg:/components/NTunesScene.brs" />
<children>
<Poster id="background"
loadHeight="10.8"
loadWidth="19.2"
height="1080"
width="1920"
loadDisplayMode="scaleToFill" />
<Poster
id="current_show_image_path"
width="500"
height="500"
translation="[710, 100]" />
<Label id="title"
text="Now Playing"
color="0xFFFFFFFF"
Expand All @@ -13,11 +24,6 @@
size="30"
/>
</Label>
<Poster
id="current_show_image_path"
width="500"
height="500"
translation="[710, 100]" />
<LayoutGroup translation="[0, 650]">
<Label id="current_show_name"
color="0xFFFFFFFF"
Expand Down

0 comments on commit 174255e

Please sign in to comment.