How to fix the appearance of ScriptUI regardless of host application
Hi there,
I'm currently putting together a little in-depth ScriptUI for beginning scripting students.
I find UXP and CEP very difficult for them. jsx is the easiest to understand.
I have tested a 3x3 tiled arrangement of icon buttons on a dialog with code like this.
var dlg = "dialog{text:'" + app.name.replace(/^Adobe /, "") + "', orientation:'column', spacing:0, margins:[4,4,4,4], ";
for(var i = 0; i < 3; i++){
dlg += "G" + i + ":Group{orientation:'row', spacing:0, ";
for(var j = 0; j < 3; j++){
dlg += "B" + j + ":IconButton{size:[15,15], icon:'~/desktop/icon.png'},";
}
dlg += "}";
}
dlg += "}";
var win = new Window(dlg);
win.show();
Currently, the appearance transforms in various ways depending on the host application.
Perhaps AfterEffects and Premiere will have their own unique results.
2025

and 2023

Is there any way to unify the appearance on all applications?
My preferred result is InDesign 2023.
Best regards.

