mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibGUI: Add GHBoxLayout and GVBoxLayout convenience classes
This commit is contained in:
parent
63364f8a5d
commit
d67da8c101
50 changed files with 128 additions and 114 deletions
|
@ -43,7 +43,7 @@ int main(int argc, char** argv)
|
|||
window->set_main_widget(main_widget);
|
||||
main_widget->set_fill_with_background_color(true);
|
||||
main_widget->set_background_color(Color::White);
|
||||
main_widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
main_widget->set_layout(make<GVBoxLayout>());
|
||||
main_widget->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto label = GLabel::construct(main_widget);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue