undavide / PS-Panels-Boilerplate

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

Call css from context menu #5

Open schroef opened 4 years ago

schroef commented 4 years ago

Hi Barranca,

many thanks for all this info you are giving! Bizarre how much info you have which i cant seem to find on Adobe parts?!?

How should i attack script actions i want to trigger from that menu. I would like to adjust css styling, however not sure this is the proper usage. Perhaps overall preferences is better, but I'm not at that point yet. Im pretty new to all this CEP panel usage. Know just a bit of scripting.

I would like to adjust the css by setting font-size, this used for the icons. ALl i want to do is add font-size with 3 pre-defined size so i can change the icons-size for all the buttons.

Its not my panel, its AnimDessin2, I'm an OSX user and was missing some features like Tooltips and adjust multiple layers at once. Ive got the tooltips working now. The adjust multiple layers at once works, button yet for nested layers. Still working on that.

But i would like to add the icons-size

Screen Shot 2020-03-24 at 17 09 27

This is what i got now for editing multiple layers. Prior you would need to edit layer by layer, which is super tedious. Cant wrap my head around that photoshop doesn't allow this by default?! edit-multipleLayers-test02

I implemented Bootstrap tooltips since on OSX basic tooltips wont work. When i get that context working i would like to make tooltips optional. Tooltips-css-bootsrap

schroef commented 4 years ago

I got it working now from the context menu. Was a bit of googling, but calling scripts is quite easy from within same js file. Only some things like setting fontsize with px seems to act different in photoshop. Not sure what is going on. But the font size is different in Photoshop then when i check chrome browser. I know its different since it uses chromium as standalone. Curious how can view a debit panel. I see some code in this panel for that, but i don't see it popup.

Having different icon sizes makes it easier for tablet users i think. Some have really small or high resolutions. Icon-sizes-contextmenu