mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:17:44 +00:00
LibGUI: Make Layout a Core::Object and add basic serialization
This allows you to view layouts (as data) in Inspector.
This commit is contained in:
parent
ecc39678f5
commit
849fdc1c0b
8 changed files with 66 additions and 13 deletions
|
@ -36,7 +36,7 @@ Splitter::Splitter(Orientation orientation)
|
|||
: m_orientation(orientation)
|
||||
{
|
||||
set_background_role(ColorRole::Button);
|
||||
set_layout(make<BoxLayout>(orientation));
|
||||
set_layout<BoxLayout>(orientation);
|
||||
set_fill_with_background_color(true);
|
||||
layout()->set_spacing(4);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue