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

PixelPaint: Make Guides' visibility optional

Whether Guides are drawn or not is now controlled via the menu-entry
View->Show Guides.
This commit is contained in:
Tobias Christiansen 2021-08-05 15:48:59 +02:00 committed by Ali Mohammad Pur
parent 193f1e01cf
commit 0ca085910e
3 changed files with 21 additions and 7 deletions

View file

@ -85,6 +85,7 @@ public:
Gfx::FloatPoint editor_position_to_image_position(Gfx::IntPoint const&) const;
NonnullRefPtrVector<Guide> const& guides() const { return m_guides; }
void toggle_guide_visibility() { m_show_guides = !m_show_guides; }
private:
explicit ImageEditor(NonnullRefPtr<Image>);
@ -116,6 +117,7 @@ private:
OwnPtr<GUI::UndoStack> m_undo_stack;
NonnullRefPtrVector<Guide> m_guides;
bool m_show_guides { true };
Tool* m_active_tool { nullptr };