• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

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

 

TOPICS
Keywords , Metadata , Problem or error , Scripting

Views

223

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 28, 2023 Apr 28, 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]);

Votes

Translate

Translate
Community Expert ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

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]);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 01, 2023 May 01, 2023

Copy link to clipboard

Copied

Thanks gregreser for the simple fix

Both your and Stephen_A_Marsh's answers worked perfectly!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 28, 2023 Apr 28, 2023

Copy link to clipboard

Copied

@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! 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 01, 2023 May 01, 2023

Copy link to clipboard

Copied

LATEST

Thanks for the advice -- worked great

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines