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

LibGUI: Move GUI::SeparatorWidget from ToolBar.cpp to its own file

This makes this nice line separator widget usable outside toolbars.
Also support both horizontal and vertical orientation. :^)
This commit is contained in:
Andreas Kling 2020-12-30 03:52:27 +01:00
parent 2dc09d1cd7
commit 5b1a6d7c66
5 changed files with 115 additions and 22 deletions

View file

@ -58,6 +58,7 @@ private:
RefPtr<Action> action;
};
NonnullOwnPtrVector<Item> m_items;
const Gfx::Orientation m_orientation;
int m_button_size { 16 };
bool m_has_frame { true };
};