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

PixelPaint: Allow toggling the active layer boundary display rect

Let the user opt out of painting a rectangle around the currently
active layer.
This commit is contained in:
Andreas Kling 2021-11-19 17:26:49 +01:00
parent 85e5586a27
commit 4bd4ce439a
5 changed files with 28 additions and 1 deletions

View file

@ -107,6 +107,9 @@ public:
bool pixel_grid_visibility() const { return m_show_pixel_grid; }
void set_pixel_grid_visibility(bool show_pixel_grid);
bool show_active_layer_boundary() const { return m_show_active_layer_boundary; }
void set_show_active_layer_boundary(bool);
private:
explicit ImageEditor(NonnullRefPtr<Image>);
@ -147,6 +150,8 @@ private:
bool m_show_rulers { true };
bool m_show_pixel_grid { true };
bool m_show_active_layer_boundary { true };
Tool* m_active_tool { nullptr };
Color m_primary_color { Color::Black };