mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
Ladybird/AppKit: Listen for device pixel ratio changes
This commit is contained in:
parent
7718842829
commit
0574c0e474
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/bplaat
Commit: 0574c0e474
Pull-request: https://github.com/SerenityOS/serenity/pull/21171
Reviewed-by: https://github.com/ADKaster ✅
6 changed files with 28 additions and 5 deletions
|
@ -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:)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue