0
Explorer
,
/t5/illustrator-discussions/get-illustrator-user-interface-brightness-with-script/td-p/12408991
Sep 28, 2021
Sep 28, 2021
Copy link to clipboard
Copied
Hi everyone,
is there a way to get user interface brightness of illustrator with script?
is dark or light?
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
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
Explore related tutorials & articles
Guide
,
LATEST
/t5/illustrator-discussions/get-illustrator-user-interface-brightness-with-script/m-p/12409170#M292714
Sep 28, 2021
Sep 28, 2021
Copy link to clipboard
Copied
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

