Skip to main content
Inspiring
April 28, 2023
Answered

Paul-Riggott's DIY Metadata script -- colors of dialogue box hard to read

  • April 28, 2023
  • 4 replies
  • 743 views

I have figured out how to use the Bridge script to bring metadata into a file using this script:

https://github.com/Paul-Riggott/PS-Scripts/blob/master/DIY%20Metadata.jsx

 

but the formatting of the dialog box is such that it is difficult to read. The background is white and the type is light gray. Where do I tweak the code to adjust this?

 

Mac OSX Bridge 2023 

screenshot of dialogue box attached

Thanks

Ron

 

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer gregreser

If you are okay with the default grey background, add two forward slashes( // ) in front of this line to disable the color.

win.graphics.backgroundColor = win.graphics.newBrush(win.graphics.BrushType.SOLID_COLOR, [1.00, 1.00, 1.00, 1]);

4 replies

Stephen Marsh
Community Expert
Community Expert
April 29, 2023

@ront88495709 

 

You can try commenting out // or deleting the var myBrush line:

 

// var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);

 

Or changing the values:

 

var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.2, 0.2, 0.2, 1]);

 

However, my current preferred method is:

 

var myBrush = g.newBrush(g.BrushType.THEME_COLOR, "appDialogBackground");

 

Have fun! 

Inspiring
May 1, 2023

Thanks for the advice -- worked great

 

gregreser
gregreserCorrect answer
Legend
April 29, 2023

If you are okay with the default grey background, add two forward slashes( // ) in front of this line to disable the color.

win.graphics.backgroundColor = win.graphics.newBrush(win.graphics.BrushType.SOLID_COLOR, [1.00, 1.00, 1.00, 1]);

Inspiring
May 1, 2023

Thanks gregreser for the simple fix

Both your and Stephen_A_Marsh's answers worked perfectly!