1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

GameOfLife: Add some margin to the toolbar layout

Ideally the inner widgets / vertical separators would have some as well,
but I'm not sure how right now. One step at a time. :^)
This commit is contained in:
Linus Groh 2021-05-16 21:33:43 +01:00 committed by Andreas Kling
parent f89eb0e4ce
commit 030360c787

View file

@ -42,6 +42,7 @@ int main(int argc, char** argv)
main_widget.set_fill_with_background_color(true);
auto& main_toolbar = *main_widget.find_descendant_of_type_named<GUI::Toolbar>("toolbar");
main_toolbar.layout()->set_margins({ 6, 0, 6, 0 });
auto& board_widget_container = *main_widget.find_descendant_of_type_named<GUI::Widget>("board_widget_container");
auto& board_layout = board_widget_container.set_layout<GUI::VerticalBoxLayout>();