Sub initTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
'Create a noticeably different theme each time this function is called.
theme.OverhangOffsetHD_X = itostr( RND(1000) )
theme.OverhangOffsetHD_Y = "25"
theme.OverhangSliceHD = "pkg:/images/Overhang_Background_HD.png"
theme.OverhangLogoHD = "pkg:/images/Overhang_Logo_HD.png"
app.SetTheme(theme)
print "Theme changed."
theme = invalid
app = invalid
End Sub
"RokuKevin" wrote:
Try calling the screen's .Show() method again after changing the theme to make it take effect.
--Kevin
"RokuKevin" wrote:
Try calling the screen's .Show() method again after changing the theme to make it take effect.
--Kevin
screen.SetFocusedListItem(i) ' where i was the current focused list item
screen.Show()
"TheEndless" wrote:
jbrave apparently accomplishes it in his Soundcloud app by showing and immediately hiding an roOneLineDialog (fast enough that it never actually draws, but causes the poster screen to redraw). That's more of a hack than a solution, really, but it could work in your situation if calling .Show() doesn't work.
Sub repaintScreen()
dialog = CreateObject("roOneLineDialog")
dialog.Show()
dialog.Close()
dialog = invalid
End Sub
"RokuKevin" wrote:
The "force repaint" behavior is an intended side effect for screen.Show().
I've filed a bug for this not working as expected.
--Kevin
"RokuKevin" wrote:
This issue has not been addressed in the upcoming v2.9 patch.
--Kevin
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!