Roku Developer Program

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

Runtime theme changes?

Hi Roku friends,

Is it possible to change some theme parameter in runtime?
What i mean, some properties for GridScreen description bubble are the beginning when the application is initializing but depending on some media types and reusing existing grid screen i want to change grid screen description bubble size and position in runtime?
One solution and i think not very good solution would be to create one object that will keep instance of roAppManager and also will keep associative array with theme properties and that object i would set as global so it will available from every active screen. Is that ok or i should reconsider different approach?

0 Kudos
1 REPLY 1\
Roku Employee
Roku Employee

Re: Runtime theme changes?

Yes, you can change theme attributes at any time.

It's important to remember that theme attributes only apply to screens you create after those attributes are set. Screens that are already open will not update to reflect theme changes.
0 Kudos