mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Userland: Specify margins and spacing in the GUI::Layout constructor
This commit is contained in:
parent
9561ec15f4
commit
77ad0fdb07
64 changed files with 136 additions and 288 deletions
|
@ -175,12 +175,10 @@ static ErrorOr<NonnullRefPtr<GUI::Window>> create_find_window(VT::TerminalWidget
|
|||
auto main_widget = TRY(window->set_main_widget<GUI::Widget>());
|
||||
main_widget->set_fill_with_background_color(true);
|
||||
main_widget->set_background_role(ColorRole::Button);
|
||||
(void)TRY(main_widget->try_set_layout<GUI::VerticalBoxLayout>());
|
||||
main_widget->layout()->set_margins(4);
|
||||
(void)TRY(main_widget->try_set_layout<GUI::VerticalBoxLayout>(4));
|
||||
|
||||
auto find = TRY(main_widget->try_add<GUI::Widget>());
|
||||
(void)TRY(find->try_set_layout<GUI::HorizontalBoxLayout>());
|
||||
find->layout()->set_margins(4);
|
||||
(void)TRY(find->try_set_layout<GUI::HorizontalBoxLayout>(4));
|
||||
find->set_fixed_height(30);
|
||||
|
||||
auto find_textbox = TRY(find->try_add<GUI::TextBox>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue