1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

Ladybird: Inform WebContent whether the AppKit chrome is in dark mode

This commit is contained in:
Timothy Flynn 2023-08-26 23:12:30 -04:00 committed by Tim Flynn
parent 6e64bf5464
commit 3fc0c21b6c
6 changed files with 77 additions and 11 deletions

View file

@ -35,6 +35,8 @@ public:
};
void set_viewport_rect(Gfx::IntRect, ForResize = ForResize::No);
void update_palette();
void mouse_down_event(Gfx::IntPoint, GUI::MouseButton, KeyModifier);
void mouse_up_event(Gfx::IntPoint, GUI::MouseButton, KeyModifier);
void mouse_move_event(Gfx::IntPoint, GUI::MouseButton, KeyModifier);
@ -59,8 +61,6 @@ private:
virtual void create_client(WebView::EnableCallgrindProfiling) override;
void update_palette();
Vector<Gfx::IntRect> m_screen_rects;
Gfx::IntRect m_viewport_rect;