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

Ladybird/AppKit: Listen for device pixel ratio changes

This commit is contained in:
Bastiaan van der Plaat 2023-09-20 22:10:42 +02:00 committed by Andrew Kaster
parent 7718842829
commit 0574c0e474
6 changed files with 28 additions and 5 deletions

View file

@ -472,6 +472,11 @@ enum class IsHistoryNavigation {
}
}
- (void)windowDidChangeBackingProperties:(NSNotification*)notification
{
[[[self tab] web_view] handleDevicePixelRatioChange];
}
- (BOOL)validateMenuItem:(NSMenuItem*)item
{
if ([item action] == @selector(toggleLineBoxBorders:)) {