1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +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

@ -872,6 +872,11 @@ static void copy_text_to_clipboard(StringView text)
[self handleResize];
}
- (void)viewDidChangeEffectiveAppearance
{
m_web_view_bridge->update_palette();
}
- (BOOL)isFlipped
{
// The origin of a NSScrollView is the lower-left corner, with the y-axis extending upwards. Instead,