mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 22:28:22 +00: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:
parent
5917545633
commit
d11ce1d808
Notes:
sideshowbarker
2024-07-17 08:21:18 +09:00
Author: https://github.com/thankyouverycool
Commit: d11ce1d808
Pull-request: https://github.com/SerenityOS/serenity/pull/14805
4 changed files with 26 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue