undavide / PS-Panels-Boilerplate

Boilerplate code and examples for Adobe Photoshop CC (and following) HTML Panels.
MIT License
98 stars 36 forks source link

Trigger 'darkdark' by default #1

Closed SturmB closed 6 years ago

SturmB commented 6 years ago

Signed-off-by: Chris McGee chris@chrismcgee.info

In the latest version of Adobe Illustrator (CC 2018 a.k.a. 22.1), the 'darkdark' theme has a Red value of 50. This means the updateThemeWithAppSkinInfo() function never triggers.

This patch will fix the condition-checking so that 'darkdark' will trigger if none of the other three themes are in effect. This assumes, of course, that the user wants the aforementioned function to always trigger and apply one of the four color schemes. Given the purpose of the script, I think this assumption was originally intended anyway.