Copy link to clipboard
Copied
Hello,
In our scripts dialog window we display our company branded logo, I can change the logo used based on the users preference settings in Indesign and Illustrator but is it possible to get the user Preferences>Interface>Color Theme with javascript or AM code in Photoshop?
Regards,
Mike
var s2t = stringIDToTypeID;
(r = new ActionReference()).putProperty(s2t('property'), p = s2t('interfacePrefs'));
r.putEnumerated(s2t('application'), s2t('ordinal'), s2t('targetEnum'));
currentColorTheme = typeIDToStringID(executeActionGet(r).getObjectValue(p).getEnumerationValue(s2t('kuiBrightnessLevel')));
alert(currentColorTheme);
Copy link to clipboard
Copied
var s2t = stringIDToTypeID;
(r = new ActionReference()).putProperty(s2t('property'), p = s2t('interfacePrefs'));
r.putEnumerated(s2t('application'), s2t('ordinal'), s2t('targetEnum'));
currentColorTheme = typeIDToStringID(executeActionGet(r).getObjectValue(p).getEnumerationValue(s2t('kuiBrightnessLevel')));
alert(currentColorTheme);
Copy link to clipboard
Copied