Skip to content

Add "mirror_canvas_around_canvas" action

Nelson R. requested to merge ndot/krita:ndot/mirror-canvas-around-canvas into master

Add a new mirror action that rotates around the canvas.

We have two mirror options that are not always ideal, mainly when painting zoomed out. When using the default mirror if the canvas it not centered, it's almost like watching a tennis match :p The canvas around the cursor is ok when zoomed in, not always great when zoomed out and it depends on the user moving the cursor before mirroring.

out

The action has no set shortcut. I figure it's probably best to let the user decide what to set or replace. The icon is the same as the normal mirror. Not sure if this needs a new icon or what it should be.

Test Plan

Either set a new shortcut to "Mirror View Around Canvas" or invoke the action at "View->Canvas->Mirror View Around Canvas".

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.

Merge request reports