Copy link to clipboard
Copied
Hi.
Is it possible to get the value as a percentage, for the colour theme in the preference?
I need this as some of my script windows contain icons that i need to swich if the interface is light/dark.
Thanks in advance.
Roy
app.generalPreferences.uiBrightnessPreference = 100
Peter
Copy link to clipboard
Copied
app.generalPreferences.uiBrightnessPreference = 100
Peter
Copy link to clipboard
Copied
Thanks Peter.
I do try to look before posting, and i saw the preferences object, and didn't find it there. Didn't know it was the generalPreferences.
Oh, if anyone else is interested, it is a value from 0 - 1, so 50% is 0.5.
Thanks again Peter.
Roy
Copy link to clipboard
Copied
@Roy – all documented in Marc Autret's:
http://www.indiscripts.com/post/2013/06/so-what-s-new-in-indesign-cc-scripting-dom
see details at page 7 (at the top) of the PDF.
Uwe
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more