Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
NW5586
Visitor

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 2
RokuMarkn
Visitor

Re: changing bkg color

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


theme.BackgroundColor = "#EBEBEB"


--Mark
0 Kudos
NW5586
Visitor

Re: changing bkg color

Perfect!

Thank you so much!
0 Kudos