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

LibGUI+Taskbar+Applets+Applications: Set various windows as Popups

Makes the Audio applet, Taskbar clock, CommandPalette, EmojiPicker,
and Assistant work as Popup windows. Popups are frameless, unmovable,
and unresizable by default, in addition to their preemptive function.
Also sets Assistant not to obey widget min size so its search result
area resizes correctly
This commit is contained in:
thankyouverycool 2022-11-17 10:34:31 -05:00 committed by Andreas Kling
parent 24d299c9c8
commit 4aa608aa71
5 changed files with 8 additions and 9 deletions

View file

@ -78,9 +78,7 @@ private:
ErrorOr<void> try_initialize_graphical_elements()
{
m_slider_window = add<GUI::Window>(window());
m_slider_window->set_frameless(true);
m_slider_window->set_resizable(false);
m_slider_window->set_minimizable(false);
m_slider_window->set_window_type(GUI::WindowType::Popup);
m_root_container = TRY(m_slider_window->try_set_main_widget<GUI::Frame>());
m_root_container->set_fill_with_background_color(true);