Page 1 of 1

Add Theme for Conversion Selection

Posted: Mon Feb 27, 2017 3:49 pm
by nefty
I see these three themes when I convert a DDS - Enhanced, Hybrid and Standard. What I would like to do is modify the Enhanced theme and make the Action Panel's Panel Style to be Glass instead of Sapphire. I copied the enhanced.js to NALCenhanced.js and placed it in the same folder. When I go to convert the NALCenhanced does not show in the theme drop down.

I am attempting to have all my screens look alike and I started by making this simple change before getting more involved in theme designing.

I'm placing the new .js in /www/profoundui/htdocs/profoundui/userdata/custom/themes

I first tried making a copy of the original, enhanced-copy.js, and changing the enhanced.js version but this did not work either.

What am I doing wrong?

Re: Add Theme for Conversion Selection

Posted: Mon Feb 27, 2017 4:06 pm
by Glenn
Nathan,

You are on the right track. You just missed one step.

After you copy the theme that most closely matches what you want to see you also need to change the "name" setting in the theme file (see the image below). We suggest you keep the name of the .js file and the "name" setting the same to avoid confusion.

The text you put in this setting will be what appears in the dropdown when you do the conversion. Note that you will need to reload your designer session each time you make a change to these files to make sure you get the new version. Also note that if the theme file is not valid JSON (ex: missing a comma or a quote) it will not appear in the dropdown.
themes.png
themes.png (3.16 KiB) Viewed 1258 times
Glenn

Re: Add Theme for Conversion Selection

Posted: Tue Feb 28, 2017 10:17 am
by nefty
Thanks for your help. That did the trick.
Nathan