From 030360c787ebe63ad4f3966c990b02f810b9feb3 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 16 May 2021 21:33:43 +0100 Subject: [PATCH] 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. :^) --- Userland/Games/GameOfLife/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Games/GameOfLife/main.cpp b/Userland/Games/GameOfLife/main.cpp index 040fae53b8..b97b0f0cc7 100644 --- a/Userland/Games/GameOfLife/main.cpp +++ b/Userland/Games/GameOfLife/main.cpp @@ -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("toolbar"); + main_toolbar.layout()->set_margins({ 6, 0, 6, 0 }); auto& board_widget_container = *main_widget.find_descendant_of_type_named("board_widget_container"); auto& board_layout = board_widget_container.set_layout();