mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +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:
parent
193f1e01cf
commit
0ca085910e
3 changed files with 21 additions and 7 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue