Button to straighten horizon#21024
Conversation
|
We already have the "double-click" on any slider to reset to defaults.... |
|
Implemented the requested feature under https://discuss.pixls.us/t/straighten-with-two-times-right-click/56648/13 and #20648 |
|
Honestly - maybe i am a bit stupid and don't get the point about this but - i don't understand the "problem" :-) A simple left-double-click on any slider resets that to default - so here to zero. Why would an extra button/icon help in any way? BTW i also don't get the one-line-problem in the same thread :-) |
|
@jenshannoschwalm This has nothing to do with reseting the rotation value back to zero. The problem right now is that attempting to fix the horizon/rotating the photo is hard if you want precision. You'd have to toggle the overlay and fiddle with the slider or use right-click + drag to draw the line. Im basically bringing this to darktable: https://youtu.be/gjyhUjhV1KU?t=33 Issue #20648 and discussion https://discuss.pixls.us/t/straighten-with-two-times-right-click/56648/13 with over 400 views |
|
Aah, just compiled, tested and can see what it's about and how it works :-) Might indeed help. Sorry for the noise. |
|
@jenshannoschwalm No worries @TurboGit Im happy with the changes. Feel free to merge :) |
|
I'd suggest the button needs to enable the module. Otherwise when you click it when the module is disabled, it changes the cursor but doesn't actually work. It feels broken in this case. And shouldn't the button background also change to the highlighted state when it's on? That's how the other two-state buttons work. I'd suggest minor changes to the tooltip: to place the first point,\nthen right-click again to finish and rotate the image Does that sound good to @TurboGit and/or @jenshannoschwalm? About the UX: at first, I wanted to say this was redundant with the existing feature (right click and drag already exists), but left click and drag really is a lot easier to do quickly and accurately on a PC touchpad. I think it will be helpful. And would @stnKrisna be willing to make a PR to add the new button to the docs here? https://github.com/darktable-org/dtdocs/blob/master/content/module-reference/processing-modules/rotate-perspective.md#rotate |
I agree
Isn't that already the case ? |
The button change state, yes. But not the background. I follow the eyedropper button on the exposure module. Probably just bad icon for the button |
Oh, that's a good point. This button is more similar to the eye dropper button than most other button types. |
|
I think we need a better icon for this button 😅 |
|
@lefth Both suggestions has been implemented |
|
I noticed another minor issue. With other pickers, the picking state is reset when the module is collapsed. It would make sense to do the same for this feature. I sometimes do that as a quick way to cancel the mouse operation, rather than clicking the dropper icon again.
I think it's fine! If you want to tweak it, I'd put it a bit lower, but nobody has complained yet... |
|
Does this also work for vertical references like the right click + drag? I use vertical most of the time. |
|
@lowieCOOL Yep. It should work! |



I've added a simple button that allows you to simply straighten horizon. Similar to how we can use right-click + drag. I think this should help new users easily adopt darktable.