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
commit 0574c0e474
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00
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:)) {