Draw icon indicating copy to clipboard operation
Draw copied to clipboard

Add a relative brush size option

Open CactiChameleon9 opened this issue 1 year ago • 2 comments
trafficstars

What is it?

  • [ ] Bugfix
  • [x] Feature
  • [ ] Codebase improvement

Description of the changes in your PR

Relative brush sizing (to zoom) can be annoying/difficult in certain situations, such as when trying to draw a picture with consistent line width.

This PR adds an option to disable relative brush size (enabled by default to preserve normal behaviour)

Acknowledgement

CactiChameleon9 avatar Jan 28 '24 17:01 CactiChameleon9

@CactiChameleon9 I really like this idea, It was my problem too, but maybe that should be optional? Opt out? As I can see some people could like it. What do you think? And everybody else?

inson1 avatar Mar 02 '24 02:03 inson1

@inson1 It is optional.

Aga-C avatar Mar 02 '24 07:03 Aga-C

Hey, I'll merge it soon.

Thanks for resolving the conflicts.

naveensingh avatar Mar 29 '25 12:03 naveensingh

This needs retesting, but I don't think there are any changes from last time (no idea why there were conflicts, it was a copy paste job to current master)

CactiChameleon9 avatar Mar 29 '25 12:03 CactiChameleon9

no idea why there were conflicts

The package name was changed to org.fossify.paint before the release. See news.

naveensingh avatar Mar 29 '25 12:03 naveensingh

Tested and working fine. I was using a checkbox for the setting instead of toggle, now fixed. Should be ready to merge

CactiChameleon9 avatar Mar 29 '25 13:03 CactiChameleon9

Use a relative (to zoom) brush size

Naming this option must have been hard :)

I don't do much painting so I can't decide whether this option should be on or off to preserve the default behavior. If you look at it from the screen's frame of reference, the current behavior is to use a constant brush size (in pixels) but if you look at it from canvas's frame of reference, current behavior is relative to zoom level.

Suggestions (cleaner but there's still ambiguity):

  • Use constant brush size on canvas (disabled by default)
  • Adjust brush size based on zoom level (enabled by default)

What do you think?

naveensingh avatar Apr 20 '25 14:04 naveensingh

I think I prefer "Adjust brush size based on zoom level", it's unclear what a not-constant size would be.

I'll admit... I was expecting feedback on the naming :sweat_smile:

I personally am not really a fan of the default behavior, I find it disruptive with both note-taking and drawing because there is no way to move about without zooming accidentally. However, I recognize that it my be preferable to some and changing the behavior of an app is a pain (hence I left it as the previous behavior by default)

CactiChameleon9 avatar Apr 21 '25 07:04 CactiChameleon9

"Adjust brush size based on zoom level" works for me, let's do that.

I personally am not really a fan of the default behavior, I find it disruptive with both note-taking and drawing because there is no way to move about without zooming accidentally.

Both have their pros and cons but yeah, preserving the default is usually the right choice. Come to think of it, there should be a reset zoom button somewhere in the app to solve that zoom issue.

naveensingh avatar Apr 21 '25 07:04 naveensingh