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

OverhangSecondaryLogoHD will not display...

I am pulling my hair out trying to get the secondary logo to show up on any screen. I even took the sample "paragraph" app which comes with the SDK.

I modified the initThem() function as shown below. The changes I made to the position of the primary logo worked. But adding the secondary logo does nothing. No matter what I do, it refuses to display.

Does anyone have any example of a secondary logo showing? Is this actually working, or is it a bug?


Sub initTheme()

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

theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

'commented this section out
'theme.OverhangOffsetHD_X = "123"
'theme.OverhangOffsetHD_Y = "48"
'theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
'theme.OverhangLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

'adding new section here
theme.OverhangPrimaryLogoOffsetHD_X = "123"
theme.OverhangPrimaryLogoOffsetHD_Y = "78" 'primary logo shows up in new Y position
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangPrimaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

theme.OverhangSecondaryLogoOffsetHD_X = "323" 'secondary logo does not show up
theme.OverhangSecondaryLogoOffsetHD_Y = "48"
theme.OverhangSecondaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"
'end of new section

app.SetTheme(theme)

End Sub
0 Kudos
15 REPLIES 15
TheEndless
Channel Surfer

Re: OverhangSecondaryLogoHD will not display...

I'm pretty sure you have to define both an HD and SD logo. Try adding an OverhangSecondaryLogoSD as well, and see if that works.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
roquoonewbie
Visitor

Re: OverhangSecondaryLogoHD will not display...

No dice:


Sub initTheme()

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

theme.OverhangPrimaryLogoOffsetSD_X = "72"
theme.OverhangPrimaryLogoOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangPrimaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangSecondaryLogoOffsetSD_X = "123"
theme.OverhangSecondaryLogoOffsetSD_Y = "25"
theme.OverhangSecondaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangPrimaryLogoOffsetHD_X = "123"
theme.OverhangPrimaryLogoOffsetHD_Y = "78"
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangPrimaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

theme.OverhangSecondaryLogoOffsetHD_X = "323"
theme.OverhangSecondaryLogoOffsetHD_Y = "48"
theme.OverhangSecondaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

app.SetTheme(theme)

End Sub
0 Kudos
belltown
Roku Guru

Re: OverhangSecondaryLogoHD will not display...

Could it be that one logo is overlapping the other, overwriting it so that you only see the first logo? For example the file, Logo_Overhang_Roku_SDK_SD43.png in the sample paragraph app is 149x45 pixels. You're placing the primary logo at x=72, so it will extend from x=72 to x=221 (149+72). Then you're placing the secondary logo at x=123, which is in the display area of the primary logo. Try resizing the images or placing them so they don't overlap.
0 Kudos
roquoonewbie
Visitor

Re: OverhangSecondaryLogoHD will not display...

Still no dice:



Sub initTheme()

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

theme.OverhangPrimaryLogoOffsetSD_X = "72"
theme.OverhangPrimaryLogoOffsetSD_Y = "25"
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png"
theme.OverhangPrimaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangSecondaryLogoOffsetSD_X = "250"
theme.OverhangSecondaryLogoOffsetSD_Y = "25"
theme.OverhangSecondaryLogoSD = "pkg:/images/Logo_Overhang_Roku_SDK_SD43.png"

theme.OverhangPrimaryLogoOffsetHD_X = "123"
theme.OverhangPrimaryLogoOffsetHD_Y = "78"
theme.OverhangSliceHD = "pkg:/images/Overhang_BackgroundSlice_Blue_HD.png"
theme.OverhangPrimaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

theme.OverhangSecondaryLogoOffsetHD_X = "375"
theme.OverhangSecondaryLogoOffsetHD_Y = "48"
theme.OverhangSecondaryLogoHD = "pkg:/images/Logo_Overhang_Roku_SDK_HD.png"

app.SetTheme(theme)

End Sub
0 Kudos
roquoonewbie
Visitor

Re: OverhangSecondaryLogoHD will not display...

Does anyone have an example of an initTheme() function that displays a secondary logo?
0 Kudos
jbrave
Channel Surfer

Re: OverhangSecondaryLogoHD will not display...

I think this one of mine works for that purpose:

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

'the background image at top of screen
theme.OverhangSliceSD = "pkg:/images/Overhang_Background_SD.jpg"
theme.OverhangSliceHD = "pkg:/images/Overhang_Background_HD.jpg"

