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

Change the color of text on The Videoplayer example

Hi can some one please point me in the direction on how to change the color of the text
currently the text is in the default color of white or light grey.
I managed to add the code to change the background color but I dont see where to put the code for the text color
any help would be much apprecated.
Cheers
DEW
0 Kudos
6 REPLIES 6
RokuJoel
Binge Watcher

Re: Change the color of text on The Videoplayer example

See the list of theme attributes in the Table: Theme Attributes in the Component reference for a list of parameters like that, there are several different places where you might want to change the text color.

- Joel
0 Kudos
dew
Visitor

Re: Change the color of text on The Videoplayer example

Hi Sorry I have been looking can you please show me where in the code "using the videopayer example" where i can change the color of the the font on the detail page of movie "where the 5 star rating is " I can not find it and I am assuming that the font colours are coming from a default value somewhere. I just need to change te colour of the movie title and the text on the page but I can not find it. Any help would be much appreacated.
Cheers
DEW
0 Kudos
RokuJoel
Binge Watcher

Re: Change the color of text on The Videoplayer example

Do you mean the Genre field, which is immediately above the description of the video, on the far left underneath the picture on the Springboard screen, or do you mean the color of the text that is next to each button, such as play, resume, etc?

- Joel
0 Kudos
dew
Visitor

Re: Change the color of text on The Videoplayer example

Hi yes I need to change all of the text on that page I have set the background color to theme.BackgroundColor = "#006699"
the current text is in a light grey color and the titles are in a dark gray I need the titles to be in dark blue and the text to be in white but also I need the play and resume button text color to be blue the the "roll over " can stay the way it is I hope this makes sence and thank you for your help
Cheers
DEW
0 Kudos
RokuKevin
Visitor

Re: Change the color of text on The Videoplayer example

Here's how to change the text labels and font colors on the Springboard page:

theme.SpringboardTitleText = "#FF0000"
theme.SpringboardDirectorLabelColor = "#0000FF"
theme.SpringboardDirectorText = "Written by"
theme.SpringboardRuntimeColor ="FF00FF"

theme.SpringboardActorColor = "#FF0000"
theme.SpringboardRuntimeColor = "#FF0000"
theme.SpringboardGenreColor = "#FF0000"

--Kevin
0 Kudos
dew
Visitor

Re: Change the color of text on The Videoplayer example

Hi Kevin thanks for that I have a couple of questions I seemed to cant get my head around. First of all I am not a Programmer I just build web pages so here goes
This is all I need to do before I can publish my channel
1. Using the Videoplayer example I need to add the following fields both in the sorce code and in the XML
a. Director
b. rating ( I believe this is a image do I need to supply or is it in the Roku box?)
c. Categories 1
d. Categories 2
e. release date
f. change the color of text on the Play and Resume Play un-focused buttton at the moment it is grey when not selected I need it to be white(#ffffff)
g. and somehow get the 4 line of text (250 ch) for the synopsis ( description) at the monent I only get 2 lines and ... at the end.

here is my xml file with everything in it but the ratings not sure how to add that.
<item sdImg="location of image" hdImg="location of image">
<title>Movie title</title>
<contentId>10011</contentId>
<contentType>Classic Film</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>location of video</streamUrl>
</media>
<synopsis>description of film</synopsis>
<genres>Classic Film</genres> THIS FIELD IS ACTUALLY ACTORS ON THE roSpringboard
<runtime>7200</runtime>
<releasedate></releasedate> Need to add this
<rating></rating> Need to add this but I believe it is a image?
<Director></Director> Need to add this
<category1></category1>Need to add this
<category2></category2>Need to add this
</item>


here is my appMain.brs info

theme.BreadcrumbTextLeft = "#003366"
theme.BreadcrumbTextRight = "#003366"
theme.SpringboardActorColor = "#FFFFFF"
theme.BackgroundColor = "#006699"
theme.SpringboardRuntimeColor = "#003366"
theme.SpringboardSynopsisColor = "#ffffff"
theme.SpringboardGenreColor = "#000000"
theme.SpringboardTitleText = "#003366"

theme.SpringboardReleaseDateColor = "#ffffff"
theme.SpringboardDirectorText = "Written by"
theme.SpringboardDirectorLabelColor = "#0000FF"
theme.SpringboardDirectorColor = "#ffffff"

theme.PosterScreenLine1Text = "#ffffff"
theme.PosterScreenLine2Text = "#ffffff"


and here is my showfeed.brs
Function init_show_feed_item() As Object
o = CreateObject("roAssociativeArray")

o.ContentId = ""
o.Title = ""
o.ContentType = ""
o.ContentQuality = ""
o.Synopsis = ""
o.Genre = ""
o.ReleaseDate = ""
o.Director = ""
o.Runtime = ""
o.category1 = ""
o.category2 = ""

o.StreamQualities = CreateObject("roArray", 5, true)
o.StreamBitrates = CreateObject("roArray", 5, true)
o.StreamUrls = CreateObject("roArray", 5, true)

return o
End Function


and I believe they go here to
Function parse_show_feed(xml As Object, feed As Object) As Void

showCount = 0
showList = xml.GetChildElements()

for each curShow in showList

'for now, don't process meta info about the feed size
if curShow.GetName() = "resultLength" or curShow.GetName() = "endIndex" then
goto skipitem
endif

item = init_show_feed_item()

'fetch all values from the xml for the current show
item.hdImg = validstr(curShow@hdImg)
item.sdImg = validstr(curShow@sdImg)
item.ContentId = validstr(curShow.contentId.GetText())
item.Title = validstr(curShow.title.GetText())
item.Description = validstr(curShow.description.GetText())
item.ContentType = validstr(curShow.contentType.GetText())
item.ContentQuality = validstr(curShow.contentQuality.GetText())
item.Synopsis = validstr(curShow.synopsis.GetText())
item.Genre = validstr(curShow.genres.GetText())
item.Director = validstr(curShow.director.GetText())
item.ReleaseDate = validstr(curShow.releasedate.GetText())
item.Runtime = validstr(curShow.runtime.GetText())
item.HDBifUrl = validstr(curShow.hdBifUrl.GetText())
item.SDBifUrl = validstr(curShow.sdBifUrl.GetText())
item.StreamFormat = validstr(curShow.streamFormat.GetText())
if item.StreamFormat = "" then 'set default streamFormat to mp4 if doesn't exist in xml
item.StreamFormat = "mp4"
endif


Basicly I need to match my xml file so that it can display the info in it on the roSpringboard page so I can display them.
It would be nice if the videoplayer example had all of the data in it so you could turn on or turn off what you did not need or so you could see how it was added

Thanks in advance for your help I'm just stuck at the moment
Cheers
DEW
0 Kudos