alexboyer
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2017
06:02 PM
Change focusedIconUri color
Is there a way to alter the color tint for the focusedIconUri parameter of the Scene Graph Button node? It applies a dark grey tint to the icon when the button has focus and it's clashing with our designs.
The documentation doesn't list any way to override this. I'm hoping that's just a simple oversight.
The button markup itself is pretty straightforward:
Thanks in advance.
The documentation doesn't list any way to override this. I'm hoping that's just a simple oversight.
The button markup itself is pretty straightforward:
<Button
textColor="0xFFFFFFFF"
focusedTextColor="0xFFFFFFFF"
height="60"
minWidth="150"
iconUri = "pkg:/images/Button_Icon_General.png"
focusedIconUri = "pkg:/images/Button_Icon_General.png"
>
<Label
height="60"
width="150"
text="On"
horizAlign="center"
vertAlign="center"
color="0xFFFFFFFF"
/>
</Button>
Thanks in advance.
3 REPLIES 3
philotas
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2019
08:13 AM
Re: Change focusedIconUri color
Hello!
Did you ever figure out how to do this?
Did you ever figure out how to do this?

speechles
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2019
08:28 AM
Re: Change focusedIconUri color
<button id="idMyButton" ... >
...
</button>
button = m.top.findnode("idMyButton")
button.opacity = 0.8
Give the button an id in the XML you can lookup in the brightscript code. Then assign it an opacity.
That will basically act like the missing "blendcolor" you are looking for.
...
</button>
button = m.top.findnode("idMyButton")
button.opacity = 0.8
Give the button an id in the XML you can lookup in the brightscript code. Then assign it an opacity.
That will basically act like the missing "blendcolor" you are looking for.
Janczak
Newbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022
01:47 AM
Re: Change focusedIconUri color
I see this is an old post, but i found solution for this so here you go 🙂
Icons are the children of the button so you just need to find them and remove the blendcolor parameter from them:
button = m.top.findNode("myButton") button.getChild(4).blendColor = -1 ' 4 is a button focused icon poster