FlatTheme Title Bar Color

Hi,
I’m trying to set the background and foreground colors on a FlatTheme Title bar. I think i need to do something like the following.

FlatTheme theme = new FlatTheme();
FlatColorScheme scheme = new FlatColorScheme();
scheme.setColor(“Some String Value”, Color.RED);
scheme.setColor(“Some String Value”, Color.RED);
theme.setColorScheme(scheme);
controller.setTheme(new NoStackTheme(theme));

i don’t know where to find the list of keys to use in the setColor function.Am I on the right track here.

Thanks

IMHO the title is a “BasicDockTitle”, and you find the keys in the documentation here. The keys are “title.{one of inactive/active}.{one of left/right/text}”, e.g. “title.active.left”.

Your code should work, however it might be easier to access the ColorManager directly (“DockController.getColors()”) and call the put method there.

Thanks, i used ColorManager and it worked great!