1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

Assistant+CommandPalette: Use FrameShape::Window for main widgets

This commit is contained in:
thankyouverycool 2022-02-25 11:58:14 -05:00 committed by Andreas Kling
parent e1a72c6df8
commit f457e43885
2 changed files with 2 additions and 2 deletions

View file

@ -216,7 +216,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& container = window->set_main_widget<GUI::Frame>(); auto& container = window->set_main_widget<GUI::Frame>();
container.set_fill_with_background_color(true); container.set_fill_with_background_color(true);
container.set_frame_shadow(Gfx::FrameShadow::Raised); container.set_frame_shape(Gfx::FrameShape::Window);
auto& layout = container.set_layout<GUI::VerticalBoxLayout>(); auto& layout = container.set_layout<GUI::VerticalBoxLayout>();
layout.set_margins({ 8, 8, 0 }); layout.set_margins({ 8, 8, 0 });

View file

@ -175,7 +175,7 @@ CommandPalette::CommandPalette(GUI::Window& parent_window, ScreenPosition screen
collect_actions(parent_window); collect_actions(parent_window);
auto& main_widget = set_main_widget<GUI::Frame>(); auto& main_widget = set_main_widget<GUI::Frame>();
main_widget.set_frame_shadow(Gfx::FrameShadow::Raised); main_widget.set_frame_shape(Gfx::FrameShape::Window);
main_widget.set_fill_with_background_color(true); main_widget.set_fill_with_background_color(true);
auto& layout = main_widget.set_layout<GUI::VerticalBoxLayout>(); auto& layout = main_widget.set_layout<GUI::VerticalBoxLayout>();