Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
btpoole
Channel Surfer

Disable or Change roSpringboard Overhang

I am using the videoplayer example code for the springboard in a simple channel. My main screen is a grid that goes to a springboard screen when a video is selected. My main screen has a particular company logo at the top left corner along with a overhang color. When I go to the springboard screen my logo and overhang is replaced by a  blue banner across the top. I have looked thru out the code of the springboard and see no where to set or change the element.  I am setting its attributes by the following

                                                     item= { 
                     
                                                      SDPosterUrl:logoName
                                                      HDPosterUrl:logoName
                                                     Stream: streamName
                                                     Title: chanName
                                                     exten: extName
                                                        }
                                                   showSpringboardScreen(item)

Once called it enters the following
Function showSpringboardScreen(item as object) As Boolean
    port = CreateObject("roMessagePort")
    screen = CreateObject("roSpringboardScreen")
    print "showSpringboardScreen"
    screen.SetMessagePort(port)
    screen.AllowUpdates(false)
    if item <> invalid and type(item) = "roAssociativeArray"
        screen.SetContent(item)
    endif
    screen.SetDescriptionStyle("generic") 
    screen.ClearButtons()
    screen.AddButton(1,"Play")
    screen.AddButton(2,"Go Back")
    screen.AddButton(3,"Add Favorite")
    screen.SetStaticRatingEnabled(false)
    screen.AllowUpdates(true)
    screen.Show()
downKey=3
    selectKey=6
    while true
        msg = wait(0, screen.GetMessagePort())
        if type(msg) = "roSpringboardScreenEvent"
            if msg.isScreenClosed()
print "Screen closed"
                exit while                
            else if msg.isButtonPressed()
                    print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
                    if msg.GetIndex() = 1 'PLAY STREAM
                      playcontent (item.stream, item.chanName, item.exten)   'SEND INFO TO PLAYER
 
                    else if msg.GetIndex() = 2
return true
                         endif


                    
            else
closeout()
                print "Unknown event: "; msg.GetType(); " msg: "; msg.GetMessage()
            endif
        else 
            print "wrong type.... type=";msg.GetType(); " msg: "; msg.GetMessage()
        endif
    end while


    return true
End Function 

Not really seeing where the blue banner stripe across the top is coming from.
Tags (1)
0 Kudos
4 REPLIES 4
RokuKC
Roku Employee
Roku Employee

Re: Disable or Change roSpringboard Overhang

It sounds like GridScreenOverhangSlice[HD|SD] + GridScreenLogo[HD|SD] theme attributes are being set in the app to theme the roGridScreen, but not the corresponding OverhangSlice[HD|SD] and OverhangPrimaryLogo[HD|SD] theme attributes (which are used for roSpringboardScreen et al). Or the values don't point to valid/existing assets.
Tags (1)
0 Kudos
btpoole
Channel Surfer

Re: Disable or Change roSpringboard Overhang

Yes that's what it looks to be doing. My confusion is that my initial theme setup uses a black backgroud color and logo. I don't have the banner stripe or the blue color called anywhere.

app = CreateObject("roAppManager")

    secondaryText    = "#FFED6D"
    primaryText      = "#FFED6D"
    buttonText       = "#C0C0C0"
    buttonHighlight  = "#ffffff"
    backgroundColor  = "#000000"

    theme = {
        BackgroundColor: backgroundColor
        GridScreenOverhangSliceHD: "pkg:/images/roku-app-overhang.png"
        GridScreenOverhangSliceSD: "pkg:/images/roku-app-overhang.png"
        GridScreenOverhangLogoHD: ""
        GridScreenOverhangLogoSD: ""
        GridScreenOverhangOffsetSD_X: "230"
        GridScreenOverhangOffsetSD_Y: "72"
        GridScreenOverhangOffsetHD_X: "230"
        GridScreenOverhangOffsetHD_Y: "72"
        BreadcrumbTextLeft: "#FFED6D"
        BreadcrumbTextRight: "#FFED6D"
        BreadcrumbDelimiter: "#FFED6D"
        ThemeType: "generic-dark"
        ListItemText: secondaryText
        ListItemHighlightText: primaryText
        ListScreenDescriptionText: secondaryText
        ListItemHighlightHD: "pkg:/images/selected-bg.png"
        ListItemHighlightSD: "pkg:/images/selected-bg.png"
        
    }
Tags (1)
0 Kudos
joetesta
Roku Guru

Re: Disable or Change roSpringboard Overhang

Must be some kind of default - did you try specifying the OverhangSlice[HD|SD] and OverhangPrimaryLogo[HD|SD] ?
You can update your theme as the app enters and exits screens so that different screens have different themes.
aspiring
Tags (1)
0 Kudos
btpoole
Channel Surfer

Re: Disable or Change roSpringboard Overhang

Will try that next. Thanks for idea.
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

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. You will not be able to log in or post new comments or kudos 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 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!