mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
WindowServer: Let WindowManager set serverside effects
Menu and Window animations can now be disabled and the geometry overlay made conditional. Shadow options are dependent on the current theme actually supplying bitmaps, but they provide a fast way to toggle those that do without having to edit theme files.
This commit is contained in:
committed by
Andreas Kling
parent
5917545633
commit
d11ce1d808
Notes:
sideshowbarker
2024-07-17 08:21:18 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/d11ce1d808 Pull-request: https://github.com/SerenityOS/serenity/pull/14805
@@ -481,6 +481,8 @@ void Menu::clear_hovered_item()
|
||||
|
||||
void Menu::start_activation_animation(MenuItem& item)
|
||||
{
|
||||
if (!WindowManager::the().system_effects().animate_menus())
|
||||
return;
|
||||
VERIFY(menu_window());
|
||||
VERIFY(menu_window()->backing_store());
|
||||
auto window = Window::construct(*this, WindowType::Menu);
|
||||
|
||||
Reference in New Issue
Block a user