mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibGUI: Convert GFrame to ObjectPtr
This commit is contained in:
parent
7b5342b2e3
commit
55a6e4ac0b
7 changed files with 21 additions and 17 deletions
|
@ -21,7 +21,7 @@ TaskbarWindow::TaskbarWindow()
|
|||
|
||||
GDesktop::the().on_rect_change = [this](const Rect& rect) { on_screen_rect_change(rect); };
|
||||
|
||||
auto* widget = new GFrame;
|
||||
auto widget = GFrame::construct();
|
||||
widget->set_fill_with_background_color(true);
|
||||
widget->set_layout(make<GBoxLayout>(Orientation::Horizontal));
|
||||
widget->layout()->set_margins({ 3, 2, 3, 2 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue