-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added magnifier for more precise selections #2219
Conversation
this could probably be done in a nicer way. right now the magnifier wont show if you select via the move tool.
@SilasDo I appreciate you taking the time to implement this. But you should have first discussed this via issues (the devs only agreed that this feature is useful but not how it should be executed). Right off the bat I'd like to say that you should take what I say with a grain of salt because @borgmanJeremy and @mmahmoudian might disagree with me. We were looking at a solution that reuses the color grab zoom widget I implemented in #1869, in order to prevent unnecessary code duplication.
Some criticism
If we collectively decide that you should merge this with my implementation, then please hold off on working on it until I fix a bug on MacOS regarding the P.S. I was able to reproduce the existing bugs you mentioned, and I've started working on them. Thanks for testing out the beta! |
@SilasDo thank you for taking the time to implement such feature. It's good to know there are users who can contribute to the codebase. My suggestion is to have them both using the same code as it would increase the maintainability. Regarding the shape, I myself love to see the crosshairs to show the center pixel, plus I feel like the circle shape is more smoother to the eye and intuitive as IRL magnifiers are typically circular. Also regarding in which version to release this in, I would also go with the idea that let's not delay the v11 but add this to the next minor/major version. So to sum up, I completely agree with the points @veracioux made. |
@SilasDo now that v11 is calming down we have bandwidth to help get this integrated into v11. I think @veracioux has good points on merging the implementation with the existing magnifier feature. Are you willing to take on that work? If not we can take your code and port it over. Overall I really like the demo. |
I'm currently quite busy with another project, i could probably find some time in about a week. i took a quick look at the colorgrabwidget (really like the hold left click for precise selection feature) but I'm not really sure how to best merge both implementations since they are currently not very similar. things like that should be agreed upon in order for me to merge features. that being said If someone else has time to implement this, that would be totally great as well! |
I think the one with offset is good for when user wants to find the region of interest, and then the rightist can freeze the zoom window do the precise pixel can be selected. For me the hardest part is to find the region, for instance in the current implementation if I want to get the color of a green tongue in 🤑, I should move the mouse quite a bit to find the region of the tongue, so the offset can help because it doesn't cover my field of view. |
@SilasDo Then I'm going to merge the implementations. |
@veracioux when you say "merge the implementations" do you mean you want this PR merged as is? Or are you going to merge this PR to another branch, combine the zoom classes, and then submit a new PR? |
@borgmanJeremy I meant the latter. But you could also merge this PR into master if you think it is mature enough, so |
@veracioux okay I think the best way to approach this will be to merge as is and iteratively improve it. |
* added a magnifierwidget * added option to show magnifier and added option to switch to square shaped magnifier * integrated magnifierwidget into capture this could probably be done in a nicer way. right now the magnifier wont show if you select via the move tool. Co-authored-by: Silas Dohm <[email protected]> (cherry picked from commit cf08755)
related to #328 and #390
I was missing a magnifier so I decided to add this feature.
not really happy about the way I integrated the magnifierwidget into the capture process but its good enough for my use case.
(for example: right now it does not show the magnifier when using the move tool)
I'm open to feedback.
If this is something you wold like to see in the Flameshot I'm willing to improve the implementation.
demo:
mag.mp4
btw not sure if you already know this but the selection is bugged in v11 beta, for example the selection is no longer constrained to the screen (you can simply drag the selection offscreeen).
selection_offscreen.mp4
another bug i encountered in v11 is that the first pixel you selected does not end up in the selection, an easy way to test this is to select your entire screen top-left to bottom-right (you would expect the selection to equal your screen resolution but it does not)
I compiled the v10.2 version and had neither of those issues.