LinwoodDev / Butterfly

🎨 Powerful, minimalistic, cross-platform, opensource note-taking app
https://butterfly.linwood.dev
GNU Affero General Public License v3.0
1.06k stars 74 forks source link

[Feature request]: Lock aspect ratio when resizing object #616

Open yotama9 opened 8 months ago

yotama9 commented 8 months ago

Is your feature request related to a problem? Please describe

The requested request is platform independent, but I searched for it only on a smartphone

Describe your feature request!

When selecting an object, there should be an option to lock the aspect ratio when resizing. At the moment this is not the case, and resizing can easily result with deformed objects.

Additional context

No response

Code of Conduct

CodeDoctorDE commented 8 months ago

You can need to click again on your selection and the handles gets a different color. Now you can resize without changing the aspect ratio

yotama9 commented 8 months ago

Hmmm... I did not know that (still have to read the docks). Maybe it would be valuable to add a lock icon?

CodeDoctorDE commented 8 months ago

I think it isn't mentioned anywhere in the docs. It would be nice if you could contribute it. Where would you like to have the lock icon? I don't see where I could add it

yotama9 commented 8 months ago

Above the top right corner maybe? Or maybe next to the circle in the middle of the object?

CodeDoctorDE commented 8 months ago

Top right is a bit random. We already put the rotation circle at the top (see #607 in https://preview.butterfly.linwood.dev). How should this look like? Is there any reference to other apps?

yotama9 commented 8 months ago

Hmmm... I think it should appear inside the selected frame. It makes more sense to me.

The gimp uses a chain (complete/broken) and inkscape is using a lock symbol (closed/open) for (keeping/not keeping) the aspect ratio: image image

CodeDoctorDE commented 8 months ago

But there it isn't inside a canvas. I'm currently not sure if this looks good

yotama9 commented 8 months ago

It is not, that's true. But I still think that there should be some hint about the ability to lock the AR.