Hi all,
just burnt an hour because documentation on THEME_COLOR was left as an exercise.
The following works with InDesign and Illustrator.
function main()
{
var palette = this.palette = new Window("""palette""");
var graphics = palette.graphics;
$.writeln("Brush:");
var colors = ["background","disabledBackground","selection","focusRing"];
while( colors.length ) {
var name = colors.pop();
$.writeln(name," = ",graphics.newBrush(graphics.BrushType.THEME_COLOR,name).color.toSource());
}
$.writeln();
$.writeln("Pen:");
var colors = ["foreground","disabledForeground","selection"];
while( colors.length ) {
var name = colors.pop();
$.writeln(name," = ",graphics.newPen(graphics.PenType.THEME_COLOR,name,1).color.toSource());
}
$.writeln();
}
main();
Regards,
Dirk