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: 
srbsdean
Visitor

Unfocused Button Text Color - Add Button

I am trying to figure out how to change the un-focused button text when a new button is added, such as "Resume Playing" or "Play from beginning." I have changed all the other text colors on the roSpringboardScreen but I can't figure out how to get this text color to change.

I am sure I need to add a line here with color information, but I can't seem to figure out the right variable:
 screen.ClearButtons()
if regread(show.contentid) <> invalid and regread(show.contentid).toint() >=30 then
screen.AddButton(1, "Resume playing")
screen.AddButton(2, "Play from beginning")
else
screen.addbutton(2,"Play")
end if
screen.SetContent(show)
screen.Show()


Please help!
Thanks!
0 Kudos
2 REPLIES 2
RokuChris
Roku Employee
Roku Employee

Re: Unfocused Button Text Color - Add Button

I think you want ButtonMenuNormalText

http://sdkdocs.roku.com/display/sdkdoc/roAppManager
0 Kudos
srbsdean
Visitor

Re: Unfocused Button Text Color - Add Button

Yes, that did it. I added a
theme.ButtonMenuNormalText = "#ffffff"
to my appMain.brs and it worked.

Thanks so much for your help!
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.