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

get illustrator user interface brightness with script

Explorer ,
Sep 28, 2021 Sep 28, 2021

Hi everyone,

is there a way to get user interface brightness of illustrator with script?

is dark or light?

 

TOPICS
Scripting
286
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

Guide , Sep 28, 2021 Sep 28, 2021

This is the basic idea

 

var value = 0; /*floating point between 0 and 1, 0 = dark and 1 = light*/
app.preferences.setRealPreference("uiBrightness", value);

 

But I have to restart Illustrator for it to take effect. I don't know if that's the way it's supposed to work or if that's just the way it works for me (CS6).

 

Edit:  To "get", rather than "set",

 

alert(app.preferences.getRealPreference("uiBrightness"));  // < 0.5 = dark, > 0.5 light

 

Translate
Adobe
Guide ,
Sep 28, 2021 Sep 28, 2021
LATEST

This is the basic idea

 

var value = 0; /*floating point between 0 and 1, 0 = dark and 1 = light*/
app.preferences.setRealPreference("uiBrightness", value);

 

But I have to restart Illustrator for it to take effect. I don't know if that's the way it's supposed to work or if that's just the way it works for me (CS6).

 

Edit:  To "get", rather than "set",

 

alert(app.preferences.getRealPreference("uiBrightness"));  // < 0.5 = dark, > 0.5 light

 

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