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

[CC JS] Changing the Color Theme in a script

Participant ,
Jun 30, 2013 Jun 30, 2013

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

TOPICS
Scripting
1.1K
Translate
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 , Jul 01, 2013 Jul 01, 2013

app.generalPreferences.uiBrightnessPreference = 100

Peter

Translate
Community Expert ,
Jul 01, 2013 Jul 01, 2013

app.generalPreferences.uiBrightnessPreference = 100

Peter

Translate
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
Participant ,
Jul 02, 2013 Jul 02, 2013

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

Translate
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 ,
Jul 02, 2013 Jul 02, 2013
LATEST

@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

Translate
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