theme.OverhangLogoSD = "pkg:/images/Overhang_Logo_SD.png"
theme.OverhangLogoHD = "pkg:/images/Overhang_Logo_HD.png"

'affects overhang primary logo
theme.OverhangOffsetSD_X = "0"
theme.OverhangOffsetSD_Y = "0"
theme.OverhangOffsetHD_X = "0"
theme.OverhangOffsetHD_Y = "0"


theme.OverhangPrimaryLogoHD_X="0"
theme.OverhangPrimaryLogoHD_Y="0"

theme.OverhangPrimaryLogoSD_X="0"
theme.OverhangPrimaryLogoSD_Y="0"


theme.OverhangSecondaryLogoHD_X="0"
theme.OverhangSecondaryLogoHD_Y="0"

theme.OverhangSecondaryLogoSD_X="0"
theme.OverhangSecondaryLogoSD_Y="0"

theme.overhangSecondaryLogoSD="pkg:/images/Overhang_Logo_SD.png"
theme.overhangSecondaryLogoHD="pkg:/images/Overhang_Logo_HD.png"

theme.filterbannerSliceSD="pkg:/images/overhangsliceSD.jpg"
theme.filterbannerSliceHD="pkg:/images/overhangsliceHD.jpg"

theme.BackgroundColor="#101010"

theme.FilterBannerInactiveColor="#A0A0A0" '111111
theme.FilterBannerActiveColor ="#D0D0D0"
theme.FilterBannerSideColor="#F0F0F0" 'color of not-selected active banner

theme.FilterBannerActiveSD="pkg:/images/buttonSliceSD.jpg"
theme.FilterBannerActiveHD="pkg:/images/buttonSliceHD.jpg"
theme.FilterBannerinActiveSD="pkg:/images/buttonsliceSD.jpg"
theme.FilterBannerinActiveHD="pkg:/images/buttonsliceHD.jpg"

'theme.ButtonNormalColor="#FFFFFF"
'theme.buttonmenuhighlighttext="#F0F0F0"
'theme.ButtonHighlightColor="#005aaf"
'theme.ButtonMenuNormalOverlayText="#F0F0F0"
'theme.PosterScreenLine1Text="#000000"
'theme.PosterScreenLine2Text="#000000"
theme.ButtonMenuNormalText="#e6e6e6"
theme.breadcrumbtextleft="#000000"
theme.breadcrumbtextright="#000000"

theme.OverhangPrimaryLogoOffsetHD_x="0"
theme.OverhangPrimaryLogoOffsetHD_y="0"
theme.OverhangPrimaryLogoOffsetSD_x="0"
theme.OverhandPrimaryLogoOffsetSD_y="0"

theme.OverhangSecondaryLogoOffsetHD_X="0"
theme.OverhangSecondaryLogoOffsetHD_Y="0"

theme.OverhangSecondaryLogoOffsetSD_X="0"
theme.OverhangSecondaryLogoOffsetSD_Y="10"


app.SetTheme(theme)
end sub
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
roquoonewbie
Visitor

Re: OverhangSecondaryLogoHD will not display...

Thanks for posting that code...but does it really work?

ie: does it actually display both your primary and secondary logos on the TV screen?

I ask because it looks like you are setting the x and y coords to be the same for both the primary and secondary logos, so I don't see how it is possible they can both show up (because they are right on top of each other).

There are also a lot of properties being set in your code which dont' seem to exist in the documentation. For instance:

OverhangPrimaryLogoHD_X and OverhangPrimaryLogoHD_Y are not defined as properties in the Component Reference guide...what are they for?
0 Kudos
roquoonewbie
Visitor

Re: OverhangSecondaryLogoHD will not display...

I think there is a documentation issue here. Even the sample code in the component reference guide is setting theme attributes which are not defined in the document.

Specifically, this sample code in the document:

theme.OverhangOffsetSD_X = "72"
theme.OverhangOffsetSD_Y = "25"

theme.OverhangOffsetHD_X = "123"
theme.OverhangOffsetHD_Y = "48"

Is setting attributes which do not exist anywhere else in the document.

Can someone from Roku please comment on what the proper attribute names are to configure a theme to display a secondary logo (and if there are any specific restrictions on what must be done for it to display)?
0 Kudos
roquoonewbie
Visitor

Re: OverhangSecondaryLogoHD will not display...

Anyone out there?
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.