npm install photoshop-ui-manager --save
CSInterface v5.x or higher
Node.js module that listens to Adobe Photoshop working area brightness change event then loads a designated css stylesheet so the running extension (custom panel) matches the application user interface four shades of gray.
var photoshopUIManager = require('photoshop-ui-manager');
photoshopUIManager.init({
'darkGray' : 'css/dark-gray-ui.css',
'mediumGray' : 'css/medium-gray-ui.css',
'lightGray' : 'css/light-gray-ui.css',
'original' : 'css/original-ui.css'
});
Example Photoshop extension demostrating module basic functionality.
The example initializes an instance of the module with four file paths of the target CSS stylesheets that are swapped based on the working area brightness change event triggered when one of the four shades of gray available is selected.
Tested in Adobe Photoshop CC2014 (v15.x), Adobe Photoshop CC2015 (v16.x) and Adobe Photoshop CC2015.5 (v17.x)
1.0.0 (Jul 30 2016)
- Main module functionality.
- Including extension example demostrating module basic functionality of swapping CSS stylesheets when brightness change event is triggered.
0.0.0 (Jul 23 2016)
- Initial development.
MIT © Antonio Gomez