1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

LibGUI: Make GUI::Frame have the 2px sunken container look by default

The overwhelming majority of GUI::Frame users set the same appearance,
so let's just make it the default.
This commit is contained in:
Andreas Kling 2020-02-23 11:09:20 +01:00
parent 3d20da9ee4
commit bfd86c4631
27 changed files with 7 additions and 91 deletions

View file

@ -225,9 +225,6 @@ FilePicker::FilePicker(Mode mode, const StringView& file_name, const StringView&
auto preview_container = horizontal_container->add<Frame>();
preview_container->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
preview_container->set_preferred_size(180, 0);
preview_container->set_frame_shape(Gfx::FrameShape::Container);
preview_container->set_frame_shadow(Gfx::FrameShadow::Sunken);
preview_container->set_frame_thickness(2);
preview_container->set_layout(make<VerticalBoxLayout>());
preview_container->layout()->set_margins({ 8, 8, 8, 8 });