1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:07:46 +00:00

PixelPaint: Add keyboard zoom shortcuts

You can now use Ctrl+= and Ctrl+- to zoom in and out.
This commit is contained in:
Jagger De Leo 2021-04-15 22:06:25 -04:00 committed by Linus Groh
parent b48b8c372e
commit 2976311536
3 changed files with 31 additions and 6 deletions

View file

@ -65,6 +65,7 @@ public:
void scale_centered_on_position(const Gfx::IntPoint&, float);
void reset_scale_and_position();
void scale_by(float);
Color primary_color() const { return m_primary_color; }
void set_primary_color(Color);
@ -107,6 +108,7 @@ private:
GUI::MouseEvent event_adjusted_for_layer(const GUI::MouseEvent&, const Layer&) const;
GUI::MouseEvent event_with_pan_and_scale_applied(const GUI::MouseEvent&) const;
void clamped_scale(float);
void relayout();
RefPtr<Image> m_image;