mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibGUI: Use set_layout<LayoutType>() in lots of client code
This commit is contained in:
parent
03e0ddce52
commit
4697195645
45 changed files with 109 additions and 109 deletions
|
@ -50,15 +50,15 @@ void ColorPicker::build()
|
|||
{
|
||||
auto horizontal_container = Widget::construct();
|
||||
horizontal_container->set_fill_with_background_color(true);
|
||||
horizontal_container->set_layout(make<HorizontalBoxLayout>());
|
||||
horizontal_container->set_layout<HorizontalBoxLayout>();
|
||||
horizontal_container->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
set_main_widget(horizontal_container);
|
||||
|
||||
auto left_vertical_container = horizontal_container->add<Widget>();
|
||||
left_vertical_container->set_layout(make<VerticalBoxLayout>());
|
||||
left_vertical_container->set_layout<VerticalBoxLayout>();
|
||||
|
||||
auto right_vertical_container = horizontal_container->add<Widget>();
|
||||
right_vertical_container->set_layout(make<VerticalBoxLayout>());
|
||||
right_vertical_container->set_layout<VerticalBoxLayout>();
|
||||
|
||||
enum RGBComponent {
|
||||
Red,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue