summaryrefslogtreecommitdiff
path: root/Applications/Terminal
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-04 09:43:54 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-04 13:49:48 +0100
commit4697195645a4c66930761c85685f5752dc777bba (patch)
treecc77feb29541d43323a5edce70f05412ab1e8e68 /Applications/Terminal
parent03e0ddce5237b6ad7b84724ef03039e413944f00 (diff)
downloadserenity-4697195645a4c66930761c85685f5752dc777bba.zip
LibGUI: Use set_layout<LayoutType>() in lots of client code
Diffstat (limited to 'Applications/Terminal')
-rw-r--r--Applications/Terminal/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp
index 6fa6ec987e..9f36dd439e 100644
--- a/Applications/Terminal/main.cpp
+++ b/Applications/Terminal/main.cpp
@@ -138,11 +138,11 @@ RefPtr<GUI::Window> create_settings_window(TerminalWidget& terminal)
window->set_main_widget(settings);
settings->set_fill_with_background_color(true);
settings->set_background_role(ColorRole::Button);
- settings->set_layout(make<GUI::VerticalBoxLayout>());
+ settings->set_layout<GUI::VerticalBoxLayout>();
settings->layout()->set_margins({ 4, 4, 4, 4 });
auto radio_container = settings->add<GUI::GroupBox>("Bell Mode");
- radio_container->set_layout(make<GUI::VerticalBoxLayout>());
+ radio_container->set_layout<GUI::VerticalBoxLayout>();
radio_container->layout()->set_margins({ 6, 16, 6, 6 });
radio_container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
radio_container->set_preferred_size(100, 70);
@@ -156,7 +156,7 @@ RefPtr<GUI::Window> create_settings_window(TerminalWidget& terminal)
};
auto slider_container = settings->add<GUI::GroupBox>("Background Opacity");
- slider_container->set_layout(make<GUI::VerticalBoxLayout>());
+ slider_container->set_layout<GUI::VerticalBoxLayout>();
slider_container->layout()->set_margins({ 6, 16, 6, 6 });
slider_container->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
slider_container->set_preferred_size(100, 50);