bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
401 stars 55 forks source link

Can I build lazpaint in a way to hide all dock tools but n point deformation? #508

Open LinuxBeaver opened 2 years ago

LinuxBeaver commented 2 years ago

Gimp and Krita have options to hide their dock tools. Lazpaint doesn't in the GUI. I was just wondering if there was a way I could do it by rebuilding lazpaint. The reason is because lazpaint's deform is the only tool I need from it when Gimp is needed to do the rest of my workflow.

LinuxBeaver commented 2 years ago

A better idea is setting a custom key binding to call n point deform. So do you mind telling me where I can add key bindings in Lazpaint's code. Many tools already have them but npoint doesn't.

circular17 commented 2 years ago

I am not sure what you mean by dock tools. Is it the top toolbar that changes according to the selected tool?

LinuxBeaver commented 2 years ago

image

circular17 commented 2 years ago

Ok got it. So you can hide the toolbar but it is not saved in current version (it is fixed on dev branch). When you reopen LazPaint, it shows again.

But, you can hide it forever by undocking the toolbox (in View menu), then closing the toolbox window, then closing LazPaint. Next time the program starts, it won't be visible.

If you are going to rebuild the program, you can change the key binding in the source code, at the bottom of umenu.pas in the procedure TMainFormMenu.ApplyShortcuts.