3

In Roku BrightScript, is there any way to change the background color of popup dialogs such as roMessageDialog to a dark blue color, instead of the default gray?

It is possible to change the text color through the attributes DialogBodyText and DialogTitleText in roAppManager, but I don't see any way to change the background color.

Setting ThemeType to generic-dark also appears to have some effect, but only allows switching between light gray and dark gray.

Pieter Siekerman
  • 461
  • 3
  • 14

3 Answers3

2

Received the following answer at the Roku developer forum:

"No, there is just the standard and the "dark" theme for these. You might consider creating your own pop-up dialog with roImageCanvas."

Pieter Siekerman
  • 461
  • 3
  • 14
1

You can use roImageCanvas or roScreen to create the pop-up of your choice.

Abhishek
  • 3,304
  • 4
  • 30
  • 44
  • I am not sure if any source code is available on internet which demonstrates this. But I have created it a lot of times. It works fine for me. – Abhishek Jul 22 '15 at 11:01
  • I experimented with roImageCanvas and that indeed appears the easiest way to achieve this. An [introduction](https://blog.roku.com/developer/2012/09/29/creating-custom-brightscript-uis-with-image-canvas/) is available at the Roku Developer Blog. – Pieter Siekerman Aug 20 '15 at 10:59
0

You can use custom scene graph dialog. https://developer.roku.com/docs/references/scenegraph/standard-dialog-framework-nodes/standard-dialog.md

Vijay Kumar
  • 141
  • 1
  • 13