Kaynağa Gözat

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

thankyouverycool 3 yıl önce
ebeveyn
işleme
f457e43885

+ 1 - 1
Userland/Applications/Assistant/main.cpp

@@ -216,7 +216,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
 
     auto& container = window->set_main_widget<GUI::Frame>();
     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>();
     layout.set_margins({ 8, 8, 0 });
 

+ 1 - 1
Userland/Libraries/LibGUI/CommandPalette.cpp

@@ -175,7 +175,7 @@ CommandPalette::CommandPalette(GUI::Window& parent_window, ScreenPosition screen
     collect_actions(parent_window);
 
     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);
 
     auto& layout = main_widget.set_layout<GUI::VerticalBoxLayout>();