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

Problem with button colors

I have set roAppManager theme as below. When I sideload the app, the keyboard buttons and buttons on the closed caption box appears correctly -- white. However, when the channel is loaded from the store as a private channel, the text of the highlighted button is now the background color. Any ideas why the difference?

app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")

appInfo = CreateObject("roAppInfo")
if appInfo.GetValue("background_color") = "" then
theme.BackgroundColor = "#191516"
else
theme.BackgroundColor = appInfo.GetValue("background_color")
endif

if appInfo.GetValue("listItemText") = "" then
theme.ListItemText = "#FFFFFF"
else
theme.ListItemText = appInfo.GetValue("listItemText")
endif

if appInfo.GetValue("listItemHighlight") = "" then
theme.ListItemHighlightText = "#FFFFFF"
else
theme.ListItemHighlightText = appInfo.GetValue("listItemHighlight")
endif

if appInfo.GetValue("BreadCrumbColor") <> "" then
theme.BreadcrumbTextLeft = appInfo.GetValue("BreadCrumbColor")
theme.BreadcrumbTextRight = appInfo.GetValue("BreadCrumbColor")
endif

if appInfo.GetValue("GridScreenColor") <> "" then
theme.GridScreenBackgroundColor = appInfo.GetValue("GridScreenColor")
theme.GridScreenListNameColor = appInfo.GetValue("GridScreenColor")
else
theme.GridScreenBackgroundColor = "#000000"
theme.GridScreenListNameColor = "#000000"
end if
theme.FilterBannerActiveColor = "#17284d"
theme.FilterBannerInactiveColor = "#ffffff"
theme.FilterBannerSideColor = "#ffffff"
theme.FilterBannerSliceHD = "pkg:/images/filter-banner_HD.png"
theme.FilterBannerActiveHD = "pkg:/images/filter-button-select_HD.png"
theme.FilterBannerInactiveHD = "pkg:/images/filter-button-inactive_HD.png"
theme.PosterScreenLine1Text = "#ffffff"
theme.SpringboardTitleText = "#ffffff"
theme.SpringboardRuntimeColor = "#ffffff"
theme.SpringboardSynopsisColor = "#ffffff"
theme.ButtonHighlightColor = "#ffffff"
theme.ButtonNormalColor = "#ffffff"
theme.ButtonMenuNormalText = "#ffffff"
theme.ButtonMenuNormalOverlayText = "#ffffff"
theme.ButtonMenuHighlightText = "#ffffff"
theme.GridScreenFocusBorderHD = "pkg:/images/grid_selection.png"
theme.GridScreenBorderOffsetHD = "(-5,-5)"
theme.ListItemHighlightHD = "pkg:/images/list_item_highlight_HD.png"
theme.OverhangSliceSD = "pkg:/images/Overhang_Background_SD.png"
theme.GridScreenOverhangSliceSD = "pkg:/images/Overhang_Background_SD.png"
theme.GridScreenOverhangHeightSD = "85"
theme.OverhangSliceHD = "pkg:/images/Overhang_Background_HD.png"
theme.GridScreenOverhangSliceHD = "pkg:/images/Overhang_Background_HD.png"
theme.GridScreenOverhangHeightHD = "125"
app.SetTheme(theme)
0 Kudos
2 REPLIES 2
joetesta
Roku Guru

Re: Problem with button colors

You'll probably need to do some debugging (change colors / alter items to see what's going where) but I wonder if it could be "ListItemHighlightHD" missing from your packaged app?
http://forums.roku.com/viewtopic.php?p=458776
aspiring
0 Kudos
twarner
Visitor

Re: Problem with button colors

It was the missing ListItemHighlightSD that was not defined. Thanks for point that out. I would have never guess that in a million years since the screens involved weren't list screens. Problem solves!
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.