mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 01:25:09 +00:00
Welcome: Reduce the width and margins of the menu
I think it looks better where it takes up less space.
This commit is contained in:
parent
d5617fc855
commit
f4958aea21
1 changed files with 2 additions and 2 deletions
|
@ -193,9 +193,9 @@ int main(int argc, char** argv)
|
||||||
auto menu = GUI::Widget::construct(main_section.ptr());
|
auto menu = GUI::Widget::construct(main_section.ptr());
|
||||||
menu->set_layout(make<GUI::VerticalBoxLayout>());
|
menu->set_layout(make<GUI::VerticalBoxLayout>());
|
||||||
menu->layout()->set_margins({ 0, 0, 0, 0 });
|
menu->layout()->set_margins({ 0, 0, 0, 0 });
|
||||||
menu->layout()->set_spacing(8);
|
menu->layout()->set_spacing(4);
|
||||||
menu->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill);
|
menu->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fill);
|
||||||
menu->set_preferred_size(200, 0);
|
menu->set_preferred_size(100, 0);
|
||||||
|
|
||||||
auto stack = GUI::StackWidget::construct(main_section);
|
auto stack = GUI::StackWidget::construct(main_section);
|
||||||
stack->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fill);
|
stack->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fill);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue