Skip to content

Quick brush resize using Ctrl+Click in sketch pane#898

Open
eliemichel wants to merge 3 commits into
wonderunit:masterfrom
Tilix4:pr-brush-size
Open

Quick brush resize using Ctrl+Click in sketch pane#898
eliemichel wants to merge 3 commits into
wonderunit:masterfrom
Tilix4:pr-brush-size

Conversation

@eliemichel

Copy link
Copy Markdown

This PR enables quick and intuitive resizing of the brush directly in the sketch pane using Control+click.

Known limitations:

  • Displayed cursor jumps at the end of resizing. We would need a way to move mouse from code to fix this properly. Is there a way to do so?

  • There is a quatum issue occuring sometime when starting, likely due to the saving of the toolbar state. This sets the app in an inconsistent state though we override the value of state.isQuickResizing in Toolbar's constructor. We need to discuss that.

  • It'd be nice to augment the gizmo with a little indicator of the mouse position while resizing the brush, but the code of SketchPane.createAlphaThresholdBorder() is still a bit obscure to us (and stuffed with some TODOs of yours). Should we move the cursor drawing into the strategy?

  • We should eventually make it resize the eraser when using right click.

@CLAassistant

CLAassistant commented Nov 22, 2017

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@audionerd audionerd self-assigned this Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants