summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-16 21:33:43 +0100
committerAndreas Kling <kling@serenityos.org>2021-05-16 23:00:21 +0200
commit030360c787ebe63ad4f3966c990b02f810b9feb3 (patch)
tree9d1327f944fa8bae15b2ead3ad2c8484de85c871
parentf89eb0e4ce10a9377145609591193bd8c70a0691 (diff)
downloadserenity-030360c787ebe63ad4f3966c990b02f810b9feb3.zip
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. :^)
-rw-r--r--Userland/Games/GameOfLife/main.cpp1
1 files changed, 1 insertions, 0 deletions
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<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>();