is it possible to change the colors of buttons, progressbars etc. in dockable ui panel?
I found this on adobe forum, but I can't get it working for *panels*

Code: Select all
var win = new Window("palette", "New", undefined); //Creates window
var grp = win.add("group");
var but = grp.add("button", undefined, "TEST");
var winGfx = win.graphics;
var black = winGfx.newPen(winGfx.BrushType.SOLID_COLOR, [0,0,0], 1);
var blue = winGfx.newBrush(winGfx.BrushType.SOLID_COLOR, [0,.75,1], 1);
var green = winGfx.newBrush(winGfx.BrushType.SOLID_COLOR, [0,1,0], 1);
var red = winGfx.newBrush(winGfx.BrushType.SOLID_COLOR, [1,0,0], 1);
var yellow = winGfx.newBrush(winGfx.BrushType.SOLID_COLOR, [1,1,0], 1);
grp.graphics.backgroundColor = green; //Set group color
win.graphics.backgroundColor = red; //Set window color
win.center();
win.show();