Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
NW5586
Level 7

changing bkg color

I'm trying to change the background color of my roku app.

I added the following line into the appMAIN.brs

Sub initTheme()
...
theme.BackgroundColor = #EBEBEB

app.SetTheme(theme)

End Sub


After running 'make' to zip the file when I try to side load it onto my roku I get the following error.
"Install Failure: Compilation Failed."

Where should I place the background color specification?

Thanks
0 Kudos
2 Replies
RokuMarkn
Level 7

Re: changing bkg color

The BackgroundColor value is a string so it must be in quotes:


theme.BackgroundColor = "#EBEBEB"


--Mark
0 Kudos
NW5586
Level 7

Re: changing bkg color

Perfect!

Thank you so much!
0 Kudos