Bug 392482

Summary: Add optional zoom effect when using rectangular grid
Product: [Applications] Spectacle Reporter: DrSlony <bugs>
Component: GeneralAssignee: Boudhayan Gupta <me>
Status: RESOLVED FIXED    
Severity: normal CC: bugs
Priority: NOR    
Version First Reported In: 17.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Magnifier desktop effect

Description DrSlony 2018-03-29 10:33:52 UTC
Created attachment 111720 [details]
Magnifier desktop effect

Hello

When using Spectacle's "rectangular selection" I very often need to align the rectangle precisely, which is currently very difficult to do, especially on high DPI screens. It would be great if you could add an optional uninterpolated zoom effect when dragging frame corners to aid in precise frame alignment.

I attached a screenshot showing how the "Magnifier" desktop effect helps, though it uses linear/cubic interpolation which blurs the details.
Comment 1 null 2018-05-01 20:11:25 UTC
Git commit 790cb3fb2a971a083744cb62d9662234578aa752 by Henrik Fehlauer, on behalf of Tao Guo.
Committed on 01/05/2018 at 20:11.
Pushed by rkflx into branch 'master'.

Add magnifier for rectangle mode

Summary:
Add magnifier for rectangle mode, it can show 5x of the mouse pointer

Depends on D11598

Test Plan:
In rectangle mode:
1. select rectangle, check magnifier
2. adjust selection, check magnifier
3. change the selection to any size and check magnifier
4. test magnifier on multi-screen
5. test magnifier in HiDPI mode

Reviewers: #spectacle, rkflx, ngraham, alexeymin

Reviewed By: #spectacle, rkflx, ngraham, alexeymin

Subscribers: alexeymin, rkflx, ngraham

Differential Revision: https://phabricator.kde.org/D11599

M  +9    -0    src/Gui/SettingsDialog/GeneralOptionsPage.cpp
M  +1    -0    src/Gui/SettingsDialog/GeneralOptionsPage.h
M  +109  -1    src/QuickEditor/EditorRoot.qml
M  +3    -0    src/QuickEditor/QuickEditor.cpp
M  +72   -4    src/QuickEditor/SelectionRectangle.qml
M  +13   -0    src/SpectacleConfig.cpp
M  +3    -0    src/SpectacleConfig.h

https://commits.kde.org/spectacle/790cb3fb2a971a083744cb62d9662234578aa752
Comment 2 DrSlony 2018-05-01 20:39:45 UTC
Thank you so much!
I can't compile the source to test, but looking forward to the next release :)
Comment 3 DrSlony 2018-12-25 20:53:47 UTC
Tested 18.08.3

It works fantastically, thank you so much!